Stop using _create_or_update_agent
There is a public method, use it instead! Change-Id: Ie076a2860a54c5e2958c16593c3f39f86353cd34 Closes-bug: #1624496
This commit is contained in:
parent
26a252e3d7
commit
b4c840d97b
@ -895,11 +895,11 @@ class BgpTests(test_plugin.Ml2PluginV2TestCase,
|
|||||||
portbindings.HOST_ID: 'test-host'}}
|
portbindings.HOST_ID: 'test-host'}}
|
||||||
fixed_port = self.plugin.create_port(self.context,
|
fixed_port = self.plugin.create_port(self.context,
|
||||||
fixed_port_data)
|
fixed_port_data)
|
||||||
self.plugin._create_or_update_agent(self.context,
|
self.plugin.create_or_update_agent(self.context,
|
||||||
{'agent_type': 'L3 agent',
|
{'agent_type': 'L3 agent',
|
||||||
'host': 'test-host',
|
'host': 'test-host',
|
||||||
'binary': 'neutron-l3-agent',
|
'binary': 'neutron-l3-agent',
|
||||||
'topic': 'test'})
|
'topic': 'test'})
|
||||||
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
||||||
self.context,
|
self.context,
|
||||||
gw_net_id,
|
gw_net_id,
|
||||||
@ -960,11 +960,11 @@ class BgpTests(test_plugin.Ml2PluginV2TestCase,
|
|||||||
portbindings.HOST_ID: 'test-host'}}
|
portbindings.HOST_ID: 'test-host'}}
|
||||||
fixed_port = self.plugin.create_port(self.context,
|
fixed_port = self.plugin.create_port(self.context,
|
||||||
fixed_port_data)
|
fixed_port_data)
|
||||||
self.plugin._create_or_update_agent(self.context,
|
self.plugin.create_or_update_agent(self.context,
|
||||||
{'agent_type': 'L3 agent',
|
{'agent_type': 'L3 agent',
|
||||||
'host': 'test-host',
|
'host': 'test-host',
|
||||||
'binary': 'neutron-l3-agent',
|
'binary': 'neutron-l3-agent',
|
||||||
'topic': 'test'})
|
'topic': 'test'})
|
||||||
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
||||||
self.context,
|
self.context,
|
||||||
gw_net_id,
|
gw_net_id,
|
||||||
@ -1016,11 +1016,11 @@ class BgpTests(test_plugin.Ml2PluginV2TestCase,
|
|||||||
portbindings.HOST_ID: 'test-host'}}
|
portbindings.HOST_ID: 'test-host'}}
|
||||||
fixed_port = self.plugin.create_port(self.context,
|
fixed_port = self.plugin.create_port(self.context,
|
||||||
fixed_port_data)
|
fixed_port_data)
|
||||||
self.plugin._create_or_update_agent(self.context,
|
self.plugin.create_or_update_agent(self.context,
|
||||||
{'agent_type': 'L3 agent',
|
{'agent_type': 'L3 agent',
|
||||||
'host': 'test-host',
|
'host': 'test-host',
|
||||||
'binary': 'neutron-l3-agent',
|
'binary': 'neutron-l3-agent',
|
||||||
'topic': 'test'})
|
'topic': 'test'})
|
||||||
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
fip_gw = self.l3plugin.create_fip_agent_gw_port_if_not_exists(
|
||||||
self.context,
|
self.context,
|
||||||
gw_net_id,
|
gw_net_id,
|
||||||
@ -1128,7 +1128,7 @@ class BgpTests(test_plugin.Ml2PluginV2TestCase,
|
|||||||
|
|
||||||
def _create_scenario_test_l3_agents(self, agent_confs):
|
def _create_scenario_test_l3_agents(self, agent_confs):
|
||||||
for item in agent_confs:
|
for item in agent_confs:
|
||||||
self.plugin._create_or_update_agent(
|
self.plugin.create_or_update_agent(
|
||||||
self.context,
|
self.context,
|
||||||
{'agent_type': 'L3 agent',
|
{'agent_type': 'L3 agent',
|
||||||
'host': item['host'],
|
'host': item['host'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user