Merge "Skip DVR binding for ports with invalid OFPORT" into stable/victoria

This commit is contained in:
Zuul 2021-09-24 01:39:18 +00:00 committed by Gerrit Code Review
commit 81e9aeb7a9
1 changed files with 4 additions and 3 deletions

View File

@ -638,9 +638,10 @@ class OVSDVRNeutronAgent(object):
"%(ofport)s, rebinding.",
{'vif': port.vif_id, 'ofport': port.ofport})
self.unbind_port_from_dvr(port, local_vlan_map)
if port.ofport in (ovs_lib.INVALID_OFPORT,
ovs_lib.UNASSIGNED_OFPORT):
return
if port.ofport in (ovs_lib.INVALID_OFPORT,
ovs_lib.UNASSIGNED_OFPORT):
return
if device_owner == n_const.DEVICE_OWNER_DVR_INTERFACE:
self._bind_distributed_router_interface_port(port,