Merge "ofagent: Enable local arp responder for TYPE_FLAT"

This commit is contained in:
Jenkins 2014-09-02 12:39:03 +00:00 committed by Gerrit Code Review
commit f440507c70
2 changed files with 8 additions and 1 deletions

View File

@ -224,7 +224,8 @@ class OFANeutronAgent(n_rpc.RpcCallback,
ofa_const.LOCAL_VLAN_MAX))
self.tunnel_types = tunnel_types or []
l2pop_network_types = list(set(self.tunnel_types +
[p_const.TYPE_VLAN]))
[p_const.TYPE_VLAN,
p_const.TYPE_FLAT]))
self.agent_state = {
'binary': 'neutron-ofa-agent',
'host': cfg.CONF.host,

View File

@ -683,6 +683,9 @@ class TestOFANeutronAgent(ofa_test_base.OFAAgentTestBase):
def test_add_arp_table_entry_vlan(self):
self._test_add_arp_table_entry_non_tunnel('vlan')
def test_add_arp_table_entry_flat(self):
self._test_add_arp_table_entry_non_tunnel('flat')
def test_del_arp_table_entry(self):
self._prepare_l2_pop_ofports()
fdb_entry = {self.lvms[0].net:
@ -730,6 +733,9 @@ class TestOFANeutronAgent(ofa_test_base.OFAAgentTestBase):
def test_del_arp_table_entry_vlan(self):
self._test_del_arp_table_entry_non_tunnel('vlan')
def test_del_arp_table_entry_flat(self):
self._test_del_arp_table_entry_non_tunnel('flat')
def test_recl_lv_port_to_preserve(self):
self._prepare_l2_pop_ofports()
self.agent.enable_tunneling = True