[API Replay] Do not migrate NSX-V LB ports

They are not needed on NSX-T. Avoid creating stale ports on
NSX-T segments.

Change-Id: I21b7e02c8088cdd9401e33cf5c74909d4fa5d6f9
This commit is contained in:
Salvatore Orlando 2021-11-21 10:28:28 -08:00 committed by Salvatore Orlando
parent 5a80f1d59c
commit a1bc4d7f97
1 changed files with 5 additions and 0 deletions

View File

@ -854,6 +854,11 @@ class ApiReplayClient(utils.PrepareObjectForMigration):
{'port': port, 'e': e})
continue
# Skip ports specific to NSX-V LB implementation
if port['device_owner'] == 'neutron:LB':
LOG.debug("Skipping port %s as it has neutron:LB "
"device owner", port['id'])
continue
# Let the neutron dhcp-agent recreate this on its own
if port['device_owner'] == 'network:dhcp':
continue