Fix side-effect of flags being passed to ios get_config again (#37084)
This commit is contained in:
parent
23f15e6ff6
commit
f0dc0b28d4
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ class Cliconf(CliconfBase):
|
||||||
if source not in ('running', 'startup'):
|
if source not in ('running', 'startup'):
|
||||||
return self.invalid_params("fetching configuration from %s is not supported" % source)
|
return self.invalid_params("fetching configuration from %s is not supported" % source)
|
||||||
if source == 'running':
|
if source == 'running':
|
||||||
cmd = 'show running-config all'
|
cmd = 'show running-config '
|
||||||
|
if not flags:
|
||||||
|
flags = ['all']
|
||||||
else:
|
else:
|
||||||
cmd = 'show startup-config'
|
cmd = 'show startup-config'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue