Merge "Rename neutron-id tag to os-neutron-id"
This commit is contained in:
commit
38612eca2a
@ -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:<tenant-id>, os-api-version:<neutron-api-version>,
|
||||
neutron-id:<resource-id>
|
||||
os-neutron-id:<resource-id>
|
||||
"""
|
||||
return [{"scope": "neutron-id",
|
||||
return [{"scope": "os-neutron-id",
|
||||
"tag": logical_entity.get("id", "")},
|
||||
{"scope": "os-tid",
|
||||
"tag": logical_entity.get("tenant_id", "")},
|
||||
|
@ -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()}]
|
||||
|
Loading…
Reference in New Issue
Block a user