From b35bad3c3ad87b51100ff8317676aa78de2a98cf Mon Sep 17 00:00:00 2001 From: Jeff Kala <48843785+jeffkala@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:43:06 -0700 Subject: [PATCH] add nokia_srl to the mappers (#593) * add nokia_srl to the mappers --- docs/user/lib_mapper/ansible.md | 1 + docs/user/lib_mapper/ansible_reverse.md | 1 + docs/user/lib_mapper/napalm.md | 1 + docs/user/lib_mapper/napalm_reverse.md | 1 + docs/user/lib_mapper/netmiko.md | 1 + docs/user/lib_mapper/netmiko_reverse.md | 1 + docs/user/lib_mapper/ntctemplates.md | 1 + docs/user/lib_mapper/ntctemplates_reverse.md | 1 + docs/user/lib_mapper/scrapli.md | 3 ++- docs/user/lib_mapper/scrapli_reverse.md | 3 ++- netutils/lib_mapper.py | 7 +++++++ 11 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/user/lib_mapper/ansible.md b/docs/user/lib_mapper/ansible.md index f115e113..99ac5506 100644 --- a/docs/user/lib_mapper/ansible.md +++ b/docs/user/lib_mapper/ansible.md @@ -29,5 +29,6 @@ | f5networks.f5_bigip.bigip | → | bigip_f5 | | fortinet.fortios.fortios | → | fortinet | | junipernetworks.junos.junos | → | juniper_junos | +| nokia.srl | → | nokia_srl | | paloaltonetworks.panos.panos | → | paloalto_panos | | vyos.vyos.vyos | → | vyos | \ No newline at end of file diff --git a/docs/user/lib_mapper/ansible_reverse.md b/docs/user/lib_mapper/ansible_reverse.md index 8d285e08..1c2f09dd 100644 --- a/docs/user/lib_mapper/ansible_reverse.md +++ b/docs/user/lib_mapper/ansible_reverse.md @@ -26,6 +26,7 @@ | lenovo_cnos | → | community.network.cnos | | lenovo_enos | → | community.network.enos | | mikrotik_routeros | → | community.network.routeros | +| nokia_srl | → | nokia.srl | | nokia_sros | → | community.network.sros | | paloalto_panos | → | paloaltonetworks.panos.panos | | pluribus | → | community.network.netvisor | diff --git a/docs/user/lib_mapper/napalm.md b/docs/user/lib_mapper/napalm.md index a93f25a5..ebed9015 100644 --- a/docs/user/lib_mapper/napalm.md +++ b/docs/user/lib_mapper/napalm.md @@ -14,5 +14,6 @@ | nxos_ssh | → | cisco_nxos | | panos | → | paloalto_panos | | ros | → | mikrotik_routeros | +| srl | → | nokia_srl | | sros | → | nokia_sros | | vyos | → | vyos | \ No newline at end of file diff --git a/docs/user/lib_mapper/napalm_reverse.md b/docs/user/lib_mapper/napalm_reverse.md index f4c3a937..6d0b1611 100644 --- a/docs/user/lib_mapper/napalm_reverse.md +++ b/docs/user/lib_mapper/napalm_reverse.md @@ -13,6 +13,7 @@ | huawei | → | huawei_vrp | | juniper_junos | → | junos | | mikrotik_routeros | → | ros | +| nokia_srl | → | srl | | nokia_sros | → | sros | | paloalto_panos | → | panos | | vyos | → | vyos | \ No newline at end of file diff --git a/docs/user/lib_mapper/netmiko.md b/docs/user/lib_mapper/netmiko.md index cda9d14a..2087324f 100644 --- a/docs/user/lib_mapper/netmiko.md +++ b/docs/user/lib_mapper/netmiko.md @@ -87,6 +87,7 @@ | netapp_cdot | → | netapp_cdot | | netgear_prosafe | → | netgear_prosafe | | netscaler | → | netscaler | +| nokia_srl | → | nokia_srl | | nokia_sros | → | nokia_sros | | oneaccess_oneos | → | oneaccess_oneos | | ovs_linux | → | ovs_linux | diff --git a/docs/user/lib_mapper/netmiko_reverse.md b/docs/user/lib_mapper/netmiko_reverse.md index 5c775b89..c5c2e19d 100644 --- a/docs/user/lib_mapper/netmiko_reverse.md +++ b/docs/user/lib_mapper/netmiko_reverse.md @@ -84,6 +84,7 @@ | netapp_cdot | → | netapp_cdot | | netgear_prosafe | → | netgear_prosafe | | netscaler | → | netscaler | +| nokia_srl | → | nokia_srl | | nokia_sros | → | nokia_sros | | oneaccess_oneos | → | oneaccess_oneos | | ovs_linux | → | ovs_linux | diff --git a/docs/user/lib_mapper/ntctemplates.md b/docs/user/lib_mapper/ntctemplates.md index 500c4ca6..e29f9ba7 100644 --- a/docs/user/lib_mapper/ntctemplates.md +++ b/docs/user/lib_mapper/ntctemplates.md @@ -89,6 +89,7 @@ | netapp_cdot | → | netapp_cdot | | netgear_prosafe | → | netgear_prosafe | | netscaler | → | netscaler | +| nokia_srl | → | nokia_srl | | nokia_sros | → | nokia_sros | | oneaccess_oneos | → | oneaccess_oneos | | ovs_linux | → | ovs_linux | diff --git a/docs/user/lib_mapper/ntctemplates_reverse.md b/docs/user/lib_mapper/ntctemplates_reverse.md index 413010ae..29e636d2 100644 --- a/docs/user/lib_mapper/ntctemplates_reverse.md +++ b/docs/user/lib_mapper/ntctemplates_reverse.md @@ -86,6 +86,7 @@ | netapp_cdot | → | netapp_cdot | | netgear_prosafe | → | netgear_prosafe | | netscaler | → | netscaler | +| nokia_srl | → | nokia_srl | | nokia_sros | → | nokia_sros | | oneaccess_oneos | → | oneaccess_oneos | | ovs_linux | → | ovs_linux | diff --git a/docs/user/lib_mapper/scrapli.md b/docs/user/lib_mapper/scrapli.md index d08f35a7..d56751c1 100644 --- a/docs/user/lib_mapper/scrapli.md +++ b/docs/user/lib_mapper/scrapli.md @@ -5,4 +5,5 @@ | cisco_iosxe | → | cisco_ios | | cisco_iosxr | → | cisco_xr | | cisco_nxos | → | cisco_nxos | -| juniper_junos | → | juniper_junos | \ No newline at end of file +| juniper_junos | → | juniper_junos | +| nokia_srlinux | → | nokia_srl | \ No newline at end of file diff --git a/docs/user/lib_mapper/scrapli_reverse.md b/docs/user/lib_mapper/scrapli_reverse.md index 68833359..b66b02bc 100644 --- a/docs/user/lib_mapper/scrapli_reverse.md +++ b/docs/user/lib_mapper/scrapli_reverse.md @@ -6,4 +6,5 @@ | cisco_nxos | → | cisco_nxos | | cisco_xe | → | cisco_iosxe | | cisco_xr | → | cisco_iosxr | -| juniper_junos | → | juniper_junos | \ No newline at end of file +| juniper_junos | → | juniper_junos | +| nokia_srl | → | nokia_srlinux | \ No newline at end of file diff --git a/netutils/lib_mapper.py b/netutils/lib_mapper.py index d638958a..79bb608f 100644 --- a/netutils/lib_mapper.py +++ b/netutils/lib_mapper.py @@ -228,6 +228,7 @@ "netapp_cdot": "netapp_cdot", "netgear_prosafe": "netgear_prosafe", "netscaler": "netscaler", + "nokia_srl": "nokia_srl", "nokia_sros": "nokia_sros", "oneaccess_oneos": "oneaccess_oneos", "ovs_linux": "ovs_linux", @@ -293,6 +294,7 @@ "nxos_ssh": "cisco_nxos", # no reverse "panos": "paloalto_panos", "ros": "mikrotik_routeros", + "srl": "nokia_srl", "sros": "nokia_sros", "vyos": "vyos", } @@ -339,6 +341,7 @@ "f5networks.f5_bigip.bigip": "bigip_f5", "fortinet.fortios.fortios": "fortinet", "junipernetworks.junos.junos": "juniper_junos", + "nokia.srl": "nokia_srl", "paloaltonetworks.panos.panos": "paloalto_panos", "vyos.vyos.vyos": "vyos", } @@ -366,6 +369,7 @@ "cisco_iosxr": "cisco_xr", "cisco_nxos": "cisco_nxos", "juniper_junos": "juniper_junos", + "nokia_srlinux": "nokia_srl", } # HIERCONFIG | Normalized @@ -451,6 +455,7 @@ "huawei": "huawei_vrp", "juniper_junos": "junos", "mikrotik_routeros": "ros", + "nokia_srl": "srl", "nokia_sros": "sros", "paloalto_panos": "panos", "vyos": "vyos", @@ -496,6 +501,7 @@ "lenovo_cnos": "community.network.cnos", "lenovo_enos": "community.network.enos", "mikrotik_routeros": "community.network.routeros", + "nokia_srl": "nokia.srl", "nokia_sros": "community.network.sros", "paloalto_panos": "paloaltonetworks.panos.panos", "pluribus": "community.network.netvisor", @@ -528,6 +534,7 @@ "cisco_xe": "cisco_iosxe", "cisco_xr": "cisco_iosxr", "juniper_junos": "juniper_junos", + "nokia_srl": "nokia_srlinux", } # Normalized | HIERCONFIG