def enable_dhcp():
 current = network()
 if (current['Network Settings']['DHCP_ENABLE']['VALUE'] == 'Y'):
  return True
 _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_NETWORK_SETTINGS>\n                      <DHCP_ENABLE value="Yes"/>\n                    </MOD_NETWORK_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>'
 return __execute_cmd('Enable_DHCP', _xml)

def enable_dhcp ( ) : current = network ( ) if ( current [ 'Network Settings' ] [ 'DHCP_ENABLE' ] [ 'VALUE' ] == 'Y' ) : return True _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_NETWORK_SETTINGS>\n                      <DHCP_ENABLE value="Yes"/>\n                    </MOD_NETWORK_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>' return __execute_cmd ( 'Enable_DHCP' , _xml )
enable dhcp cli example: .