code: def set_network(ip, netmask, gateway, host=None,
                  admin_username=None, admin_password=None):
      '''
      Configure Network on the CMC or individual iDRAC.
      Use ``set_niccfg`` for blade and switch addresses.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_network [DRAC IP] [NETMASK] [GATEWAY]
          salt dell dracr.set_network 192.168.0.2 255.255.255.0 192.168.0.1
              admin_username=root admin_password=calvin host=192.168.1.1
      '''
      return __execute_cmd('setniccfg -s {0} {1} {2}'.format(
          ip, netmask, gateway, host=host, admin_username=admin_username,
          admin_password=admin_password
      )f set_network(ip, netmask, gateway, host=None,
                  admin_username=None, admin_password=None):
      '''
      Configure Network on the CMC or individual iDRAC.
      Use ``set_niccfg`` for blade and switch addresses.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_network [DRAC IP] [NETMASK] [GATEWAY]
          salt dell dracr.set_network 192.168.0.2 255.255.255.0 192.168.0.1
              admin_username=root admin_password=calvin host=192.168.1.1
      '''
      return __execute_cmd('setniccfg -s {0} {1} {2}'.format(
          ip, netmask, gateway, host=host, admin_username=admin_username,
          admin_password=admin_password
      ))
docs: Configure Network on the CMC or individual iDRAC.
      Use ``set_niccfg`` for blade and switch addresses.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell dracr.set_network [DRAC IP] [NETMASK] [GATEWAY]
          salt dell dracr.set_network 192.168.0.2 255.255.255.0 192.168.0.1
              admin_username=root admin_password=calvin host=192.168.1.1