Browse Source

Merge "Revert "Only set "unknown" in LSP that makes sense"" into stable/train

changes/39/792539/1
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
47ebdf7cea
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      networking_ovn/common/maintenance.py

+ 0
- 13
networking_ovn/common/maintenance.py View File

@ -503,19 +503,6 @@ class DBInconsistenciesPeriodics(SchemaAwarePeriodicsBase):
elif not type_ and ovn_const.UNKNOWN_ADDR in addresses:
addresses.remove(ovn_const.UNKNOWN_ADDR)
addresses = port.addresses
type_ = port.type.strip()
if not port.port_security:
if not type_ and ovn_const.UNKNOWN_ADDR not in addresses:
addresses.append(ovn_const.UNKNOWN_ADDR)
elif type_ and ovn_const.UNKNOWN_ADDR in addresses:
addresses.remove(ovn_const.UNKNOWN_ADDR)
else:
if type_ and ovn_const.UNKNOWN_ADDR in addresses:
addresses.remove(ovn_const.UNKNOWN_ADDR)
elif not type_ and ovn_const.UNKNOWN_ADDR in addresses:
addresses.remove(ovn_const.UNKNOWN_ADDR)
if addresses:
self._nb_idl.lsp_set_addresses(
port.name, addresses=addresses).execute(check_error=True)


Loading…
Cancel
Save