From: Jenkins Date: Tue, 20 May 2014 14:41:56 +0000 (+0000) Subject: Merge "Implement local ARP responder onto OVS agent" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f341b9ec8815653917fcafa059365b9ff466c69e;p=openstack-build%2Fneutron-build.git Merge "Implement local ARP responder onto OVS agent" --- f341b9ec8815653917fcafa059365b9ff466c69e diff --cc neutron/plugins/openvswitch/agent/ovs_neutron_agent.py index 6e8e02fd4,fd565bc09..9219beca3 --- a/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py +++ b/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py @@@ -701,9 -809,19 +809,19 @@@ class OVSNeutronAgent(sg_rpc.SecurityGr actions="resubmit(,%s)" % constants.PATCH_LV_TO_TUN) self.tun_br.add_flow(priority=0, actions="drop") + if self.arp_responder_enabled: + # ARP broadcast-ed request go to the local ARP_RESPONDER table to + # be locally resolved + self.tun_br.add_flow(table=constants.PATCH_LV_TO_TUN, + priority=1, + proto='arp', + dl_dst="ff:ff:ff:ff:ff:ff", + actions=("resubmit(,%s)" % + constants.ARP_RESPONDER)) # PATCH_LV_TO_TUN table will handle packets coming from patch_int - # unicasts go to table UCAST_TO_TUN where remote adresses are learnt + # unicasts go to table UCAST_TO_TUN where remote addresses are learnt self.tun_br.add_flow(table=constants.PATCH_LV_TO_TUN, + priority=0, dl_dst="00:00:00:00:00:00/01:00:00:00:00:00", actions="resubmit(,%s)" % constants.UCAST_TO_TUN) # Broadcasts/multicasts go to table FLOOD_TO_TUN that handles flooding