question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

f5 send_config_set error

See original GitHub issue

Hello,

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:open
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Trasmontinhocommented, Feb 10, 2021

Ok I’ll do so. I’ll propose a test set for F5 checks also.

0reactions
ktbyerscommented, Feb 10, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Message: The configuration has not yet loaded. If this ...
The configuration has not yet loaded. If this message persists, it may indicate a configuration problem. The previous error may be accompanied ...
Read more >
BIG-IP : upgrade fails to transfer configuration
I am getting below error, when replacing F5 box used old config files, want restore? over Mgm port? Any help? root@(localhost)(cfg-sync ...
Read more >
Backing up and restoring BIG-IP configuration files with a ...
This article describes how to back up and restore your BIG-IP configuration data using a UCS configuration archive. The UCS archive ...
Read more >
K30371285: Configuring email alerts for BIG-IP system ...
When configuration changes occur, the system sends audit messages to the ... You can create custom logging filters to catch the create, ...
Read more >
indicating the assertion sent to SP must be signed
F5 as IdP with the default setting of true for want-assertion-signed; Configuration won't load; ERROR: 01070734:3: Configuration error: IdP ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found