Remove dead code

Change-Id: I4f62f932a9cb0394c6fca97008b23c838af53981
This commit is contained in:
Luis Tomas Bolivar 2023-02-17 13:22:44 +01:00
parent 9c9cf0afd7
commit 60e896d313

View File

@ -765,30 +765,6 @@ class OVNBGPDriver(driver_api.AgentDriverBase):
LOG.debug("Deleted BGP route for tenant IP %s on chassis %s",
ips_to_withdraw, self.chassis)
def _process_cr_lrp_port(self, cr_lrp_port_name, provider_datapath,
router_port):
ips = router_port.mac[0].split(' ')[1:]
bridge_device, bridge_vlan = self._get_bridge_for_datapath(
provider_datapath)
mac = router_port.mac[0].split(' ')[0]
self.ovn_local_cr_lrps[cr_lrp_port_name] = {
'router_datapath': router_port.datapath,
'provider_datapath': provider_datapath,
'ips': ips,
'mac': mac,
'subnets_datapath': {},
'subnets_cidr': [],
'ovn_lb_vips': [],
'bridge_vlan': bridge_vlan,
'bridge_device': bridge_device
}
# NOTE: This is like if it was the cr-lrp action on expose_ip
return self._expose_cr_lrp_port(
ips, mac, bridge_device, bridge_vlan,
router_datapath=router_port.datapath,
provider_datapath=provider_datapath,
cr_lrp_port=cr_lrp_port_name)
def _process_lrp_port(self, lrp, associated_cr_lrp, exposed_ips=[],
ovn_ip_rules={}):
if (lrp.chassis or