From bf3e1b7e8fcd817c54463681e617c1c443a354eb Mon Sep 17 00:00:00 2001 From: Shih-Hao Li Date: Thu, 17 Dec 2015 17:49:07 -0800 Subject: [PATCH] NSX|V3: Rename logical router Rename logical router from "" to "_". Change-Id: Iabcfb6677cd7d1d6333c83095a877f407c301fee --- vmware_nsx/plugins/nsx_v3/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index 7ff3d222b5..067c986d38 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -1000,7 +1000,8 @@ class NsxV3Plugin(addr_pair_db.AllowedAddressPairsMixin, router['router']['id'] = uuidutils.generate_uuid() tags = utils.build_v3_tags_payload(router['router']) result = self._router_client.create( - display_name=router['router'].get('name'), + display_name=utils.get_name_and_uuid( + router['router']['name'], router['router']['id']), tags=tags) with context.session.begin():