Skip DVR binding for ports with invalid OFPORT

Invalid OFPORT (-1) causes ofctl errors and timeouts if set
it as output in a flow rule.

Closes-Bug: #1938685
Change-Id: Ib8be66c3068309832e08066af4e0b75c30e8163a
This commit is contained in:
Oleg Bondarev 2021-08-02 16:49:51 +03:00
parent d4b1b4a072
commit 63a2a65bbe
1 changed files with 4 additions and 3 deletions

View File

@ -646,6 +646,7 @@ 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