fix 57447 bug (#57938)

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit d63ccb5bc8)
This commit is contained in:
Sumit Jaiswal 2019-06-18 10:09:43 +05:30 committed by Toshio Kuratomi
parent b41bbd9564
commit db13610701
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- To fix the netvisor failure with network_cli connection - https://github.com/ansible/ansible/pull/57938

View file

@ -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: