Пример #1
0
 def smartcli(*args):
     """This wrapper function provides a less intrusive way to call the
     appropriate msg_type for configuration based commands
     """
     cmd = args[0]
     if cmd[:4] == 'conf':
         NXAPITransport.send_cmd(cmd, msg_type='cli_conf')
     else:
         NXAPITransport.cli(cmd)
Пример #2
0
 def smartcli(*args):
     """This wrapper function provides a less intrusive way to call the
     appropriate msg_type for configuration based commands
     """
     cmd = args[0]
     if cmd[:4] == 'conf':
         NXAPITransport.send_cmd(cmd, msg_type='cli_conf')
     else:
         NXAPITransport.cli(cmd)