From 80d78b4b175d66f65811be549904a716262b0095 Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Thu, 10 Sep 2015 16:20:58 -0700 Subject: [PATCH] NSXv3: Add neutron-id tag to backend Having the neutron id in the nsx backend is helpful to aligning which resources in the nsx backend match to their neutron counterpart since their id's do not map one to one currently. Change-Id: I2a438285e03333e2ca07921476f8fe5d56743b83 --- vmware_nsx/neutron/plugins/vmware/common/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/neutron/plugins/vmware/common/utils.py b/vmware_nsx/neutron/plugins/vmware/common/utils.py index db65b20d46..7044ef948e 100644 --- a/vmware_nsx/neutron/plugins/vmware/common/utils.py +++ b/vmware_nsx/neutron/plugins/vmware/common/utils.py @@ -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:, os-api-version: + Add os-tid:, os-api-version:, + neutron-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()}]