Skip to content

Commit b9e09b2

Browse files
Steven MilesQalthos
Steven Miles
authored andcommitted
Add regex for network_os_model
1 parent edb35b9 commit b9e09b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/cliconf/asa.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def get_device_info(self):
8989
if match:
9090
device_info["network_os_model"] = match.group(1)
9191

92+
match = re.search(r"Hardware:\s+ ([\w-]+)", data, re.M)
93+
if match:
94+
device_info["network_os_model"] = match.group(1)
95+
9296
match = re.search(r"^(.+) up", data, re.M)
9397
if match:
9498
device_info["network_os_hostname"] = match.group(1)

0 commit comments

Comments
 (0)