From 59bda83bc4ab78a0ebee020df513f43fcebd8f14 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Thu, 12 Apr 2018 16:13:44 +0300 Subject: [PATCH] NSXv: Fix admin util member IP overwrite Admin utility overwrote the IPs of the metadata proxy members while attempting an update of the DHCP/router edge members. Change-Id: Ie82cd57bf42584976dc4d7874bdddcf2592c15bc --- vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py b/vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py index 1d6727ffae..33f1f4501d 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py +++ b/vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py @@ -102,7 +102,7 @@ def nsx_redo_metadata_cfg_for_az(az, edgeapi): router_bindings = nsxv_db.get_nsxv_router_bindings( edgeapi.context.session, filters={'edge_type': [nsxv_constants.SERVICE_EDGE], - 'availability_zones': az.name}) + 'availability_zone': az.name}) edge_ids = list(set([binding['edge_id'] for binding in router_bindings if (binding['router_id'] not in set(md_rtr_ids) and not binding['router_id'].startswith(