networkapi.plugins.HP package

Submodules

networkapi.plugins.HP.plugin module

class networkapi.plugins.HP.plugin.HPE(**kwargs)[source]

Bases: networkapi.plugins.base.BasePlugin

ERROR_REGEX = "Wrong parameter found at|File not found|Timeout was reached|The file or directory doesn't exist"
INVALID_REGEX = '([Ii]nvalid)|% Incomplete command found at|already exists'
MAX_TRIES = 5
RETRY_WAIT_TIME = 5
VALID_OUTPUT_CHARS = '-_.():/#<>\\\r\n abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
VALID_TFTP_GET_MESSAGE = '>'
copyScriptFileToConfig(**kwargs)[source]

Copy file from TFTP server to destination By default, plugin should apply file in running configuration (active)

ensure_privilege_level(**kwargs)[source]

Ensure connection has the right privileges expected.

waitString(wait_str_ok_regex='>', wait_str_invalid_regex=None, wait_str_failed_regex=None)[source]

Module contents