Browse Source

Fix nsx-p admin utility file location

Change-Id: Iae5aab222d7effb60a86e2f7097309705ebc02a3
changes/41/765741/4
asarfaty 11 months ago
parent
commit
cfee3b2105
  1. 1
      tox.ini
  2. 3
      vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py
  3. 1
      vmware_nsx/tests/unit/shell/test_admin_utils.py

1
tox.ini

@ -86,6 +86,7 @@ commands =
stestr run {posargs}
whitelist_externals =
stestr
setenv = EDITOR=vi
[testenv:py36-dev]
basepython = python3.6

3
vmware_nsx/shell/admin/plugins/nsxp/migration.py → vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py

@ -23,7 +23,8 @@ from vmware_nsx.shell import resources as shell
@admin_utils.output_header
def cleanup_db_mappings(resource, event, trigger, **kwargs):
"""Delete all entries from nsx-t mapping tables in DB"""
return migration.cleanup_db_mappings(resource, event, trigger, **kwargs)
return migration.MP2Policy_cleanup_db_mappings(
resource, event, trigger, **kwargs)
registry.subscribe(cleanup_db_mappings,

1
vmware_nsx/tests/unit/shell/test_admin_utils.py

@ -394,6 +394,7 @@ class TestNsxpAdminUtils(AbstractTestAdminUtils,
return 'nsxp'
def _init_mock_plugin(self):
super(TestNsxpAdminUtils, self)._init_mock_plugin()
self._plugin = nsxp_utils.NsxPolicyPluginWrapper()
def test_nsxp_resources(self):

Loading…
Cancel
Save