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:
Deepak Agrawal
2018-03-29 12:33:41 +05:30
committed by GitHub
parent 73d3ed85ef
commit 66b389a00d
4 changed files with 24 additions and 5 deletions

View File

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