Merge pull request #185 from xschlef/sonata
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 23 Nov 2016 19:15:55 +0000 (19:15 +0000)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 23 Nov 2016 19:15:55 +0000 (19:15 +0000)
fix for cross datacenter chaining.

src/emuvim/dcemulator/net.py

index 15bb6f1..531e5f1 100755 (executable)
@@ -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