mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
flag added foy vyos_interface module (#57124)
Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
This commit is contained in:
@@ -71,10 +71,18 @@ class Cliconf(CliconfBase):
|
||||
if format not in option_values['format']:
|
||||
raise ValueError("'format' value %s is invalid. Valid values of format are %s" % (format, ', '.join(option_values['format'])))
|
||||
|
||||
if not flags:
|
||||
flags = []
|
||||
|
||||
if format == 'text':
|
||||
out = self.send_command('show configuration')
|
||||
command = 'show configuration'
|
||||
else:
|
||||
out = self.send_command('show configuration commands')
|
||||
command = 'show configuration commands'
|
||||
|
||||
command += ' '.join(to_list(flags))
|
||||
command = command.strip()
|
||||
|
||||
out = self.send_command(command)
|
||||
return out
|
||||
|
||||
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
|
||||
|
||||
Reference in New Issue
Block a user