def __init__(self, resource_config, api): """Initialize Enable command mode - default command mode for Alcatel Shells""" self.resource_config = resource_config self._api = api CommandMode.__init__(self, self.PROMPT, self.ENTER_COMMAND, self.EXIT_COMMAND)
def __init__(self, resource_config, api): """Initialize Config command mode""" self.resource_config = resource_config self._api = api CommandMode.__init__(self, self.PROMPT, self.ENTER_COMMAND, self.EXIT_COMMAND)
def __init__(self, context): CommandMode.__init__( self, CliCommandMode.PROMPT, CliCommandMode.ENTER_COMMAND, CliCommandMode.EXIT_COMMAND, )
def __init__(self, resource_config, api): self.resource_config = resource_config self._api = api CommandMode.__init__(self, ConfigCommandMode.PROMPT, ConfigCommandMode.ENTER_COMMAND, ConfigCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self): CommandMode.__init__(self, self.PROMPT, self.ENTER_COMMAND, self.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self, context): """Initialize Enable command mode - default command mode for Cisco Shells.""" self._context = context CommandMode.__init__( self, EnableCommandMode.PROMPT, EnableCommandMode.ENTER_COMMAND, EnableCommandMode.EXIT_COMMAND, )
def __init__(self, context): """ Initialize Default command mode, only for cases when session started not in enable mode :param context: """ self._context = context CommandMode.__init__(self, DefaultCommandMode.PROMPT, DefaultCommandMode.ENTER_COMMAND, DefaultCommandMode.EXIT_COMMAND)
def __init__(self, context): """Initialize Config command mode.""" exit_action_map = { self.PROMPT: lambda session, logger: session.send_line("exit", logger) } CommandMode.__init__( self, ConfigCommandMode.PROMPT, ConfigCommandMode.ENTER_COMMAND, ConfigCommandMode.EXIT_COMMAND, exit_action_map=exit_action_map, )
def __init__(self): """ Initialize Default command mode, only for cases when session started not in enable mode :param context: """ CommandMode.__init__(self, DefaultCommandMode.PROMPT, DefaultCommandMode.ENTER_COMMAND, DefaultCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self, resource_config, api): """ Initialize Config command mode :param resource_config: """ self.resource_config = resource_config self._api = api self._root_password = None CommandMode.__init__(self, RootCommandMode.PROMPT, RootCommandMode.ENTER_COMMAND, RootCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map())
def __init__(self, resource_config, api): """ Initialize Default command mode, only for cases when session started not in enable mode :param resource_config: """ self.resource_config = resource_config self._api = api CommandMode.__init__( self, AristaDefaultCommandMode.PROMPT, AristaDefaultCommandMode.ENTER_COMMAND, AristaDefaultCommandMode.EXIT_COMMAND, )
def __init__(self): """ Initialize Config command mode :param context: """ exit_action_map = {self.PROMPT: lambda session, logger: session.send_line("exit", logger)} CommandMode.__init__(self, EnableCommandMode.PROMPT, EnableCommandMode.ENTER_COMMAND, EnableCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=exit_action_map, enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self, resource_config, api): """ Initialize Config command mode :param resource_config: """ self.resource_config = resource_config self._api = api CommandMode.__init__( self, AristaConfigCommandMode.PROMPT, AristaConfigCommandMode.ENTER_COMMAND, AristaConfigCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), )
def __init__(self, resource_config, api): """ Initialize Config command mode :param resource_config: """ exit_action_map = { self.PROMPT: lambda session, logger: session.send_line('exit', logger) } CommandMode.__init__(self, CiscoIOSXRAdminCommandMode.PROMPT, CiscoIOSXRAdminCommandMode.ENTER_COMMAND, CiscoIOSXRAdminCommandMode.EXIT_COMMAND, exit_action_map=exit_action_map)
def __init__(self, resource_config, api): """ Initialize Enable command mode - default command mode for Shells :param context: """ self.resource_config = resource_config self._api = api CommandMode.__init__(self, EnableCommandMode.PROMPT, EnableCommandMode.ENTER_COMMAND, EnableCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self, resource_config, api): """ Initialize Default command mode, only for cases when session started not in enable mode :param resource_config: """ self.resource_config = resource_config self._api = api CommandMode.__init__(self, DefaultCommandMode.PROMPT, DefaultCommandMode.ENTER_COMMAND, DefaultCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self, resource_config, api): """ Initialize Enable command mode - default command mode for Arista Shells :param resource_config: """ self.resource_config = resource_config self._api = api self._enable_password = None CommandMode.__init__( self, AristaEnableCommandMode.PROMPT, AristaEnableCommandMode.ENTER_COMMAND, AristaEnableCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), )
def __init__(self, resource_config, api): """Init command. :param resource_config: """ self.resource_config = resource_config self._api = api self._enable_password = None CommandMode.__init__( self, EnableCommandMode.PROMPT, EnableCommandMode.ENTER_COMMAND, EnableCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=self.exit_action_map(), enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map(), )
def __init__(self, resource_config, api): """ Initialize Config command mode :param context: """ self.resource_config = resource_config self._api = api exit_action_map = { self.PROMPT: lambda session, logger: session.send_line('exit', logger)} CommandMode.__init__(self, ConfigCommandMode.PROMPT, ConfigCommandMode.ENTER_COMMAND, ConfigCommandMode.EXIT_COMMAND, enter_action_map=self.enter_action_map(), exit_action_map=exit_action_map, enter_error_map=self.enter_error_map(), exit_error_map=self.exit_error_map())
def __init__(self): CommandMode.__init__(self, EditSnmpCommandMode.PROMPT, EditSnmpCommandMode.ENTER_COMMAND, EditSnmpCommandMode.EXIT_COMMAND)