def vms(nictag):
 ret = {}
 nictagadm = _check_nictagadm()
 cmd = '{nictagadm} vms {nictag}'.format(nictagadm=nictagadm, nictag=nictag)
 res = __salt__['cmd.run_all'](cmd)
 retcode = res['retcode']
 if (retcode != 0):
  ret['Error'] = (res['stderr'] if ('stderr' in res) else 'Failed to get list of vms.')
 else:
  ret = res['stdout'].splitlines()
 return ret

def vms ( nictag ) : ret = { } nictagadm = _check_nictagadm ( ) cmd = '{nictagadm} vms {nictag}' . format ( nictagadm = nictagadm , nictag = nictag ) res = __salt__ [ 'cmd.run_all' ] ( cmd ) retcode = res [ 'retcode' ] if ( retcode != 0 ) : ret [ 'Error' ] = ( res [ 'stderr' ] if ( 'stderr' in res ) else 'Failed to get list of vms.' ) else : ret = res [ 'stdout' ] . splitlines ( ) return ret
list all vms connect to nictag nictag : string name of nictag cli example: .