From a1bc4d7f975594d8aca089aba56e8ab1116c8b49 Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Sun, 21 Nov 2021 10:28:28 -0800 Subject: [PATCH] [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 --- vmware_nsx/api_replay/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmware_nsx/api_replay/client.py b/vmware_nsx/api_replay/client.py index 5bd22c1014..b8483be0ff 100644 --- a/vmware_nsx/api_replay/client.py +++ b/vmware_nsx/api_replay/client.py @@ -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