diff --git a/vmware_nsx/common/utils.py b/vmware_nsx/common/utils.py index 3a43386143..4015efe59b 100644 --- a/vmware_nsx/common/utils.py +++ b/vmware_nsx/common/utils.py @@ -92,9 +92,9 @@ def build_v3_tags_payload(logical_entity): """ Construct the tags payload that will be pushed to NSX-v3 Add os-tid:, os-api-version:, - neutron-id: + os-neutron-id: """ - return [{"scope": "neutron-id", + return [{"scope": "os-neutron-id", "tag": logical_entity.get("id", "")}, {"scope": "os-tid", "tag": logical_entity.get("tenant_id", "")}, diff --git a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py index 6764423568..a959b742b8 100644 --- a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py @@ -352,7 +352,7 @@ class TestNsxV3Utils(NsxV3PluginTestCaseMixin): result = utils.build_v3_tags_payload( {'id': 'fake_id', 'tenant_id': 'fake_tenant_id'}) - expected = [{'scope': 'neutron-id', 'tag': 'fake_id'}, + expected = [{'scope': 'os-neutron-id', 'tag': 'fake_id'}, {'scope': 'os-tid', 'tag': 'fake_tenant_id'}, {'scope': 'os-api-version', 'tag': version.version_info.release_string()}]