From 407a028fbd80c54753967643199e8b073844b3c9 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Tue, 11 Feb 2020 13:47:54 +0200 Subject: [PATCH] Remove misplaced admin_state check Change-Id: I6129b9af3f56adfcbfc6013e74d41fbef9e3241a --- vmware_nsxlib/v3/policy/core_defs.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vmware_nsxlib/v3/policy/core_defs.py b/vmware_nsxlib/v3/policy/core_defs.py index 2da0e1b1..31e4fc62 100644 --- a/vmware_nsxlib/v3/policy/core_defs.py +++ b/vmware_nsxlib/v3/policy/core_defs.py @@ -1011,14 +1011,6 @@ class DhcpV6StaticBindingConfig(DhcpV4StaticBindingConfig): 'ip_addresses', 'sntp_servers', 'preferred_time']) - if (self.has_attr('admin_state') and - self._version_dependant_attr_supported('admin_state')): - if self.get_attr('admin_state'): - admin_state = nsx_constants.ADMIN_STATE_UP - else: - admin_state = nsx_constants.ADMIN_STATE_DOWN - self._set_attr_if_specified(body, 'admin_state', - value=admin_state) return body