def network_info():
 cmd = __salt__['cmd.run_all']('racadm getniccfg')
 if (cmd['retcode'] != 0):
  log.warning("racadm return an exit code '{0}'.".format(cmd['retcode']))
 return __parse_drac(cmd['stdout'])

def network_info ( ) : cmd = __salt__ [ 'cmd.run_all' ] ( 'racadm getniccfg' ) if ( cmd [ 'retcode' ] != 0 ) : log . warning ( "racadm return an exit code '{0}'." . format ( cmd [ 'retcode' ] ) ) return __parse_drac ( cmd [ 'stdout' ] )
return network configuration cli example: .