Merge "ovs agent, native ARP response: set Eth src/dst"

This commit is contained in:
Jenkins 2016-09-16 07:08:57 +00:00 committed by Gerrit Code Review
commit 281fd2e441
2 changed files with 8 additions and 0 deletions

View File

@ -229,6 +229,10 @@ class OVSTunnelBridge(ovs_bridge.OVSAgentBridge,
n_bits=32),
ofpp.OFPActionSetField(arp_sha=mac),
ofpp.OFPActionSetField(arp_spa=ip),
ofpp.NXActionRegMove(src_field='eth_src',
dst_field='eth_dst',
n_bits=48),
ofpp.OFPActionSetField(eth_src_nxm=mac),
ofpp.OFPActionOutput(ofp.OFPP_IN_PORT, 0)]
self.install_apply_actions(table_id=constants.ARP_RESPONDER,
priority=1,

View File

@ -402,6 +402,10 @@ class OVSTunnelBridgeTest(ovs_bridge_test_base.OVSBridgeTestBase,
src_field='arp_spa'),
ofpp.OFPActionSetField(arp_sha=mac),
ofpp.OFPActionSetField(arp_spa=ip),
ofpp.NXActionRegMove(src_field='eth_src',
dst_field='eth_dst',
n_bits=48),
ofpp.OFPActionSetField(eth_src_nxm=mac),
ofpp.OFPActionOutput(ofp.OFPP_IN_PORT, 0),
]),
],