[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
This commit is contained in:
Adit Sarfaty 2016-06-13 11:20:04 +03:00
parent 48c86ee9d3
commit a421f7cc2d

View File

@ -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.