connection.appliance_connection

Module Contents

Classes

ApplianceConnection(self)

Functions

call_timeout_handler(signum,frame)
call_timeout_handler(signum, frame)
class ApplianceConnection
__init__()
connect()
disconnect()
pre_cmd_handler(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

Parameters:timeout – time in seconds to wait for the call. default: 6 hours
post_cmd_handler(command_obj)

Perform post-cmd handlers and wrap result

cmd(operation, **update_cmds)

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

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 Command(operation=None, **update_cmds)

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