Update cliconf get_config api (#43472)

*  Change `filter` parameter to `flag` to be in sync
   with original naming convention
This commit is contained in:
Ganesh Nalawade 2018-07-31 02:53:29 -07:00 committed by GitHub
parent c8fcbdef71
commit 857200fa7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 15 deletions

View file

@ -75,7 +75,7 @@ class Cliconf(CliconfBase):
return resp
@enable_mode
def get_config(self, source='running', format='text', filter=None):
def get_config(self, source='running', format='text', flag=None):
options_values = self.get_option_values()
if format not in options_values['format']:
raise ValueError("'format' value %s is invalid. Valid values are %s" % (format, ','.join(options_values['format'])))
@ -88,7 +88,7 @@ class Cliconf(CliconfBase):
if format and format is not 'text':
cmd += '| %s ' % format
cmd += ' '.join(to_list(filter))
cmd += ' '.join(to_list(flag))
cmd = cmd.strip()
return self.send_command(cmd)