#NEWLINE# def enable_dhcp( ) : #NEWLINE# #INDENT# "\n    Enable DHCP\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' ilo.enable_dhcp\n    " #NEWLINE# current = network ( ) #NEWLINE# if ( _xml [ 'Network Settings' ] [ 'DHCP_ENABLE' ] [ 'VALUE' ] == 'Y' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# _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>' #NEWLINE# return __execute_cmd ( 'Enable_DHCP' , _xml )