[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
parent ca624d95fb
commit 5741b2e51d
1 changed files with 5 additions and 0 deletions

View File

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