mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
show version brief does not work on iosxr virtual (#37609)
* show version brief does not work on iosxr virtual * ci failures fix
This commit is contained in:
parent
73d3ed85ef
commit
66b389a00d
4 changed files with 24 additions and 5 deletions
|
@ -35,7 +35,7 @@ class Cliconf(CliconfBase):
|
|||
device_info = {}
|
||||
|
||||
device_info['network_os'] = 'iosxr'
|
||||
reply = self.get(b'show version brief')
|
||||
reply = self.get(b'show version | utility head -n 20')
|
||||
data = to_text(reply, errors='surrogate_or_strict').strip()
|
||||
|
||||
match = re.search(r'Version (\S+)$', data, re.M)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue