Module netmiko.no_config
Expand source code
class NoConfig:
"""
Class for platforms that have no config mode.
check_config_mode returns True as the expectation is that configuration commands
can be executed directly. So in your current state, you are in "config mode" i.e.
you can make configuration changes.
If you truly cannot make any configuration changes to device then you should probably
overwrite check_config_mode in the platform specific driver and return False.
"""
def check_config_mode(
self, check_string: str = "", pattern: str = "", force_regex: bool = False
) -> bool:
return True
def config_mode(
self, config_command: str = "", pattern: str = "", re_flags: int = 0
) -> str:
return ""
def exit_config_mode(self, exit_config: str = "", pattern: str = "") -> str:
return ""
Classes
class NoConfig
-
Class for platforms that have no config mode.
check_config_mode returns True as the expectation is that configuration commands can be executed directly. So in your current state, you are in "config mode" i.e. you can make configuration changes.
If you truly cannot make any configuration changes to device then you should probably overwrite check_config_mode in the platform specific driver and return False.
Expand source code
class NoConfig: """ Class for platforms that have no config mode. check_config_mode returns True as the expectation is that configuration commands can be executed directly. So in your current state, you are in "config mode" i.e. you can make configuration changes. If you truly cannot make any configuration changes to device then you should probably overwrite check_config_mode in the platform specific driver and return False. """ def check_config_mode( self, check_string: str = "", pattern: str = "", force_regex: bool = False ) -> bool: return True def config_mode( self, config_command: str = "", pattern: str = "", re_flags: int = 0 ) -> str: return "" def exit_config_mode(self, exit_config: str = "", pattern: str = "") -> str: return ""
Subclasses
- AccedianSSH
- AdvaAosFsp150F2SSH
- AdvaAosFsp150F3SSH
- AlcatelAosSSH
- BrocadeFOSSSH
- CheckPointGaiaSSH
- CienaSaosBase
- CiscoFtdSSH
- NetscalerSSH
- CloudGenixIonSSH
- CoriantSSH
- DigiTransportBase
- DlinkDSBase
- ExtremeExosBase
- F5TmshSSH
- FortinetSSH
- JuniperScreenOsSSH
- KeymileSSH
- MikrotikBase
- PluribusSSH
- SophosSfosSSH
- ZyxelSSH
Methods
def check_config_mode(self, check_string: str = '', pattern: str = '', force_regex: bool = False) ‑> bool
-
Expand source code
def check_config_mode( self, check_string: str = "", pattern: str = "", force_regex: bool = False ) -> bool: return True
def config_mode(self, config_command: str = '', pattern: str = '', re_flags: int = 0) ‑> str
-
Expand source code
def config_mode( self, config_command: str = "", pattern: str = "", re_flags: int = 0 ) -> str: return ""
def exit_config_mode(self, exit_config: str = '', pattern: str = '') ‑> str
-
Expand source code
def exit_config_mode(self, exit_config: str = "", pattern: str = "") -> str: return ""