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)