fix regex cliconf nxos (#42288)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/42297/head
Trishna Guha 6 years ago committed by GitHub
parent 51092c6ea5
commit df8ad8ebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,7 +94,7 @@ class Cliconf(CliconfBase):
if match_isan_file_name:
device_info['network_os_image'] = match_isan_file_name.group(1)
match_os_platform = re.search(r'NAME: "Chassis",\s+DESCR: "NX-OSv Chassis\s?"\s+\n'
match_os_platform = re.search(r'NAME: "Chassis",\s+DESCR:.*\n'
r'PID:\s+(\S+)', platform_reply, re.M)
if match_os_platform:
device_info['network_os_platform'] = match_os_platform.group(1)

Loading…
Cancel
Save