diff --git a/changelogs/fragments/57447-netvisor-failing-with-network_cli-connection.yaml b/changelogs/fragments/57447-netvisor-failing-with-network_cli-connection.yaml new file mode 100644 index 00000000000..881f1eb377b --- /dev/null +++ b/changelogs/fragments/57447-netvisor-failing-with-network_cli-connection.yaml @@ -0,0 +1,2 @@ +bugfixes: +- To fix the netvisor failure with network_cli connection - https://github.com/ansible/ansible/pull/57938 \ No newline at end of file diff --git a/lib/ansible/plugins/cliconf/netvisor.py b/lib/ansible/plugins/cliconf/netvisor.py index 1b37b6950e7..ac5f45d5baa 100644 --- a/lib/ansible/plugins/cliconf/netvisor.py +++ b/lib/ansible/plugins/cliconf/netvisor.py @@ -35,7 +35,16 @@ from ansible.plugins.cliconf import CliconfBase class Cliconf(CliconfBase): - def get(self, command=None, prompt=None, answer=None, sendonly=False, output=None, check_all=False): + def get_config(self, source='running', format='text', flags=None): + if source not in ('running'): + return self.invalid_params("fetching configuration from %s is not supported" % source) + cmd = 'show running-config' + return self.send_command(cmd) + + def edit_config(self, command): + return + + def get(self, command=None, prompt=None, answer=None, sendonly=False, output=None, newline=True, check_all=False): if not command: raise ValueError('must provide value of command to execute') if output: