Exclude router gw subnet ports from port list while port delete.

During port delete Neutron checks if host still handle some ports
from subnets that are used by router.

It may happen that the same subnet that is used for router gateway
port may be used for another VM port. Then we skip notification
to update L3 agent about related to router port deletion.

Related-Bug: #1957794
Change-Id: Iacc7d4e543ac261a6f566b49834b6865f6eded95
This commit is contained in:
labedz 2022-01-10 17:09:25 +01:00 committed by Krzysztof Tomaszewski
parent 52c4678201
commit 4c6c48956e
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ class L3_DVRsch_db_mixin(l3agent_sch_db.L3AgentSchedulerDbMixin):
def _check_for_rtr_serviceable_ports(
self, admin_context, router_id, port_host):
subnet_ids = self.get_subnet_ids_on_router(admin_context,
router_id)
router_id,
keep_gateway_port=False)
return self._check_dvr_serviceable_ports_on_host(
admin_context, port_host, subnet_ids)