Merge "NSXv3: Add neutron-id tag to backend"

This commit is contained in:
Jenkins 2015-09-11 18:07:36 +00:00 committed by Gerrit Code Review
commit 0532afbbbc
1 changed files with 5 additions and 2 deletions

View File

@ -89,9 +89,12 @@ def check_and_truncate(display_name):
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>
Add os-tid:<tenant-id>, os-api-version:<neutron-api-version>,
neutron-id:<resource-id>
"""
return [{"scope": "os-tid",
return [{"scope": "neutron-id",
"tag": logical_entity.get("id")},
{"scope": "os-tid",
"tag": logical_entity.get("tenant_id")},
{"scope": "os-api-version",
"tag": version.version_info.release_string()}]