If the mac address is not updated the receiving host will reject the
packet since it sees a MAC address which does not belong to him.
Change-Id: I95edc11572b2ada8841b504ed8eee743613cce09
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
compute.dc.net.setChain(
server_egress.name, server_ingress.name,
egress_port.intf_name, ingress_port.intf_name,
compute.dc.net.setChain(
server_egress.name, server_ingress.name,
egress_port.intf_name, ingress_port.intf_name,
+ mod_dl_dst=ingress_port.mac_address,
cmd="add-flow", cookie=self.cookie, priority=10, bidirectional=False,
monitor=False, skip_vlan_tag=True
)
cmd="add-flow", cookie=self.cookie, priority=10, bidirectional=False,
monitor=False, skip_vlan_tag=True
)
cmd = kwargs.get('cmd')
path = kwargs.get('path')
index = kwargs.get('pathindex')
cmd = kwargs.get('cmd')
path = kwargs.get('path')
index = kwargs.get('pathindex')
+ mod_dl_dst = kwargs.get('mod_dl_dst')
vlan = kwargs.get('vlan')
priority = kwargs.get('priority', DEFAULT_PRIORITY)
vlan = kwargs.get('vlan')
priority = kwargs.get('priority', DEFAULT_PRIORITY)
else: # middle nodes
match += ',dl_vlan=%s' % vlan
else: # middle nodes
match += ',dl_vlan=%s' % vlan
+ if mod_dl_dst:
+ action = {}
+ action['type'] = 'SET_FIELD'
+ action['field'] = 'eth_dst'
+ action['value'] = mod_dl_dst
+ flow['actions'].append(action)
# output action must come last
action = {}
# output action must come last
action = {}