Remove misplaced admin_state check
Change-Id: I6129b9af3f56adfcbfc6013e74d41fbef9e3241a
This commit is contained in:
parent
45977261f6
commit
e89537c338
|
@ -1045,14 +1045,6 @@ class DhcpV6StaticBindingConfig(DhcpV4StaticBindingConfig):
|
||||||
'ip_addresses',
|
'ip_addresses',
|
||||||
'sntp_servers',
|
'sntp_servers',
|
||||||
'preferred_time'])
|
'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
|
return body
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue