Module netmiko.digi.digi_transport

Digi TransPort Routers

Classes

class DigiTransportBase (*args: Any, **kwargs: Any)

Class for platforms that have no enable mode.

Netmiko translates the meaning of "enable" mode to be a proxy for "can go into config mode". In other words, that you ultimately have privileges to execute configuration changes.

The expectation on platforms that have no method for elevating privileges is that the standard default privileges allow configuration changes.

Consequently check_enable_mode returns True by default for platforms that don't explicitly support enable mode.

Expand source code
class DigiTransportBase(NoEnable, NoConfig, CiscoSSHConnection):
    def __init__(self, *args: Any, **kwargs: Any) -> None:
        default_enter = kwargs.get("default_enter")
        kwargs["default_enter"] = "\r\n" if default_enter is None else default_enter
        super().__init__(*args, **kwargs)

    def save_config(
        self,
        cmd: str = "config 0 save",
        confirm: bool = False,
        confirm_response: str = "",
    ) -> str:
        output = self._send_command_str(
            command_string=cmd, expect_string="Please wait..."
        )
        return output

Ancestors

Subclasses

Inherited members

class DigiTransportSSH (*args: Any, **kwargs: Any)

Class for platforms that have no enable mode.

Netmiko translates the meaning of "enable" mode to be a proxy for "can go into config mode". In other words, that you ultimately have privileges to execute configuration changes.

The expectation on platforms that have no method for elevating privileges is that the standard default privileges allow configuration changes.

Consequently check_enable_mode returns True by default for platforms that don't explicitly support enable mode.

Expand source code
class DigiTransportSSH(DigiTransportBase):
    pass

Ancestors

Inherited members