From ead20a4f1cbf56055b271328e76ce499b5729f39 Mon Sep 17 00:00:00 2001 From: greenfox878 <8571032+greenfox878@users.noreply.github.com> Date: Sun, 15 Jun 2025 22:32:59 +0500 Subject: [PATCH 1/2] Add ASR1k --- annet/annlib/netdev/devdb/data/devdb.json | 1 + 1 file changed, 1 insertion(+) diff --git a/annet/annlib/netdev/devdb/data/devdb.json b/annet/annlib/netdev/devdb/data/devdb.json index 18636110..8415312f 100644 --- a/annet/annlib/netdev/devdb/data/devdb.json +++ b/annet/annlib/netdev/devdb/data/devdb.json @@ -4,6 +4,7 @@ "Cisco.IE": " IE", "Cisco.AIR": "AIR", "Cisco.ASR": " ASR", + "Cisco.ASR.ASR1000": " ?1\\d{3}", "Cisco.ASR.ASR9000": " 9\\d{3}", "Cisco.XRV": "XRv", "Cisco.XR": " 8[\\d\\d\\d]", From 085912b7b2b72350df807428cc8c183cd9d6165e Mon Sep 17 00:00:00 2001 From: greenfox878 <8571032+greenfox878@users.noreply.github.com> Date: Sun, 15 Jun 2025 22:35:42 +0500 Subject: [PATCH 2/2] Match ASR1k as cisco ios --- annet/vendors/library/cisco.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annet/vendors/library/cisco.py b/annet/vendors/library/cisco.py index 70711267..31ae3cd4 100644 --- a/annet/vendors/library/cisco.py +++ b/annet/vendors/library/cisco.py @@ -20,7 +20,7 @@ def apply(self, hw: HardwareView, do_commit: bool, do_finalize: bool, path: str) return before, after def match(self) -> list[str]: - return ["Cisco"] + return ["Cisco", "Cisco.ASR.ASR1000"] @property def reverse(self) -> str: