From a421f7cc2db8537319454c1f1613b5381e8867f6 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 13 Jun 2016 11:20:04 +0300 Subject: [PATCH] [Admin-Util][NSX-v3]: fix ports mismatch admin util Some qos api moved from nsx_v3 to common, and the import should also be changed In addition, when the port is not found on backend, there is no need to check its profiles. Change-Id: I4f4549c5b95436faa8609d1caadc0c40c92acf30 --- vmware_nsx/shell/admin/plugins/nsxv3/resources/ports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxv3/resources/ports.py b/vmware_nsx/shell/admin/plugins/nsxv3/resources/ports.py index 2db4f4df92..a9c71ba04d 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv3/resources/ports.py +++ b/vmware_nsx/shell/admin/plugins/nsxv3/resources/ports.py @@ -25,7 +25,7 @@ from vmware_nsx.nsxlib.v3 import client from vmware_nsx.nsxlib.v3 import cluster from vmware_nsx.nsxlib.v3 import resources from vmware_nsx.plugins.nsx_v3 import plugin -from vmware_nsx.services.qos.nsx_v3 import utils as qos_utils +from vmware_nsx.services.qos.common import utils as qos_utils from vmware_nsx.shell.admin.plugins.common import constants from vmware_nsx.shell.admin.plugins.common import formatters from vmware_nsx.shell.admin.plugins.common import utils as admin_utils @@ -122,6 +122,7 @@ def list_missing_ports(resource, event, trigger, **kwargs): problems.append({'neutron_id': neutron_id, 'nsx_id': nsx_id, 'error': _LI('Missing from backend')}) + continue # Port found on backend! # Check that it has all the expected switch profiles.