NSX|V: only update host groups for edges that are not distributed

No need to create groups for distributed routers

Change-Id: I379c4a1e81c24c8361afa0bd4d7bfca7ef9ec4cd
This commit is contained in:
Gary Kotton 2017-02-14 00:42:17 -08:00
parent 5aca58fc08
commit 7deb5eb8c3

View File

@ -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,