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
This commit is contained in:
Kobi Samoray 2018-11-22 11:22:21 +02:00 committed by Adit Sarfaty
parent 183b86b1f0
commit 19a30117a0

View File

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