Cleanup rename of get_compute_ports_on_host_by_subnet
A recent merge [1] renamed this method to remove "compute_" from the name. Unfortunately, the rename was not done thoroughly. This patch cleans that up. No bug is referenced since this is an obvious ommission in a recent patch. [1] https://review.openstack.org/#/c/114141/ Change-Id: I8320bc8deb6dcda586ccff01120270b3ce257ea2
This commit is contained in:
parent
b46ad6a571
commit
26ea7d3eb1
@ -254,12 +254,12 @@ class L3_DVRsch_db_mixin(l3agent_sch_db.L3AgentSchedulerDbMixin):
|
||||
subnet_ids = self.get_subnet_ids_on_router(context, router_id)
|
||||
for subnet in subnet_ids:
|
||||
vm_ports = (
|
||||
self._core_plugin.get_compute_ports_on_host_by_subnet(
|
||||
self._core_plugin.get_ports_on_host_by_subnet(
|
||||
context, host, subnet))
|
||||
if vm_ports:
|
||||
LOG.debug('VM exists on the snat enabled l3_agent '
|
||||
'host %(host)s and router_id %(router_id)s',
|
||||
{'host': host, 'router_id': router_id})
|
||||
LOG.debug('One or more ports exist on the snat enabled '
|
||||
'l3_agent host %(host)s and router_id %(id)s',
|
||||
{'host': host, 'id': router_id})
|
||||
break
|
||||
agent_id = binding.l3_agent_id
|
||||
LOG.debug('Delete binding of the SNAT router %(router_id)s '
|
||||
|
@ -712,7 +712,7 @@ class L3DvrSchedulerTestCase(testlib_api.SqlTestCase,
|
||||
router_id = 'foo_router_id'
|
||||
core_plugin = mock.PropertyMock()
|
||||
type(self.dut)._core_plugin = core_plugin
|
||||
(self.dut._core_plugin.get_compute_ports_on_host_by_subnet.
|
||||
(self.dut._core_plugin.get_ports_on_host_by_subnet.
|
||||
return_value) = []
|
||||
core_plugin.reset_mock()
|
||||
l3_notifier = mock.PropertyMock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user