Skip to content

Commit

Permalink
Add comments to make it more clear which what is being mapped
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks authored Dec 7, 2023
1 parent dc08fc3 commit 0b82cdd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions netutils/lib_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
_NTCTEMPLATES_LIB_MAPPER["watchguard_firebox"] = "watchguard_firebox"
NTCTEMPLATES_LIB_MAPPER = {key: _NTCTEMPLATES_LIB_MAPPER[key] for key in sorted(_NTCTEMPLATES_LIB_MAPPER)}

# NAPALM | Normalized
NAPALM_LIB_MAPPER = {
"aoscx": "aruba_aoscx",
"asa": "cisco_asa",
Expand All @@ -143,6 +144,7 @@
"vyos": "brocade_vyos",
}

# PYTNC | Normalized
PYNTC_LIB_MAPPER = {
"arista_eos_eapi": "arista_eos",
"cisco_aireos_ssh": "cisco_wlc",
Expand All @@ -153,6 +155,7 @@
"juniper_junos_netconf": "juniper_junos",
}

# Ansible | Normalized
ANSIBLE_LIB_MAPPER = {
"arista.eos.eos": "arista_eos",
"arubanetworks.aoscx": "aruba_aoscx",
Expand Down Expand Up @@ -181,6 +184,7 @@
"vyos.vyos.vyos": "vyos",
}

# PYATS | Normalized
PYATS_LIB_MAPPER = {
"asa": "cisco_asa",
"bigip": "f5_tmsh",
Expand All @@ -195,6 +199,7 @@
"viptela": "cisco_viptella",
}

# SCRAPLI | Normalized
SCRAPLI_LIB_MAPPER = {
"arista_eos": "arista_eos",
"aruba_aoscx": "aruba_aoscx",
Expand All @@ -204,6 +209,7 @@
"juniper_junos": "juniper_junos",
}

# HIERCONFIG | Normalized
HIERCONFIG_LIB_MAPPER = {
"eos": "arista_eos",
"fastiron": "ruckus_fastiron",
Expand All @@ -213,6 +219,7 @@
"nxos": "cisco_nxos",
}

# Netutils Parser | Normalized
NETUTILSPARSER_LIB_MAPPER = {
"arista_eos": "arista_eos",
"aruba_aoscx": "aruba_aoscx",
Expand All @@ -236,6 +243,7 @@
"ubiquiti_airos": "ubiquiti_airos",
}

# Normalized | NAPALM
NAPALM_LIB_MAPPER_REVERSE = {
"arista_eos": "eos",
"aruba_aoscx": "aoscx",
Expand All @@ -254,6 +262,7 @@
"paloalto_panos": "panos",
}

# Normalized | PYTNC
PYNTC_LIB_MAPPER_REVERSE = {
"arista_eos": "arista_eos_eapi",
"cisco_asa": "cisco_asa_ssh",
Expand All @@ -264,6 +273,7 @@
"juniper_junos": "juniper_junos_netconf",
}

# Normalized | ANSIBLE
ANSIBLE_LIB_MAPPER_REVERSE = {
"arista_eos": "arista.eos.eos",
"aruba_aoscx": "arubanetworks.aoscx",
Expand Down Expand Up @@ -292,6 +302,7 @@
"vyos": "vyos.vyos.vyos",
}

# Normalized | PYATS
PYATS_LIB_MAPPER_REVERSE = {
"cisco_asa": "asa",
"cisco_dnac": "dnac",
Expand All @@ -305,6 +316,7 @@
"nokia_sros": "sros",
}

# Normalized | Scrapli
SCRAPLI_LIB_MAPPER_REVERSE = {
"arista_eos": "arista_eos",
"aruba_aoscx": "aruba_aoscx",
Expand All @@ -314,6 +326,7 @@
"juniper_junos": "juniper_junos",
}

# Normalized | HIERCONFIG
HIERCONFIG_LIB_MAPPER_REVERSE = {
"arista_eos": "eos",
"cisco_ios": "ios",
Expand All @@ -323,6 +336,7 @@
"ruckus_fastiron": "fastiron",
}

# Normalized | Netutils Parser
NETUTILSPARSER_LIB_MAPPER_REVERSE = {
"arista_eos": "arista_eos",
"aruba_aoscx": "aruba_aoscx",
Expand Down

0 comments on commit 0b82cdd

Please sign in to comment.