From 693d4344a3d72589b260f184983b4d169a170eac Mon Sep 17 00:00:00 2001 From: joka Date: Wed, 23 Nov 2016 18:15:45 +0100 Subject: [PATCH] fix for cross datacenter chaining. --- src/emuvim/dcemulator/net.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emuvim/dcemulator/net.py b/src/emuvim/dcemulator/net.py index 15bb6f1..531e5f1 100755 --- 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 -- 2.25.1