#NEWLINE# def configure_network( ip , netmask , gateway ) : #NEWLINE# #INDENT# "\n    Configure Network Interface\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' ilo.configure_network [IP ADDRESS] [NETMASK] [GATEWAY]\n    " #NEWLINE# current = network ( ) #NEWLINE# if ( ( ip in current [ 'Network Settings' ] [ 'IP_ADDRESS' ] [ 'VALUE' ] ) and ( netmask in current [ 'Network Settings' ] [ 'SUBNET_MASK' ] [ 'VALUE' ] ) and ( netmask in current [ 'Network Settings' ] [ 'GATEWAY_IP_ADDRESS' ] [ 'VALUE' ] ) ) : #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                      <IP_ADDRESS value="{0}"/>\n                      <SUBNET_MASK value="{1}"/>\n                      <GATEWAY_IP_ADDRESS value="{2}"/>\n                    </MOD_NETWORK_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL> ' . format ( ip , netmask , gateway ) #NEWLINE# return __execute_cmd ( 'Configure_Network' , _xml )