def set_network(ip, netmask, gateway):
 return __execute_cmd('setniccfg -s {0} {1} {2}'.format(ip, netmask, gateway))

def set_network ( ip , netmask , gateway ) : return __execute_cmd ( 'setniccfg -s {0} {1} {2}' . format ( ip , netmask , gateway ) )
configure network cli example: .