NSX|V3: Rename logical router

Rename logical router from "<OS-Router-name>" to
"<OS-Router-name>_<short-OS-Router-UUID>".

Change-Id: Iabcfb6677cd7d1d6333c83095a877f407c301fee
This commit is contained in:
Shih-Hao Li 2015-12-17 17:49:07 -08:00
parent a1aaa44416
commit bf3e1b7e8f

View File

@ -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():