From a4f19533e89b7ad42c1f5bc99b0a6cc95b36834f Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Thu, 17 Dec 2015 05:49:19 -0800 Subject: [PATCH] NSX|V3: ensure that router id is updated prior to tag creation Ensure that the router ID is reflected in the tags. Change-Id: Ic0e4b0ee2002aa8e2afb32b11ead66d38cd35142 Closes-bug: #1527255 --- vmware_nsx/plugins/nsx_v3/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index af3b033dc4..223611fc28 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -988,6 +988,7 @@ class NsxV3Plugin(addr_pair_db.AllowedAddressPairsMixin, def create_router(self, context, router): # TODO(berlin): admin_state_up support gw_info = self._extract_external_gw(context, router, is_extract=True) + 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'),