fix regex cliconf nxos (#42288)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
51092c6ea5
commit
df8ad8ebf9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue