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

This commit is contained in:
Zuul 2021-11-21 20:43:14 +00:00 committed by Gerrit Code Review
commit 7ef211fb20
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