def sendline(command):
 if (ping() is False):
  init()
 (out, err) = DETAILS[_worker_name()].sendline(command)
 (_, out) = out.split('\n', 1)
 (out, _, _) = out.rpartition('\n')
 return out

def sendline ( command ) : if ( ping ( ) is False ) : init ( ) ( out , err ) = DETAILS [ _worker_name ( ) ] . sendline ( command ) ( _ , out ) = out . split ( '\n' , 1 ) ( out , _ , _ ) = out . rpartition ( '\n' ) return out
run command through switchs cli .