From 7deb5eb8c3ab7783aeedaf5fa8ae40fa9e6b204b Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Tue, 14 Feb 2017 00:42:17 -0800 Subject: [PATCH] NSX|V: only update host groups for edges that are not distributed No need to create groups for distributed routers Change-Id: I379c4a1e81c24c8361afa0bd4d7bfca7ef9ec4cd --- vmware_nsx/plugins/nsx_v/vshield/edge_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py index 5f0132b84b..a363b18e9a 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py +++ b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py @@ -2646,7 +2646,8 @@ class NsxVCallbacks(object): nsxv_db.update_nsxv_router_binding( context.session, router_id, status=plugin_const.ACTIVE) - if (self.plugin._dvs and availability_zone and + if (not dist and + self.plugin._dvs and availability_zone and availability_zone.edge_ha and availability_zone.edge_host_groups): update_edge_host_groups(self.plugin.nsx_v.vcns, edge_id,