|
178 | 178 | "brocade_nos": "brocade_nos", |
179 | 179 | "brocade_vdx": "brocade_vdx", |
180 | 180 | "brocade_vyos": "brocade_vyos", |
181 | | - "casa_cmts": "casa_cmts", |
182 | 181 | "calix_b6": "calix_b6", |
| 182 | + "casa_cmts": "casa_cmts", |
183 | 183 | "cdot_cros": "cdot_cros", |
184 | 184 | "centec_os": "centec_os", |
185 | 185 | "checkpoint_gaia": "checkpoint_gaia", |
|
291 | 291 | "ubiquiti_edgerouter": "ubiquiti_edgerouter", |
292 | 292 | "ubiquiti_edgeswitch": "ubiquiti_edgeswitch", |
293 | 293 | "ubiquiti_unifiswitch": "ubiquiti_unifiswitch", |
294 | | - "vyatta_vyos": "vyatta_vyos", |
295 | 294 | "vertiv_mph": "vertiv_mph", |
| 295 | + "vyatta_vyos": "vyatta_vyos", |
296 | 296 | "vyos": "vyos", |
297 | 297 | "watchguard_fireware": "watchguard_fireware", |
298 | 298 | "yamaha": "yamaha", |
|
402 | 402 | "arubanetworks.aoscx": "aruba_aoscx", |
403 | 403 | "ciena.saos6.saos6": "ciena_saos", |
404 | 404 | "cisco.asa.asa": "cisco_asa", |
| 405 | + "cisco.catalystcenter": "cisco_dnac", |
405 | 406 | "cisco.ios.ios": "cisco_ios", |
406 | 407 | "cisco.iosxr.iosxr": "cisco_xr", |
407 | 408 | "cisco.meraki.meraki": "cisco_meraki", |
|
522 | 523 | "SRX": "juniper_junos", # no reverse |
523 | 524 | } |
524 | 525 |
|
| 526 | +# NCCLIENT | Normalized |
| 527 | +NCCLIENT_LIB_MAPPER: t.Dict[str, str] = { |
| 528 | + "alu": "alcatel_sros", |
| 529 | + "ciena": "ciena_saos", |
| 530 | + "iosxe": "cisco_xe", |
| 531 | + "iosxr": "cisco_xr", |
| 532 | + "h3c": "h3c_comware", |
| 533 | + "huawei": "huawei", |
| 534 | + "huaweiyang": "huawei_vrp", |
| 535 | + "hpcomware": "hp_comware", |
| 536 | + "junos": "juniper_junos", |
| 537 | +} |
| 538 | + |
525 | 539 | # NIST | Normalized |
526 | 540 | NIST_LIB_MAPPER: t.Dict[str, str] = { |
527 | 541 | "arista:eos": "arista_eos", |
|
578 | 592 | "bigip_f5": "f5networks.f5_bigip.bigip", |
579 | 593 | "ciena_saos": "ciena.saos6.saos6", |
580 | 594 | "cisco_asa": "cisco.asa.asa", |
| 595 | + "cisco_dnac": "cisco.catalystcenter", |
581 | 596 | "cisco_ios": "cisco.ios.ios", |
582 | 597 | "cisco_meraki": "cisco.meraki.meraki", |
583 | 598 | "cisco_nxos": "cisco.nxos.nxos", |
|
711 | 726 | "paloalto_panos": "paloaltonetworks:pan-os", |
712 | 727 | } |
713 | 728 |
|
| 729 | +# Normlized | NCCLIENT |
| 730 | +NCCLIENT_LIB_MAPPER_REVERSE: t.Dict[str, str] = { |
| 731 | + "alcatel_sros": "alu", |
| 732 | + "ciena_saos": "ciena", |
| 733 | + "cisco_ios": "iosxe", |
| 734 | + "cisco_nxos": "nexus", |
| 735 | + "cisco_xe": "iosxe", |
| 736 | + "cisco_xr": "iosxr", |
| 737 | + "h3c_comware": "h3c", |
| 738 | + "huawei": "huawei", |
| 739 | + "huawei_vrp": "huaweiyang", |
| 740 | + "huawei_vrpv8": "huaweiyang", |
| 741 | + "hp_comware": "hpcomware", |
| 742 | + "juniper_junos": "junos", |
| 743 | + "nokia_sros": "alu", |
| 744 | +} |
| 745 | + |
714 | 746 | # Deep copy the reverse, where there is no actual translation happening with special |
715 | 747 | # consideration for OS's not in netmiko. |
716 | 748 | _MAIN_LIB_MAPPER = copy.deepcopy(NETMIKO_LIB_MAPPER) |
|
751 | 783 | "forward_networks": FORWARDNETWORKS_LIB_MAPPER, |
752 | 784 | "hier_config": HIERCONFIG_LIB_MAPPER, |
753 | 785 | "napalm": NAPALM_LIB_MAPPER, |
| 786 | + "ncclient": NCCLIENT_LIB_MAPPER, |
754 | 787 | "netmiko": NETMIKO_LIB_MAPPER, |
755 | 788 | "netutils_parser": NETUTILSPARSER_LIB_MAPPER, |
756 | 789 | "nist": NIST_LIB_MAPPER, |
|
769 | 802 | "forward_networks": FORWARDNETWORKS_LIB_MAPPER_REVERSE, |
770 | 803 | "hier_config": HIERCONFIG_LIB_MAPPER_REVERSE, |
771 | 804 | "napalm": NAPALM_LIB_MAPPER_REVERSE, |
| 805 | + "ncclient": NCCLIENT_LIB_MAPPER_REVERSE, |
772 | 806 | "netmiko": NETMIKO_LIB_MAPPER_REVERSE, |
773 | 807 | "netutils_parser": NETUTILSPARSER_LIB_MAPPER_REVERSE, |
774 | 808 | "nist": NIST_LIB_MAPPER_REVERSE, |
|
0 commit comments