Beispiel #1
0
 def __init__(
     self,
     resource_config: NetworkingResourceConfig,
     api: CloudShellAPISession,
     logger: Logger,
     cli: CLI,
 ):
     super().__init__(resource_config=resource_config,
                      logger=logger,
                      cli=cli)
     self._resource_config = resource_config
     self.modes = CommandModeHelper.create_command_mode(
         resource_config, api)
     self._registered_sessions = (
         *self._registered_sessions,  # type: ignore
         ConsoleSSHSession,
         ConsoleTelnetSession,
         ConsoleTelnetSessionNewLine,
     )
 def __init__(self, cli, resource_config, logger):
     super(CiscoCliHandler, self).__init__(resource_config, logger, cli)
     self.modes = CommandModeHelper.create_command_mode(resource_config)