Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body ImportFrom alias alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num body If CompareLt AttributeLoad NameLoad attr Num body Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Call NameLoad NameLoad ListLoad Num Num Num body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body AugAssignAdd NameStore Num For NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Num NameLoad NameLoad Return Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str AttributeLoad NameLoad attr If CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If UnaryOpNot CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad name NameStore body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Raise Call NameLoad Call NameLoad NameLoad Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str kwarg body Expr Str If CompareNotIn NameLoad TupleLoad Str Str body Raise Call NameLoad Str TryExcept body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Raise decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Num kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Provides wrapper for eAPI calls

This module provides a connection to eAPI by wrapping eAPI calls in an
instance of Connection.  The connection module provides an easy implementation
for sending and receiving calls over eAPI using a HTTP/S transport.
 N/A sys N/A json N/A socket N/A base64 N/A logging N/A ssl N/A N/A http.client HTTPConnection HTTPSConnection N/A N/A N/A ImportError N/A httplib HTTPConnection HTTPSConnection pyeapi.utils debug make_iterable N/A _LOGGER N/A N/A logging getLogger __name__ N/A DEFAULT_HTTP_PORT 80 N/A DEFAULT_HTTPS_PORT 443 N/A DEFAULT_HTTP_LOCAL_PORT 8080 N/A DEFAULT_HTTP_PATH /command-api N/A DEFAULT_UNIX_SOCKET /var/run/command-api.sock https_connection_factory N/A N/A path host port context timeout N/A None 60 N/A N/A N/A N/A sys hexversion 34015728 N/A N/A N/A HttpsConnection path host port timeout timeout N/A N/A HttpsConnection path host port context context timeout timeout N/A EapiError N/A Exception N/A N/A Base exception class for all exceptions generated by eapilib

    This is the base exception class for all exceptions generated by
    eapilib.  It is provided as a catch all for exceptions and should
    not be directly raised by an methods or functions

    Args:
        commands (array): The list of commands there were sent to the
            node that when the exception was raised
        message (string): The exception error message
     __init__ N/A N/A self message commands N/A None N/A N/A N/A self message message N/A N/A self commands commands N/A N/A N/A N/A super EapiError self __init__ message N/A N/A CommandError N/A EapiError N/A N/A Base exception raised for command errors

    The CommandError instance provides a custom exception that can be used
    if the eAPI command(s) fail.  It provides some additional information
    that can be used to understand what caused the exception.

    Args:
        error_code (int): The error code returned from the eAPI call.
        error_text (string): The error text message that coincides with the
            error_code
        commands (array): The list of commands that were sent to the node
            that generated the error
        message (string): The exception error message which is a concatenation
            of the error_code and error_text
     __init__ N/A N/A self code message N/A kwargs N/A N/A cmd_err N/A N/A kwargs get command_error N/A N/A N/A int code N/A 1000 1002 1004 N/A N/A msg_fmt N/A N/A Error [{}]: {} [{}] format code message cmd_err N/A N/A msg_fmt N/A N/A Error [{}]: {} format code message N/A N/A N/A N/A super CommandError self __init__ msg_fmt N/A N/A self error_code code N/A N/A self error_text message N/A N/A self command_error cmd_err N/A N/A self commands N/A N/A kwargs get commands N/A N/A self output N/A N/A kwargs get output N/A N/A self message msg_fmt N/A trace N/A N/A self N/A N/A N/A N/A N/A self get_trace N/A property get_trace N/A N/A self N/A N/A N/A trace N/A list N/A index None N/A N/A index out N/A enumerate N/A self output N/A N/A _entry N/A command output N/A N/A self commands N/A index out N/A N/A N/A trace append _entry N/A index N/A N/A index 1 N/A cmd N/A N/A self commands N/A index N/A N/A _entry N/A command output cmd None N/A N/A N/A trace append _entry N/A trace N/A N/A ConnectionError N/A EapiError N/A N/A Base exception raised for connection errors

    Connection errors are raised when a connection object is unable to
    connect to the node.  Typically these errors can result from using
    the wrong transport type or not providing valid credentials.

    Args:
        commands (array): The list of commands there were sent to the
            node that when the exception was raised
        connection_type (string): The string identifier for the connection
            object that generate the error
        message (string): The exception error message
        response (string): The message generate from the response packet

     __init__ N/A N/A self connection_type message commands N/A None N/A N/A N/A self message message N/A N/A self connection_type connection_type N/A N/A self commands commands N/A N/A N/A N/A super ConnectionError self __init__ message N/A N/A SocketConnection N/A HTTPConnection N/A __init__ N/A N/A self path timeout N/A 60 N/A N/A N/A N/A HTTPConnection __init__ self localhost N/A N/A self path path N/A N/A self timeout timeout N/A __str__ N/A N/A self N/A N/A N/A N/A unix:%s N/A self path N/A __repr__ N/A N/A self N/A N/A N/A N/A unix:%s N/A self path N/A connect N/A N/A self N/A N/A N/A N/A self sock N/A N/A socket socket N/A socket AF_UNIX N/A socket SOCK_STREAM N/A N/A N/A N/A self sock settimeout N/A self timeout N/A N/A N/A N/A self sock connect N/A self path N/A N/A HttpConnection N/A HTTPConnection N/A __init__ N/A N/A self path N/A args kwargs N/A N/A N/A N/A HTTPConnection __init__ self args kwargs N/A N/A self path path N/A __str__ N/A N/A self N/A N/A N/A N/A http://%s:%s/%s N/A N/A self host N/A self port N/A self path N/A __repr__ N/A N/A self N/A N/A N/A N/A http://%s:%s/%s N/A N/A self host N/A self port N/A self path N/A N/A HttpsConnection N/A HTTPSConnection N/A __init__ N/A N/A self path N/A args kwargs N/A N/A N/A N/A HTTPSConnection __init__ self args kwargs N/A N/A self path path N/A __str__ N/A N/A self N/A N/A N/A N/A https://%s:%s/%s N/A N/A self host N/A self port N/A self path N/A __repr__ N/A N/A self N/A N/A N/A N/A https://%s:%s/%s N/A N/A self host N/A self port N/A self path N/A N/A EapiConnection N/A object N/A N/A Creates a connection to eAPI for sending and receiving eAPI requests

    The EapiConnection object provides an implementation for sending and
    receiving eAPI requests and responses.  This class should not need to
    be instantiated directly.
     __init__ N/A N/A self N/A N/A N/A N/A self transport None N/A N/A self error None N/A N/A self socket_error None N/A N/A self _auth None N/A __str__ N/A N/A self N/A N/A N/A N/A EapiConnection(transport=%s) N/A str N/A self transport N/A __repr__ N/A N/A self N/A N/A N/A N/A EapiConnection(transport=%s) N/A repr N/A self transport N/A authentication N/A N/A self username password N/A N/A N/A Configures the user authentication for eAPI

        This method configures the username and password combination to use
        for authenticating to eAPI.

        Args:
            username (str): The username to use to authenticate the eAPI
                connection with
            password (str): The password in clear text to use to authenticate
                the eAPI connection with

         N/A N/A N/A int N/A N/A sys version N/A 0 2 N/A N/A _auth_text N/A N/A {}:{} format username password N/A _auth_bin N/A N/A base64 encodebytes N/A N/A _auth_text encode N/A _auth N/A N/A _auth_bin decode N/A _auth N/A N/A _auth replace N/A N/A self _auth _auth N/A N/A _auth N/A N/A base64 encodestring N/A N/A {}:{} format username password N/A N/A self _auth N/A N/A N/A str _auth replace N/A N/A N/A _LOGGER debug N/A N/A Autentication string is: {} format N/A self _auth N/A request N/A N/A self commands encoding reqid N/A None None N/A N/A Generates an eAPI request object

        This method will take a list of EOS commands and generate a valid
        eAPI request object form them.  The eAPI request object is then
        JSON encoding and returned to the caller.

        eAPI Request Object

        .. code-block:: json

            {
                "jsonrpc": "2.0",
                "method": "runCmds",
                "params": {
                    "version": 1,
                    "cmds": [
                        <commands>
                    ],
                    "format": [json, text],
                }
                "id": <reqid>
            }

        Args:
            commands (list): A list of commands to include in the eAPI
                request object
            encoding (string): The encoding method passed as the `format`
                parameter in the eAPI request
            reqid (string): A custom value to assign to the request ID
                field.  This value is automatically generated if not passed

        Returns:
            A JSON encoding request structure that can be send over eAPI

         N/A commands N/A make_iterable commands N/A reqid N/A N/A reqid None N/A id self reqid N/A params N/A version cmds format 1 commands encoding N/A N/A N/A json dumps N/A jsonrpc method params id 2.0 runCmds params N/A str reqid N/A send N/A N/A self data N/A N/A N/A Sends the eAPI request to the destination node

        This method is responsible for sending an eAPI request to the
        destination node and returning a response based on the eAPI response
        object.  eAPI responds to request messages with either a success
        message or failure message.

        eAPI Response - success

        .. code-block:: json

            {
                "jsonrpc": "2.0",
                "result": [
                    {},
                    {}
                    {
                        "warnings": [
                            <message>
                        ]
                    },
                ],
                "id": <reqid>
            }

        eAPI Response - failure

        .. code-block:: json

            {
                "jsonrpc": "2.0",
                "error": {
                    "code": <int>,
                    "message": <string>
                    "data": [
                        {},
                        {},
                        {
                            "errors": [
                                <message>
                            ]
                        }
                    ]
                }
                "id": <reqid>
            }

        Args:
            data (string): The data to be included in the body of the eAPI
                request object

        Returns:
            A decoded response.  The response object is deserialized from
                JSON and returned as a standard Python dictionary object

        Raises:
            CommandError if an eAPI failure response object is returned from
                the node.   The CommandError exception includes the error
                code and error message from the eAPI response.
         N/A N/A N/A N/A N/A N/A N/A _LOGGER debug N/A N/A Request content: {} format data N/A N/A N/A N/A self transport putrequest POST /command-api N/A N/A N/A N/A self transport putheader Content-type application/json-rpc N/A N/A N/A N/A self transport putheader Content-length N/A %d N/A len data N/A N/A self _auth N/A N/A N/A N/A N/A self transport putheader Authorization N/A Basic %s N/A self _auth N/A N/A N/A int N/A N/A sys version N/A 0 2 N/A N/A data N/A N/A data encode N/A N/A N/A N/A self transport endheaders message_body data N/A N/A N/A response N/A N/A N/A self transport getresponse buffering True N/A N/A N/A TypeError N/A N/A response N/A N/A N/A self transport getresponse N/A response_content N/A N/A response read N/A N/A N/A _LOGGER debug N/A N/A Response: status:{status}, reason:{reason} format status N/A response status reason N/A response reason N/A N/A N/A _LOGGER debug N/A N/A Response content: {} format response_content N/A N/A N/A N/A type response_content str N/A N/A response_content N/A N/A response_content decode N/A decoded N/A N/A json loads response_content N/A N/A N/A _LOGGER debug N/A eapi_response: %s decoded N/A N/A error decoded N/A N/A N/A code msg err out N/A N/A self _parse_error_message decoded N/A N/A CommandError code msg command_error err output out N/A decoded N/A N/A N/A N/A N/A socket error ValueError N/A exc N/A N/A N/A isinstance exc N/A socket error N/A N/A N/A self socket_error exc N/A N/A N/A _LOGGER exception exc N/A N/A self error exc N/A N/A ConnectionError N/A str self unable to connect to eAPI N/A N/A N/A N/A N/A self transport close N/A _parse_error_message N/A N/A self message N/A N/A N/A Parses the eAPI failure response message

        This method accepts an eAPI failure message and parses the necesary
        parts in order to generate a CommandError.

        Args:
            message (str): The error message to parse

        Returns:
            tuple: A tuple that consists of the following:
                * code: The error code specified in the failure message
                * message: The error text specified in the failure message
                * error: The error text from the command that generated the
                    error (the last command that ran)
                * output: A list of all output from all commands
         N/A msg N/A N/A message N/A error N/A message N/A code N/A N/A message N/A error N/A code N/A err None N/A out None N/A N/A data N/A message N/A error N/A N/A err N/A N/A join N/A N/A N/A N/A message N/A error N/A data N/A -1 N/A errors N/A out N/A N/A message N/A error N/A data N/A N/A code msg err out N/A execute N/A N/A self commands encoding N/A json kwargs N/A N/A Executes the list of commands on the destination node

        This method takes a list of commands and sends them to the
        destination node, returning the results.  The execute method handles
        putting the destination node in enable mode and will pass the
        enable password, if required.

        Args:
            commands (list): A list of commands to execute on the remote node
            encoding (string): The encoding to send along with the request
                message to the destination node.  Valid values include 'json'
                or 'text'.  This argument will influence the response object
                encoding
            **kwargs: Arbitrary keyword arguments

        Returns:
            A decoded response message as a native Python dictionary object
            that has been deserialized from JSON.

        Raises:
            CommandError:  A CommandError is raised that includes the error
                code, error message along with the list of commands that were
                sent to the node.  The exception instance is also stored in
                the error property and is availble until the next request is
                sent
         N/A N/A encoding N/A json text N/A N/A N/A TypeError encoding must be one of [json, text] N/A N/A N/A N/A self error None N/A request N/A N/A self request commands encoding encoding kwargs N/A response N/A N/A self send request N/A response N/A N/A N/A N/A ConnectionError CommandError TypeError N/A exc N/A N/A N/A exc commands commands N/A N/A self error exc N/A N/A N/A SocketEapiConnection N/A EapiConnection N/A __init__ N/A N/A self path timeout N/A None 60 kwargs N/A N/A N/A N/A N/A super SocketEapiConnection self __init__ N/A path N/A path DEFAULT_UNIX_SOCKET N/A N/A self transport N/A SocketConnection path timeout N/A N/A HttpLocalEapiConnection N/A EapiConnection N/A __init__ N/A N/A self port path timeout N/A None None 60 kwargs N/A N/A N/A N/A N/A super HttpLocalEapiConnection self __init__ N/A port N/A port DEFAULT_HTTP_LOCAL_PORT N/A path N/A path DEFAULT_HTTP_PATH N/A N/A self transport N/A HttpConnection path localhost port timeout timeout N/A N/A HttpEapiConnection N/A EapiConnection N/A __init__ N/A N/A self host port path username password timeout N/A None None None None 60 kwargs N/A N/A N/A N/A N/A super HttpEapiConnection self __init__ N/A port N/A port DEFAULT_HTTP_PORT N/A path N/A path DEFAULT_HTTP_PATH N/A N/A self transport N/A HttpConnection path host port timeout timeout N/A N/A N/A self authentication username password N/A N/A HttpsEapiConnection N/A EapiConnection N/A __init__ N/A N/A self host port path username password context timeout N/A None None None None None 60 kwargs N/A N/A N/A N/A N/A super HttpsEapiConnection self __init__ N/A port N/A port DEFAULT_HTTPS_PORT N/A path N/A path DEFAULT_HTTP_PATH N/A enforce_verification N/A N/A kwargs get enforce_verification N/A N/A N/A context None N/A enforce_verification N/A N/A context N/A N/A self disable_certificate_verification N/A N/A self transport N/A https_connection_factory path host port context timeout N/A N/A N/A self authentication username password N/A disable_certificate_verification N/A N/A self N/A N/A N/A N/A hasattr ssl _create_unverified_context N/A N/A N/A N/A ssl _create_unverified_context N/A N/A