|
145 | 145 | # REMOVE IN 2.X, kept for backward compatibility |
146 | 146 | DNA_CENTER_LIB_MAPPER_REVERSE = copy.deepcopy(DNACENTER_LIB_MAPPER_REVERSE) |
147 | 147 |
|
| 148 | +# LibreNMS | Normalized |
| 149 | +LIBRENMS_LIB_MAPPER_REVERSE = { |
| 150 | + "arista_eos": "arista_eos", |
| 151 | + "iosxe": "cisco_xe", |
| 152 | + "iosxr": "cisco_xr", |
| 153 | + "nxos": "cisco_nxos", |
| 154 | + "junos": "juniper_junos", |
| 155 | + "procera": "applogic_procera", |
| 156 | +} |
| 157 | + |
148 | 158 | # Normalized | Netmiko |
149 | 159 | NETMIKO_LIB_MAPPER: t.Dict[str, str] = { |
150 | 160 | "a10": "a10", |
|
640 | 650 | "paloalto_panos": "PAN_OS", |
641 | 651 | } |
642 | 652 |
|
| 653 | +# Normalized | LibreNMS |
| 654 | +LIBRENMS_LIB_MAPPER = { |
| 655 | + "arista_eos": "arista_eos", |
| 656 | + "cisco_xe": "iosxe", |
| 657 | + "cisco_nxos": "nxos", |
| 658 | + "cisco_xr": "iosxr", |
| 659 | + "juniper_junos": "junos", |
| 660 | + "applogic_procera": "procera", |
| 661 | +} |
| 662 | + |
643 | 663 | # Normalized | NIST |
| 664 | +<<<<<<< Updated upstream |
644 | 665 | NIST_LIB_MAPPER_REVERSE: t.Dict[str, str] = { |
645 | 666 | "arista_eos": "arista:eos", |
646 | 667 | "aruba_os": "arubanetworks:arubaos", |
|
651 | 672 | "cisco_xr": "cisco:ios_xr", |
652 | 673 | "juniper_junos": "juniper:junos", |
653 | 674 | "paloalto_panos": "paloaltonetworks:pan-os", |
| 675 | +======= |
| 676 | +NIST_LIB_MAPPER_REVERSE = { |
| 677 | + "arista_eos": "eos", |
| 678 | + "aruba_os": "arubaos", |
| 679 | + "cisco_asa": "adaptive_security_appliance_software", |
| 680 | + "cisco_ios": "ios", |
| 681 | + "cisco_nxos": "nx-os", |
| 682 | + "cisco_xe": "ios_xe", |
| 683 | + "cisco_xr": "ios_xr", |
| 684 | + "juniper_junos": "junos", |
| 685 | + "paloalto_panos": "pan-os", |
| 686 | +} |
| 687 | + |
| 688 | +# Normalized | NIST reverse dictionary parser for NIST URL generation. |
| 689 | +NIST_TO_VENDOR = { |
| 690 | + "arista_eos": {"vendor": "arista", "os_name": "eos"}, |
| 691 | + "aruba_os": {"vendor": "arubanetworks", "os_name": "arubaos"}, |
| 692 | + "cisco_asa": {"vendor": "cisco", "os_name": "adaptive_security_appliance_software"}, |
| 693 | + "cisco_ios": {"vendor": "cisco", "os_name": "ios"}, |
| 694 | + "cisco_nxos": {"vendor": "cisco", "os_name": "nx-os"}, |
| 695 | + "cisco_xe": {"vendor": "cisco", "os_name": "ios_xe"}, |
| 696 | + "cisco_xr": {"vendor": "cisco", "os_name": "ios_xr"}, |
| 697 | + "juniper_junos": {"vendor": "juniper", "os_name": "junos"}, |
| 698 | + "paloalto_panos": {"vendor": "paloaltonetworks", "os_name": "pan-os"}, |
| 699 | +>>>>>>> Stashed changes |
654 | 700 | } |
655 | 701 |
|
656 | 702 | # Deep copy the reverse, where there is no actual translation happening with special |
|
693 | 739 | "dna_center": DNACENTER_LIB_MAPPER, |
694 | 740 | "forward_networks": FORWARDNETWORKS_LIB_MAPPER, |
695 | 741 | "hier_config": HIERCONFIG_LIB_MAPPER, |
| 742 | + "librenms": LIBRENMS_LIB_MAPPER, |
696 | 743 | "napalm": NAPALM_LIB_MAPPER, |
697 | 744 | "netmiko": NETMIKO_LIB_MAPPER, |
698 | 745 | "netutils_parser": NETUTILSPARSER_LIB_MAPPER, |
|
711 | 758 | "dna_center": DNACENTER_LIB_MAPPER_REVERSE, |
712 | 759 | "forward_networks": FORWARDNETWORKS_LIB_MAPPER_REVERSE, |
713 | 760 | "hier_config": HIERCONFIG_LIB_MAPPER_REVERSE, |
| 761 | + "librenms": LIBRENMS_LIB_MAPPER_REVERSE, |
714 | 762 | "napalm": NAPALM_LIB_MAPPER_REVERSE, |
715 | 763 | "netmiko": NETMIKO_LIB_MAPPER_REVERSE, |
716 | 764 | "netutils_parser": NETUTILSPARSER_LIB_MAPPER_REVERSE, |
|
0 commit comments