Merge "ovs agent, native ARP response: set Eth src/dst"
This commit is contained in:
commit
281fd2e441
@ -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,
|
||||
|
@ -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),
|
||||
]),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user