mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix regex cliconf nxos (#42288)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ class Cliconf(CliconfBase):
|
|||||||
if match_isan_file_name:
|
if match_isan_file_name:
|
||||||
device_info['network_os_image'] = match_isan_file_name.group(1)
|
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)
|
r'PID:\s+(\S+)', platform_reply, re.M)
|
||||||
if match_os_platform:
|
if match_os_platform:
|
||||||
device_info['network_os_platform'] = match_os_platform.group(1)
|
device_info['network_os_platform'] = match_os_platform.group(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user