From b9e09b2331ea999c13d26bb09c44e6c0af79b22c Mon Sep 17 00:00:00 2001 From: Steven Miles Date: Tue, 7 Feb 2023 11:04:00 -0500 Subject: [PATCH] Add regex for network_os_model --- plugins/cliconf/asa.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/cliconf/asa.py b/plugins/cliconf/asa.py index 82d0f816..6997cc3c 100644 --- a/plugins/cliconf/asa.py +++ b/plugins/cliconf/asa.py @@ -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)