From 19a30117a04da56dae0f2f1f9820673773dd1ec1 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Thu, 22 Nov 2018 11:22:21 +0200 Subject: [PATCH] NSXv: avoid changing of LBaaS port states Changing the state of LBaaS ports have no effect as this is not supported by NSXv backend. Change-Id: Ibd050a36ef12171a55f5dbdd430382d8fd560c33 --- vmware_nsx/plugins/nsx_v/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index 4f4e7af607..894941c990 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -1921,8 +1921,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, oct_const.DEVICE_OWNER_OCTAVIA]: orig_state = original_port.get("admin_state_up") new_state = port_data.get("admin_state_up") - if new_state is not None and (orig_state != new_state) and ( - orig_state and not new_state): + if new_state is not None and (orig_state != new_state): err_msg = _("Changing admin_state for " "loadbalancer's internal port is not supported") LOG.warning(err_msg)