From 283b42fa9dffce7ccfb55145962571514c324979 Mon Sep 17 00:00:00 2001 From: Ryan Gillespie <24619595+nopg@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:52:12 -0600 Subject: [PATCH] map aruba_os to existing aoscx parser --- docs/dev/include_parser_list.md | 1 + docs/user/lib_mapper/netutilsparser.md | 1 + docs/user/lib_mapper/netutilsparser_reverse.md | 1 + netutils/config/compliance.py | 1 + netutils/lib_mapper.py | 2 ++ 5 files changed, 6 insertions(+) diff --git a/docs/dev/include_parser_list.md b/docs/dev/include_parser_list.md index 2c3d0c7d..aef4ac1e 100644 --- a/docs/dev/include_parser_list.md +++ b/docs/dev/include_parser_list.md @@ -2,6 +2,7 @@ | ---------- | ------ | | arista_eos | netutils.config.parser.EOSConfigParser | | aruba_aoscx | netutils.config.parser.ArubaConfigParser | +| aruba_os | netutils.config.parser.ArubaConfigParser | | bigip_f5 | netutils.config.parser.F5ConfigParser | | cisco_aireos | netutils.config.parser.AIREOSConfigParser | | cisco_asa | netutils.config.parser.ASAConfigParser | diff --git a/docs/user/lib_mapper/netutilsparser.md b/docs/user/lib_mapper/netutilsparser.md index 4f76423a..8d28e5fa 100644 --- a/docs/user/lib_mapper/netutilsparser.md +++ b/docs/user/lib_mapper/netutilsparser.md @@ -2,6 +2,7 @@ | ---------- | -- | ------ | | arista_eos | → | arista_eos | | aruba_aoscx | → | aruba_aoscx | +| aruba_os | → | aruba_os | | bigip_f5 | → | bigip_f5 | | cisco_aireos | → | cisco_aireos | | cisco_asa | → | cisco_asa | diff --git a/docs/user/lib_mapper/netutilsparser_reverse.md b/docs/user/lib_mapper/netutilsparser_reverse.md index fb8b24b1..36c8dbf3 100644 --- a/docs/user/lib_mapper/netutilsparser_reverse.md +++ b/docs/user/lib_mapper/netutilsparser_reverse.md @@ -2,6 +2,7 @@ | ---------- | -- | ------ | | arista_eos | → | arista_eos | | aruba_aoscx | → | aruba_aoscx | +| aruba_os | → | aruba_os | | bigip_f5 | → | bigip_f5 | | cisco_aireos | → | cisco_aireos | | cisco_asa | → | cisco_asa | diff --git a/netutils/config/compliance.py b/netutils/config/compliance.py index e85ae2e4..18bb83dd 100644 --- a/netutils/config/compliance.py +++ b/netutils/config/compliance.py @@ -9,6 +9,7 @@ parser_map: t.Dict[str, t.Type[parser.BaseConfigParser]] = { "arista_eos": parser.EOSConfigParser, "aruba_aoscx": parser.ArubaConfigParser, + "aruba_os": parser.ArubaConfigParser, "bigip_f5": parser.F5ConfigParser, "cisco_aireos": parser.AIREOSConfigParser, "cisco_asa": parser.ASAConfigParser, diff --git a/netutils/lib_mapper.py b/netutils/lib_mapper.py index d638958a..b511b558 100644 --- a/netutils/lib_mapper.py +++ b/netutils/lib_mapper.py @@ -384,6 +384,7 @@ NETUTILSPARSER_LIB_MAPPER: t.Dict[str, str] = { "arista_eos": "arista_eos", "aruba_aoscx": "aruba_aoscx", + "aruba_os": "aruba_os", "bigip_f5": "bigip_f5", "cisco_aireos": "cisco_aireos", "cisco_asa": "cisco_asa", @@ -546,6 +547,7 @@ NETUTILSPARSER_LIB_MAPPER_REVERSE: t.Dict[str, str] = { "arista_eos": "arista_eos", "aruba_aoscx": "aruba_aoscx", + "aruba_os": "aruba_os", "bigip_f5": "bigip_f5", "cisco_aireos": "cisco_aireos", "cisco_asa": "cisco_asa",