Skip to content

Commit

Permalink
Add regex for network_os_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Miles authored and Qalthos committed Jun 2, 2023
1 parent edb35b9 commit b9e09b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/cliconf/asa.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def get_device_info(self):
if match:
device_info["network_os_model"] = match.group(1)

match = re.search(r"Hardware:\s+ ([\w-]+)", data, re.M)
if match:
device_info["network_os_model"] = match.group(1)

match = re.search(r"^(.+) up", data, re.M)
if match:
device_info["network_os_hostname"] = match.group(1)
Expand Down

0 comments on commit b9e09b2

Please sign in to comment.