Skip to content

Commit

Permalink
Add JunOS and Vyatta to HierConfig mappers (#490)
Browse files Browse the repository at this point in the history
* feat: ✨ Add JunOS and Vyatta to HierConfig mappers
  • Loading branch information
jdrew82 authored Mar 28, 2024
1 parent 61de1b6 commit 828e3eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/user/lib_mapper/hierconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
| ios || cisco_ios |
| iosxe || cisco_xe |
| iosxr || cisco_xr |
| nxos || cisco_nxos |
| junos || juniper_junos |
| nxos || cisco_nxos |
| vyos || brocade_vyos |
2 changes: 2 additions & 0 deletions docs/user/lib_mapper/hierconfig_reverse.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
| NORMALIZED | | HIERCONFIG |
| ---------- | -- | ------ |
| arista_eos || eos |
| brocade_vyos || vyos |
| cisco_ios || ios |
| cisco_nxos || nxos |
| cisco_xe || iosxe |
| cisco_xr || iosxr |
| juniper_junos || junos |
| ruckus_fastiron || fastiron |
4 changes: 4 additions & 0 deletions netutils/lib_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@
"ios": "cisco_ios",
"iosxe": "cisco_xe",
"iosxr": "cisco_xr",
"junos": "juniper_junos",
"nxos": "cisco_nxos",
"vyos": "brocade_vyos",
}

# Netutils Parser | Normalized
Expand Down Expand Up @@ -497,10 +499,12 @@
# Normalized | HIERCONFIG
HIERCONFIG_LIB_MAPPER_REVERSE = {
"arista_eos": "eos",
"brocade_vyos": "vyos",
"cisco_ios": "ios",
"cisco_nxos": "nxos",
"cisco_xe": "iosxe",
"cisco_xr": "iosxr",
"juniper_junos": "junos",
"ruckus_fastiron": "fastiron",
}

Expand Down

0 comments on commit 828e3eb

Please sign in to comment.