Remove unused method from OVN L3 plugin
Since [0], the method _get_availability_zones_from_router_port in the OVN L3 plugin is not called from anywhere in the code. A search in codesearch.openstack.org reveals no invocations to this method. This patch removes its definition. [0] https://review.opendev.org/c/openstack/neutron/+/825073 Change-Id: I1113a872aa8f238c523efbb6f948fd50210e8772
This commit is contained in:
parent
b92d133de6
commit
4a71a7f82f
|
@ -35,7 +35,6 @@ from neutron._i18n import _
|
|||
from neutron.common.ovn import constants as ovn_const
|
||||
from neutron.common.ovn import extensions
|
||||
from neutron.common.ovn import utils
|
||||
from neutron.common import utils as common_utils
|
||||
from neutron.db.availability_zone import router as router_az_db
|
||||
from neutron.db import dns_db
|
||||
from neutron.db import extraroute_db
|
||||
|
@ -373,22 +372,6 @@ class OVNL3RouterPlugin(service_base.ServicePluginBase,
|
|||
if port['status'] != status:
|
||||
self._plugin.update_port_status(context, port['id'], status)
|
||||
|
||||
def _get_availability_zones_from_router_port(self, lrp_name):
|
||||
"""Return the availability zones hints for the router port.
|
||||
|
||||
Return a list of availability zones hints associated with the
|
||||
router that the router port belongs to.
|
||||
"""
|
||||
context = n_context.get_admin_context()
|
||||
if not self._plugin_driver.list_availability_zones(context):
|
||||
return []
|
||||
|
||||
lrp = self._nb_ovn.get_lrouter_port(lrp_name)
|
||||
router = self.get_router(
|
||||
context, lrp.external_ids[ovn_const.OVN_ROUTER_NAME_EXT_ID_KEY])
|
||||
az_hints = common_utils.get_az_hints(router)
|
||||
return az_hints
|
||||
|
||||
def schedule_unhosted_gateways(self, event_from_chassis=None):
|
||||
# GW ports and its physnets.
|
||||
port_physnet_dict = self._get_gateway_port_physnet_mapping()
|
||||
|
|
Loading…
Reference in New Issue