connections.connection

class connections.connection.ApplianceConnection
__init__()
__enter__()
__exit__(type, value, traceback)
connect()
disconnect()
prep_cmd(operation, **update_cmds)

Do what needs to be done before sending the command

Parameters:
  • operation
  • update_cmds
Returns:

A ActCmd object from this class

call(command_obj)

Call that gets the unfiltered connections response

_timeout(fnc, *args, **kwargs)
timeout_call(command_obj)
cmd(operation, **update_cmds)

Command that makes a call with standardized input and output so it’s the same across connections

post_cmd(command_obj)

Perform post-cmd handlers and wrap result

append_filtervalue(command, **update_cmds)

Takes a operation and an update_cmds dict and adds the new filtervalues to the existing one instead of overwriting.

Parameters:
  • command
  • update_cmds
Returns:

operation and correctly appended update_cmds

class ActCmd

Class to house attributes for a single cmd

__init__(operation=None, **update_cmds)
__repr__()

This will be None if post_cmd gets called, check the ActResponse dictionary for the values