f5 send_config_set error
See original GitHub issueHello,
I’ve met an error in f5 devices when I tried to use the command send_config_set on f5 devices.
The error is below : result = net_connect.send_config_set(config_commands=config_commands, **kwargs) File “/usr/local/lib/python3.6/dist-packages/netmiko/base_connection.py”, line 1872, in send_config_set output += self.exit_config_mode() File “/usr/local/lib/python3.6/dist-packages/netmiko/base_connection.py”, line 1754, in exit_config_mode raise ValueError(“Failed to exit configuration mode”) ValueError: Failed to exit configuration mode
I’ve solved it by adding the missing functions in the F5TmshSSH class like :
def config_mode(self, config_command=""):
"No config mode for Fortinet devices."""
return ""
def exit_config_mode(self, exit_config=""):
"""No config mode for Fortinet devices."""
return ""
Do you think that could be an enhancement to this module ?
If so I can create the pull request and the supply the class file modified.
Thanks for your answer,
Regards, Sam
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Ok I’ll do so. I’ll propose a test set for F5 checks also.
Great…the F5 driver was created a long time ago so I have very little visibility into how well it works…so it would be good/nice to make improvements here.
Kirk