projects
/
osm
/
vim-emu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
8ffafa8
)
Merge branch 'master' of https://github.com/sonata-nfv/son-emu
author
edmaas
<eduard.maas@uni-paderborn.de>
Mon, 28 Nov 2016 12:52:09 +0000
(13:52 +0100)
committer
edmaas
<eduard.maas@uni-paderborn.de>
Mon, 28 Nov 2016 12:52:09 +0000
(13:52 +0100)
src/emuvim/dcemulator/net.py
patch
|
blob
|
history
diff --git
a/src/emuvim/dcemulator/net.py
b/src/emuvim/dcemulator/net.py
index
15bb6f1
..
531e5f1
100755
(executable)
--- a/
src/emuvim/dcemulator/net.py
+++ b/
src/emuvim/dcemulator/net.py
@@
-447,7
+447,8
@@
class DCNetwork(Containernet):
action = {}
action['type'] = 'SET_FIELD'
action['field'] = 'vlan_vid'
- action['value'] = vlan
+ # ryu expects the field to be masked
+ action['value'] = vlan | 0x1000
flow['actions'].append(action)
elif path.index(current_hop) == len(path) - 1: # last node
match += ',dl_vlan=%s' % vlan