├── netdoc ├── api │ └── __init__.py ├── ingestors │ └── __init__.py ├── schemas │ └── __init__.py ├── tests │ ├── __init__.py │ ├── netmiko_cisco_ios │ │ └── lab1 │ │ │ ├── logs │ │ │ ├── 172.25.82.41-show_glbp.raw │ │ │ ├── 172.25.82.41-show_vrrp_all.raw │ │ │ ├── 172.25.82.41-show_ip_route_bgp.raw │ │ │ ├── 172.25.82.41-show_ip_route_eigrp.raw │ │ │ ├── 172.25.82.41-show_ip_route_isis.raw │ │ │ ├── 172.25.82.41-show_ip_route_rip.raw │ │ │ ├── 172.25.82.41-show_ip_eigrp_neighbors.raw │ │ │ ├── 172.25.82.41-show_ip_bgp_neighbors.raw │ │ │ ├── 172.25.82.41-show_inventory.raw │ │ │ ├── 172.25.82.41-show_ip_arp_vrf_blue.raw │ │ │ ├── 172.25.82.41-show_ip_arp_vrf_management.raw │ │ │ ├── 172.25.82.41-show_glbp.json │ │ │ ├── 172.25.82.41-show_vlan.json │ │ │ ├── 172.25.82.41-show_vrf.json │ │ │ ├── 172.25.82.41-show_version.json │ │ │ ├── 172.25.82.41-show_ip_arp.json │ │ │ ├── 172.25.82.41-show_logging.json │ │ │ ├── 172.25.82.41-show_standby.json │ │ │ ├── 172.25.82.41-show_inventory.json │ │ │ ├── 172.25.82.41-show_ip_ospf_neighbor.raw │ │ │ ├── 172.25.82.41-show_vrrp_all.json │ │ │ ├── 172.25.82.41-show_interfaces.json │ │ │ ├── 172.25.82.41-show_ip_route_bgp.json │ │ │ ├── 172.25.82.41-show_ip_route_rip.json │ │ │ ├── 172.25.82.41-show_ip_interface.json │ │ │ ├── 172.25.82.41-show_ip_route_eigrp.json │ │ │ ├── 172.25.82.41-show_ip_route_isis.json │ │ │ ├── 172.25.82.41-show_ip_route_ospf.json │ │ │ ├── 172.25.82.41-show_ip_route_static.json │ │ │ ├── 172.25.82.41-show_running-config.json │ │ │ ├── 172.25.82.41-show_spanning-tree.json │ │ │ ├── 172.25.82.41-show_ip_route_connected.json │ │ │ ├── 172.25.82.41-show_interfaces_trunk.json │ │ │ ├── 172.25.82.41-show_ip_bgp_neighbors.json │ │ │ ├── 172.25.82.41-show_ip_ospf_neighbor.json │ │ │ ├── 172.25.82.41-show_ip_eigrp_neighbors.json │ │ │ ├── 172.25.82.41-show_cdp_neighbors_detail.json │ │ │ ├── 172.25.82.41-show_etherchannel_summary.json │ │ │ ├── 172.25.82.41-show_ip_arp_vrf_red.json │ │ │ ├── 172.25.82.41-show_lldp_neighbors_detail.json │ │ │ ├── 172.25.82.41-show_interfaces_switchport.json │ │ │ ├── 172.25.82.41-show_ip_arp_vrf_blue.json │ │ │ ├── 172.25.82.41-show_ip_route_vrf_red.json │ │ │ ├── 172.25.82.41-show_mac_address-table_dynamic.json │ │ │ ├── 172.25.82.41-show_ip_route_vrf_blue.json │ │ │ ├── 172.25.82.41-show_ip_arp_vrf_management.json │ │ │ ├── 172.25.82.41-show_ip_arp.raw │ │ │ ├── 172.25.82.41-show_ip_route_vrf_management.json │ │ │ └── 172.25.82.41-show_vrf.raw │ │ │ ├── vrfs.yml │ │ │ ├── vlans.yml │ │ │ ├── devices.yml │ │ │ ├── ipaddresses.yml │ │ │ └── prefixes.yml │ ├── netmiko_cisco_nxos │ │ ├── lab1 │ │ │ ├── logs │ │ │ │ ├── 169.254.1.1-show_glbp.raw │ │ │ │ ├── 169.254.1.1-show_inventory.raw │ │ │ │ ├── 169.254.1.1-show_standby.raw │ │ │ │ ├── 169.254.1.1-show_vrrp_all.raw │ │ │ │ ├── 169.254.1.1-show_ip_route_bgp.raw │ │ │ │ ├── 169.254.1.1-show_ip_route_eigrp.raw │ │ │ │ ├── 169.254.1.1-show_ip_route_isis.raw │ │ │ │ ├── 169.254.1.1-show_ip_route_ospf.raw │ │ │ │ ├── 169.254.1.1-show_ip_route_rip.raw │ │ │ │ ├── 169.254.1.11-show_hostname.raw │ │ │ │ ├── 169.254.1.12-show_hostname.raw │ │ │ │ ├── 169.254.1.1-show_ip_eigrp_neighbors.raw │ │ │ │ ├── 169.254.1.1-show_ip_ospf_neighbor.raw │ │ │ │ ├── 169.254.1.11-show_ip_ospf_neighbor.raw │ │ │ │ ├── 169.254.1.12-show_ip_ospf_neighbor.raw │ │ │ │ ├── 169.254.1.1-show_ip_bgp_neighbors.raw │ │ │ │ ├── 169.254.1.1-show_lldp_neighbors_detail.raw │ │ │ │ ├── 169.254.1.1-show_cdp_neighbors_detail.raw │ │ │ │ ├── 169.254.1.11-show_glbp.raw │ │ │ │ ├── 169.254.1.11-show_vrrp.raw │ │ │ │ ├── 169.254.1.12-show_glbp.raw │ │ │ │ ├── 169.254.1.12-show_vrrp.raw │ │ │ │ ├── 169.254.1.11-show_ip_bgp_neighbors.raw │ │ │ │ ├── 169.254.1.11-show_ip_eigrp_neighbors.raw │ │ │ │ ├── 169.254.1.12-show_ip_bgp_neighbors.raw │ │ │ │ ├── 169.254.1.12-show_ip_eigrp_neighbors.raw │ │ │ │ ├── 169.254.1.1-show_vrf.raw │ │ │ │ ├── 169.254.1.11-show_vdc.json │ │ │ │ ├── 169.254.1.11-show_vlan.json │ │ │ │ ├── 169.254.1.11-show_vpc.json │ │ │ │ ├── 169.254.1.11-show_vrf.json │ │ │ │ ├── 169.254.1.12-show_vdc.json │ │ │ │ ├── 169.254.1.12-show_vlan.json │ │ │ │ ├── 169.254.1.12-show_vpc.json │ │ │ │ ├── 169.254.1.12-show_vrf.json │ │ │ │ ├── 169.254.1.1-show_vlan.json │ │ │ │ ├── 169.254.1.1-show_vrf.json │ │ │ │ ├── 169.254.1.11-show_glbp.json │ │ │ │ ├── 169.254.1.11-show_vrrp.json │ │ │ │ ├── 169.254.1.12-show_glbp.json │ │ │ │ ├── 169.254.1.12-show_vrrp.json │ │ │ │ ├── 169.254.1.1-show_glbp.json │ │ │ │ ├── 169.254.1.1-show_version.json │ │ │ │ ├── 169.254.1.11-show_hostname.json │ │ │ │ ├── 169.254.1.12-show_hostname.json │ │ │ │ ├── 169.254.1.1-show_ip_arp.json │ │ │ │ ├── 169.254.1.11-show_hsrp_all.json │ │ │ │ ├── 169.254.1.11-show_logging.json │ │ │ │ ├── 169.254.1.11-show_version.json │ │ │ │ ├── 169.254.1.12-show_hsrp_all.json │ │ │ │ ├── 169.254.1.12-show_logging.json │ │ │ │ ├── 169.254.1.12-show_version.json │ │ │ │ ├── 169.254.1.1-show_logging.json │ │ │ │ ├── 169.254.1.1-show_standby.json │ │ │ │ ├── 169.254.1.1-show_vrrp_all.json │ │ │ │ ├── 169.254.1.11-show_interface.json │ │ │ │ ├── 169.254.1.11-show_inventory.json │ │ │ │ ├── 169.254.1.12-show_interface.json │ │ │ │ ├── 169.254.1.12-show_inventory.json │ │ │ │ ├── 169.254.1.1-show_interfaces.json │ │ │ │ ├── 169.254.1.1-show_inventory.json │ │ │ │ ├── 169.254.1.1-show_ip_interface.json │ │ │ │ ├── 169.254.1.1-show_ip_route_bgp.json │ │ │ │ ├── 169.254.1.1-show_ip_route_isis.json │ │ │ │ ├── 169.254.1.1-show_ip_route_ospf.json │ │ │ │ ├── 169.254.1.1-show_ip_route_rip.json │ │ │ │ ├── 169.254.1.11-show_spanning-tree.json │ │ │ │ ├── 169.254.1.12-show_spanning-tree.json │ │ │ │ ├── 169.254.1.1-show_ip_route_eigrp.json │ │ │ │ ├── 169.254.1.1-show_ip_route_static.json │ │ │ │ ├── 169.254.1.1-show_spanning-tree.json │ │ │ │ ├── 169.254.1.11-show_interface_trunk.json │ │ │ │ ├── 169.254.1.11-show_running-config.json │ │ │ │ ├── 169.254.1.12-show_interface_trunk.json │ │ │ │ ├── 169.254.1.12-show_running-config.json │ │ │ │ ├── 169.254.1.1-show_ip_route_connected.json │ │ │ │ ├── 169.254.1.1-show_running-config.json │ │ │ │ ├── 169.254.1.11-show_ip_bgp_neighbors.json │ │ │ │ ├── 169.254.1.11-show_ip_ospf_neighbor.json │ │ │ │ ├── 169.254.1.11-show_ip_route_vrf_all.json │ │ │ │ ├── 169.254.1.12-show_ip_bgp_neighbors.json │ │ │ │ ├── 169.254.1.12-show_ip_ospf_neighbor.json │ │ │ │ ├── 169.254.1.12-show_ip_route_vrf_all.json │ │ │ │ ├── 169.254.1.1-show_interfaces_trunk.json │ │ │ │ ├── 169.254.1.1-show_ip_bgp_neighbors.json │ │ │ │ ├── 169.254.1.1-show_ip_ospf_neighbor.json │ │ │ │ ├── 169.254.1.11-show_ip_eigrp_neighbors.json │ │ │ │ ├── 169.254.1.12-show_ip_eigrp_neighbors.json │ │ │ │ ├── 169.254.1.1-show_ip_eigrp_neighbors.json │ │ │ │ ├── 169.254.1.11-show_cdp_neighbors_detail.json │ │ │ │ ├── 169.254.1.11-show_interface_switchport.json │ │ │ │ ├── 169.254.1.11-show_port-channel_summary.json │ │ │ │ ├── 169.254.1.12-show_cdp_neighbors_detail.json │ │ │ │ ├── 169.254.1.12-show_interface_switchport.json │ │ │ │ ├── 169.254.1.12-show_port-channel_summary.json │ │ │ │ ├── 169.254.1.1-show_cdp_neighbors_detail.json │ │ │ │ ├── 169.254.1.1-show_etherchannel_summary.json │ │ │ │ ├── 169.254.1.11-show_ip_arp_vrf_blue.json │ │ │ │ ├── 169.254.1.11-show_ip_arp_vrf_red.json │ │ │ │ ├── 169.254.1.11-show_lldp_neighbors_detail.json │ │ │ │ ├── 169.254.1.12-show_ip_arp_vrf_blue.json │ │ │ │ ├── 169.254.1.12-show_ip_arp_vrf_red.json │ │ │ │ ├── 169.254.1.12-show_lldp_neighbors_detail.json │ │ │ │ ├── 169.254.1.1-show_interfaces_switchport.json │ │ │ │ ├── 169.254.1.1-show_lldp_neighbors_detail.json │ │ │ │ ├── 169.254.1.11-show_mac_address-table_dynamic.json │ │ │ │ ├── 169.254.1.12-show_mac_address-table_dynamic.json │ │ │ │ ├── 169.254.1.1-show_mac_address-table_dynamic.json │ │ │ │ ├── 169.254.1.11-show_ip_arp_vrf_default.json │ │ │ │ ├── 169.254.1.12-show_ip_arp_vrf_default.json │ │ │ │ ├── 169.254.1.11-show_ip_interface_vrf_red.json │ │ │ │ ├── 169.254.1.12-show_ip_interface_vrf_red.json │ │ │ │ ├── 169.254.1.11-show_ip_interface_vrf_blue.json │ │ │ │ ├── 169.254.1.12-show_ip_interface_vrf_blue.json │ │ │ │ ├── 169.254.1.1-show_ip_route_vrf_management.json │ │ │ │ ├── 169.254.1.11-show_ip_interface_vrf_default.json │ │ │ │ ├── 169.254.1.12-show_ip_interface_vrf_default.json │ │ │ │ ├── 169.254.1.11-show_ip_interface_vrf_management.json │ │ │ │ ├── 169.254.1.12-show_ip_interface_vrf_management.json │ │ │ │ ├── 169.254.1.11-show_vdc.raw │ │ │ │ ├── 169.254.1.12-show_vdc.raw │ │ │ │ ├── 169.254.1.1-show_ip_arp.raw │ │ │ │ └── 169.254.1.1-show_mac_address-table_dynamic.raw │ │ │ ├── vrfs.yml │ │ │ ├── vlans.yml │ │ │ └── prefixes.yml │ │ └── lab2 │ │ │ ├── logs │ │ │ ├── 169.254.1.11-show_hostname.raw │ │ │ ├── 169.254.1.11-show_hostname.json │ │ │ └── 169.254.1.11-show_ip_route_vrf_all.json │ │ │ └── devices.yml │ ├── netmiko_hp_comware │ │ └── lab1 │ │ │ ├── vrfs.yml │ │ │ ├── logs │ │ │ ├── 169.254.1.1-display_current-configuration_include_sysname.raw │ │ │ ├── 169.254.1.2-display_current-configuration_include_sysname.raw │ │ │ ├── 169.254.1.1-display_ip_vpn-instance.raw │ │ │ ├── 169.254.1.1-display_mac-address.raw │ │ │ ├── 169.254.1.1-display_arp.json │ │ │ ├── 169.254.1.2-display_vlan_all.json │ │ │ ├── 169.254.1.1-display_interface.json │ │ │ ├── 169.254.1.1-display_mac-address.json │ │ │ ├── 169.254.1.1-display_vlan_brief.json │ │ │ ├── 169.254.1.1-display_ip_interface.json │ │ │ ├── 169.254.1.1-display_ip_vpn-instance_instance-name_red.raw │ │ │ ├── 169.254.1.1-display_device_manuinfo.json │ │ │ ├── 169.254.1.1-display_ip_vpn-instance.json │ │ │ ├── 169.254.1.1-display_ip_routing-table.json │ │ │ ├── 169.254.1.1-display_link-aggregation_verbose.json │ │ │ ├── 169.254.1.1-display_current-configuration_include_sysname.json │ │ │ ├── 169.254.1.2-display_current-configuration_include_sysname.json │ │ │ ├── 169.254.1.1-display_arp.raw │ │ │ ├── 169.254.1.1-display_ip_routing-table.raw │ │ │ ├── 169.254.1.2-display_lldp_neighbor-information_list.json │ │ │ ├── 169.254.1.1-display_ip_vpn-instance_instance-name_red.json │ │ │ └── 169.254.1.1-display_lldp_neighbor-information_verbose.json │ │ │ ├── vlans.yml │ │ │ ├── ipaddresses.yml │ │ │ ├── routes.yml │ │ │ ├── prefixes.yml │ │ │ ├── macaddresses.yml │ │ │ ├── discoverables.yml │ │ │ ├── arps.yml │ │ │ └── devices.yml │ ├── netmiko_linux │ │ └── lab1 │ │ │ ├── logs │ │ │ ├── 169.254.1.1-hostname.raw │ │ │ ├── 169.254.1.1-ip_vrf_show.raw │ │ │ ├── 169.254.1.1-arp_an.raw │ │ │ ├── 169.254.1.1-ip_route_show.raw │ │ │ ├── 169.254.1.1-arp_an.json │ │ │ ├── 169.254.1.1-hostname.json │ │ │ ├── 169.254.1.1-ip_link_show.json │ │ │ ├── 169.254.1.1-ip_vrf_show.json │ │ │ ├── 169.254.1.1-ip_route_show.json │ │ │ ├── 169.254.1.1-ip_address_show.json │ │ │ └── 169.254.1.1-ip_link_show.raw │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── discoverables.yml │ │ │ ├── devices.yml │ │ │ ├── arps.yml │ │ │ └── routes.yml │ ├── netmiko_aruba_oscx │ │ ├── lab1 │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── arps.yml │ │ │ ├── vlans.yml │ │ │ ├── logs │ │ │ │ ├── 169.254.1.1-hostname.json │ │ │ │ ├── 169.254.1.1-show_vlan.json │ │ │ │ ├── 169.254.1.1-show_system.json │ │ │ │ ├── 169.254.1.1-show_interface.json │ │ │ │ ├── 169.254.1.1-show_arp_all-vrfs.json │ │ │ │ ├── 169.254.1.1-show_ip_route_all-vrf.json │ │ │ │ ├── 169.254.1.1-show_mac-address-table.json │ │ │ │ ├── 169.254.1.1-show_lldp_neighbors-info_detail.json │ │ │ │ └── 169.254.1.1-show_mac-address-table.raw │ │ │ └── macaddresses.yml │ │ └── lab2 │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── arps.yml │ │ │ ├── logs │ │ │ ├── 169.254.1.1-hostname.json │ │ │ ├── 169.254.1.1-show_vlan.json │ │ │ ├── 169.254.1.1-show_system.json │ │ │ ├── 169.254.1.1-show_interface.json │ │ │ ├── 169.254.1.1-show_arp_all-vrfs.json │ │ │ ├── 169.254.1.1-show_mac-address-table.json │ │ │ └── 169.254.1.1-show_lldp_neighbors-info_detail.json │ │ │ ├── vlans.yml │ │ │ ├── devices.yml │ │ │ └── discoverables.yml │ ├── netmiko_huawei_vrp │ │ └── lab1 │ │ │ ├── logs │ │ │ ├── 169.254.1.1-display_current-configuration_include_sysname.raw │ │ │ ├── 169.254.1.1-display_device_manuinfo.raw │ │ │ └── 169.254.1.1-display_ip_vpn-instance.raw │ │ │ ├── vrfs.yml │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── devices.yml │ │ │ ├── discoverables.yml │ │ │ └── macaddresses.yml │ ├── netmiko_cisco_xr │ │ └── lab1 │ │ │ ├── vrfs.yml │ │ │ ├── logs │ │ │ ├── 169.254.1.1-show_route_connected.raw │ │ │ ├── 169.254.1.1-show_running-config_include_hostname.raw │ │ │ ├── 169.254.1.1-show_arp.json │ │ │ ├── 169.254.1.1-show_interfaces.json │ │ │ ├── 169.254.1.1-show_route_connected.json │ │ │ ├── 169.254.1.1-admin_show_inventory.json │ │ │ ├── 169.254.1.1-show_lldp_neighbors.json │ │ │ ├── 169.254.1.1-show_vrf_all_detail.json │ │ │ ├── 169.254.1.1-show_arp_vrf_red.json │ │ │ ├── 169.254.1.1-show_cdp_neighbors_detail.json │ │ │ ├── 169.254.1.1-show_ipv4_vrf_all_interface.json │ │ │ ├── 169.254.1.1-show_route_vrf_red.json │ │ │ ├── 169.254.1.1-show_running-config_include_hostname.json │ │ │ └── 169.254.1.1-admin_show_inventory.raw │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── discoverables.yml │ │ │ └── devices.yml │ ├── xml_panw_ngfw │ │ └── lab1 │ │ │ ├── vrfs.yml │ │ │ ├── discoverables.yml │ │ │ ├── virtual_machines.yml │ │ │ ├── ipaddresses.yml │ │ │ ├── logs │ │ │ ├── 10.1.1.10-show_arp.json │ │ │ ├── 10.1.1.10-show_interface.json │ │ │ ├── 10.1.1.10-show_system_info.json │ │ │ └── 10.1.1.10-show_routing_route.json │ │ │ └── prefixes.yml │ ├── netmiko_hp_procurve │ │ └── lab1 │ │ │ ├── vlans.yml │ │ │ ├── ipaddresses.yml │ │ │ ├── prefixes.yml │ │ │ ├── logs │ │ │ ├── 169.254.1.1-show_arp.json │ │ │ ├── 169.254.1.1-show_ip.json │ │ │ ├── 169.254.1.1-show_system.json │ │ │ ├── 169.254.1.1-show_vlans.json │ │ │ ├── 169.254.1.1-show_trunks.json │ │ │ ├── 169.254.1.1-show_ip_route.json │ │ │ ├── 169.254.1.1-show_mac-address.json │ │ │ ├── 169.254.1.1-show_interfaces_brief.json │ │ │ ├── 169.254.1.1-show_cdp_neighbors_detail.json │ │ │ ├── 169.254.1.1-show_lldp_info_remote-device.json │ │ │ ├── 169.254.1.1-show_arp.raw │ │ │ ├── 169.254.1.1-show_trunks.raw │ │ │ └── 169.254.1.1-show_mac-address.raw │ │ │ ├── arps.yml │ │ │ ├── discoverables.yml │ │ │ └── macaddresses.yml │ ├── json_vmware_vsphere │ │ └── lab1 │ │ │ ├── devices.yml │ │ │ ├── logs │ │ │ └── 172.25.82.108-pyVmomi.json │ │ │ └── virtual_machines.yml │ └── netmiko_allied_telesis_awplus │ │ └── lab1 │ │ ├── ipaddresses.yml │ │ ├── arps.yml │ │ ├── logs │ │ ├── 192.168.254.220-show_arp.raw │ │ ├── 192.168.254.220-show_etherchannel_summary.raw │ │ ├── 192.168.254.220-hostname.json │ │ ├── 192.168.254.220-show_arp.json │ │ ├── 192.168.254.220-show_system.json │ │ ├── 192.168.254.220-show_interface.json │ │ ├── 192.168.254.220-show_ip_route.json │ │ ├── 192.168.254.220-show_vlan_all.json │ │ ├── 192.168.254.220-show_static-channel-group.raw │ │ ├── 192.168.254.220-show_ip_interface.json │ │ ├── 192.168.254.220-show_mac_address-table.json │ │ ├── 192.168.254.220-show_etherchannel_summary.json │ │ ├── 192.168.254.220-show_interface_switchport.json │ │ ├── 192.168.254.220-show_mac_address-table.raw │ │ ├── 192.168.254.220-show_static-channel-group.json │ │ └── 192.168.254.220-show_lldp_neighbors_detail.json │ │ ├── vrfs.yml │ │ ├── prefixes.yml │ │ ├── devices.yml │ │ └── discoverables.yml ├── discoverers │ ├── __init__.py │ ├── netmiko_cisco_ios_telnet.py │ └── netmiko_hp_procurve_telnet.py ├── migrations │ └── __init__.py ├── templatetags │ └── __init__.py ├── static │ └── netdoc │ │ └── img │ │ ├── site.png │ │ ├── firewall.png │ │ ├── handled.png │ │ ├── laptop.png │ │ ├── router.png │ │ ├── server.png │ │ ├── storage.png │ │ ├── unknown.png │ │ ├── access-switch.png │ │ ├── core-switch.png │ │ ├── load-balancer.png │ │ ├── wireless-ap.png │ │ ├── workstation.png │ │ ├── virtual-switch.png │ │ ├── distribution-switch.png │ │ ├── wireless-controller.png │ │ └── README.md ├── ntc_templates │ ├── cisco_nxos_show_hostname.textfsm │ ├── checkpoint_gaia_show_domainname.textfsm │ ├── cisco_asa_show_name.textfsm │ ├── cisco_nxos_show_vpc.textfsm │ ├── huawei_smartax_display_cpu.textfsm │ ├── huawei_smartax_display_mem.textfsm │ ├── huawei_vrp_display_sn_license.textfsm │ ├── arista_eos_show_hostname.textfsm │ ├── cisco_s300_show_system_id.textfsm │ ├── arista_eos_show_boot-config.textfsm │ ├── checkpoint_gaia_show_virtual-system_all.textfsm │ ├── hp_comware_display_vlan_brief.textfsm │ ├── avaya_ers_show_interface_name.textfsm │ ├── cisco_nxos_show_feature.textfsm │ ├── linux_ip_vrf_show.textfsm │ ├── checkpoint_gaia_show_lom.textfsm │ ├── checkpoint_gaia_fw_stat.textfsm │ ├── alcatel_sros_oam_mac-ping.textfsm │ ├── ericsson_ipos_show_version.textfsm │ ├── cisco_nxos_show_fex.textfsm │ ├── cisco_nvfis_show_running-config_snmp_enable.textfsm │ ├── cisco_nvfis_show_version.textfsm │ ├── arista_eos_show_ip_interface_brief.textfsm │ ├── cisco_xr_admin_show_platform.textfsm │ ├── paloalto_panos_debug_swm_status.textfsm │ ├── cisco_xr_show_bfd_sessions.textfsm │ ├── hp_comware_display_mac-address.textfsm │ ├── aruba_os_show_ip_interface_brief.textfsm │ ├── cisco_xr_show_ip_interface_brief.textfsm │ ├── cisco_xr_show_processes_cpu.textfsm │ ├── checkpoint_gaia_show_dns.textfsm │ ├── cisco_xr_show_redundancy_summary.textfsm │ ├── dell_force10_show_version.textfsm │ ├── huawei_smartax_display_sysuptime.textfsm │ ├── arista_eos_show_lldp_neighbors.textfsm │ ├── avaya_ers_show_mac-address-table.textfsm │ ├── checkpoint_gaia_show_arp_dynamic_all.textfsm │ ├── cisco_nxos_show_clock.textfsm │ ├── allied_telesis_awplus_show_etherchannel_summary.textfsm │ ├── huawei_vrp_display_service-set_all.textfsm │ ├── cisco_wlc_ssh_show_boot.textfsm │ ├── hp_comware_display_clock.textfsm │ ├── checkpoint_gaia_show_ntp_servers.textfsm │ ├── hp_comware_display_ip_vpn-instance.textfsm │ ├── cisco_nxos_show_processes_cpu.textfsm │ ├── arista_eos_show_clock.textfsm │ ├── cisco_nxos_show_cts_interface_brief.textfsm │ ├── cisco_nxos_show_interface_snmp-ifindex.textfsm │ ├── dell_powerconnect_show_interfaces_description.textfsm │ ├── ubiquiti_edgeswitch_show_vlan.textfsm │ ├── cisco_xr_show_rsvp_neighbors.textfsm │ ├── allied_telesis_awplus_show_mac_address-table.textfsm │ ├── cisco_nvfis_show_configuration_commit_changes.textfsm │ ├── cisco_nxos_show_configuration_session_summary.textfsm │ ├── dell_force10_show_ip_interface_brief.textfsm │ ├── huawei_smartax_display_temperature.textfsm │ ├── checkpoint_gaia_show_version_all.textfsm │ ├── hp_comware_display_arp.textfsm │ ├── cisco_ios_show_file_systems.textfsm │ ├── cisco_nvfis_show_nic.textfsm │ ├── cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.textfsm │ ├── cisco_nxos_show_vrf_interface.textfsm │ ├── fortinet_get_system_arp.textfsm │ ├── arista_eos_show_ip_arp.textfsm │ ├── cisco_nxos_show_ipv6_interface_brief.textfsm │ ├── cisco_xr_show_pim_neighbor.textfsm │ ├── paloalto_panos_show_counter_global.textfsm │ ├── paloalto_panos_show_interface_hardware.textfsm │ ├── arista_eos_show_ip_helper-address.textfsm │ ├── hp_procurve_show_mac-address.textfsm │ ├── cisco_xr_show_interface_brief.textfsm │ ├── cisco_xr_show_inventory.textfsm │ ├── watchguard_firebox_show_arp.textfsm │ ├── cisco_ios_show_capability_feature_routing.textfsm │ ├── huawei_vrp_display_ip_vpn-instance.textfsm │ ├── paloalto_panos_show_mac_all.textfsm │ ├── ruckus_fastiron_show_media_validation.textfsm │ ├── ubiquiti_edgerouter_show_ipv6_neighbors.textfsm │ ├── dell_force10_show_vlan_brief.textfsm │ ├── juniper_junos_show_isis_adjacency.textfsm │ ├── arista_eos_show_mlag.textfsm │ ├── aruba_aoscx_show_mac-address-table.textfsm │ ├── cisco_nxos_show_vrf.textfsm │ ├── cisco_nxos_show_l2rib_internal_permanently-frozen-list.textfsm │ ├── cisco_xr_show_isis_neighbors.textfsm │ ├── arista_eos_show_snmp_community.textfsm │ ├── cisco_asa_show_interface_ip_brief.textfsm │ ├── arista_eos_show_mac_security_interface.textfsm │ ├── brocade_fastiron_show_monitor.textfsm │ ├── ciena_saos_ssh_server_show_key.textfsm │ ├── cisco_nxos_show_ip_dhcp_relay_address.textfsm │ ├── cisco_xr_show_dhcp_ipv4_proxy_binding.textfsm │ ├── cisco_xr_show_ipv4_vrf_all_interface_brief.textfsm │ ├── ruckus_fastiron_show_mac-address.textfsm │ ├── vyatta_vyos_show_arp.textfsm │ ├── vmware_nsxv_show_ip_route.textfsm │ ├── cisco_nxos_show_nve_peers.textfsm │ ├── brocade_netiron_show_monitor_actual.textfsm │ ├── cisco_ios_show_aliases.textfsm │ ├── cisco_ios_show_ip_interface_brief.textfsm │ ├── cisco_wlc_ssh_show_exclusionlist.textfsm │ ├── hp_procurve_show_vlans.textfsm │ ├── juniper_junos_show_ospf_neighbor.textfsm │ ├── ubiquiti_edgerouter_show_dhcpv6_server_leases.textfsm │ ├── cisco_ios_show_clock.textfsm │ ├── cisco_nxos_show_mac_address-table.textfsm │ ├── dell_force10_show_arp.textfsm │ ├── cisco_ios_show_power_supplies.textfsm │ ├── cisco_nxos_show_vdc.textfsm │ ├── cisco_xr_admin_show_environment_power.textfsm │ ├── dell_powerconnect_show_bridge_address_table.textfsm │ ├── huawei_vrp_display_mac-address.textfsm │ ├── aruba_os_show_ipv6_interface_brief.textfsm │ ├── linux_arp_-a.textfsm │ ├── cisco_asa_show_inventory.textfsm │ ├── cisco_ios_show_interface_transceiver.textfsm │ ├── cisco_nvfis_show_running-config_snmp_group.textfsm │ ├── cisco_nxos_show_ip_arp.textfsm │ ├── juniper_junos_show_arp_no-resolve.textfsm │ ├── juniper_junos_show_vlans.textfsm │ ├── cisco_nvfis_show_running-config_system_upgrade.textfsm │ ├── cisco_nxos_show_switching-mode.textfsm │ ├── cisco_ios_show_processes_cpu.textfsm │ ├── cisco_ios_show_rep_topology.textfsm │ ├── dlink_ds_show_arpentry.textfsm │ ├── arista_eos_show_mac_security_mka_counters.textfsm │ ├── cisco_asa_show_arp.textfsm │ ├── paloalto_panos_show_interface_logical.textfsm │ ├── brocade_fastiron_show_topo.textfsm │ ├── cisco_ios_show_nve_vni.textfsm │ ├── cisco_xr_show_version_brief.textfsm │ ├── ubiquiti_edgerouter_show_interfaces.textfsm │ ├── ubiquiti_edgerouter_show_interfaces_ethernet_physical.textfsm │ ├── ubiquiti_edgeswitch_show_arp.textfsm │ ├── zyxel_os_zycli_Ethctl_media-type.textfsm │ ├── aruba_aoscx_show_arp_all-vrfs.textfsm │ ├── brocade_fastiron_show_arp.textfsm │ ├── cisco_nxos_show_lldp_neighbors.textfsm │ ├── cisco_nxos_show_module.textfsm │ ├── cisco_xr_show_pim_ipv4_group-map.textfsm │ ├── juniper_junos_show_chassis_firmware.textfsm │ ├── allied_telesis_awplus_show_arp.textfsm │ ├── arista_eos_show_interfaces_transceiver.textfsm │ ├── cisco_xr_show_configuration_commit_list.textfsm │ ├── cisco_xr_show_interfaces_summary.textfsm │ └── alcatel_sros_show_router_isis_adjacency.textfsm └── templates │ └── netdoc │ └── buttons │ └── export.html ├── docker └── plugin_requirements.txt ├── .djlintrc ├── setup.cfg ├── .github ├── CODEOWNERS └── FUNDING.yml ├── .snyk ├── .yamlfmt ├── .bandit.yml ├── .flake8 ├── .pylintrc ├── .yamllint ├── scripts ├── lab_import.py ├── update_templates.sh └── update_dependencies.sh └── MANIFEST.in /netdoc/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/ingestors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/schemas/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/discoverers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/plugin_requirements.txt: -------------------------------------------------------------------------------- 1 | netdoc 2 | -------------------------------------------------------------------------------- /.djlintrc: -------------------------------------------------------------------------------- 1 | { 2 | "ignore": "H021" 3 | } 4 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_glbp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_glbp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_vrrp_all.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_inventory.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_standby.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_vrrp_all.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_bgp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_eigrp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_isis.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_rip.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_bgp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_eigrp.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_isis.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_ospf.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_rip.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_hostname.raw: -------------------------------------------------------------------------------- 1 | NXOS11 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_hostname.raw: -------------------------------------------------------------------------------- 1 | NXOS12 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab2/logs/169.254.1.11-show_hostname.raw: -------------------------------------------------------------------------------- 1 | NXOS11 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: red 2 | rd: "1:1" 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-hostname.raw: -------------------------------------------------------------------------------- 1 | discovery 2 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_eigrp_neighbors.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_eigrp_neighbors.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_ospf_neighbor.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_ospf_neighbor.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_ospf_neighbor.raw: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description_file=README.md 3 | license_files=LICENSE 4 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Default owner(s) of all files in this repository 2 | * @dainok 3 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | patreon: adainese 4 | -------------------------------------------------------------------------------- /.snyk: -------------------------------------------------------------------------------- 1 | # Snyk (https://snyk.io) policy file 2 | exclude: 3 | global: 4 | - fwadmin/tests 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 10.1.2.1/24 2 | vrf: null 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 10.2.1.10/24 2 | vrf: null 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_bgp_neighbors.raw: -------------------------------------------------------------------------------- 1 | % BGP not active 2 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_bgp_neighbors.raw: -------------------------------------------------------------------------------- 1 | % BGP not active 2 | -------------------------------------------------------------------------------- /.yamlfmt: -------------------------------------------------------------------------------- 1 | formatter: 2 | type: basic 3 | include_document_start: false 4 | pad_line_comments: 2 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_lldp_neighbors_detail.raw: -------------------------------------------------------------------------------- 1 | % LLDP is not enabled -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 10.1.2.0/24 2 | vrf: null 3 | site: test-site 4 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 10.2.1.0/24 2 | vrf: null 3 | site: test-site 4 | -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/site.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/site.png -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/logs/169.254.1.1-display_current-configuration_include_sysname.raw: -------------------------------------------------------------------------------- 1 | sysname ROUTER1 -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_hostname.textfsm: -------------------------------------------------------------------------------- 1 | Value HOSTNAME (.+?) 2 | 3 | Start 4 | ^${HOSTNAME}\s*$$ -> Record -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/firewall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/firewall.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/handled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/handled.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/laptop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/laptop.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/router.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/router.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/server.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/storage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/storage.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/unknown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/unknown.png -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_cdp_neighbors_detail.raw: -------------------------------------------------------------------------------- 1 | 2 | Total cdp entries displayed : 0 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: red 2 | rd: 65100:10000 3 | - name: management 4 | rd: null 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_current-configuration_include_sysname.raw: -------------------------------------------------------------------------------- 1 | sysname ROUTER1 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.2-display_current-configuration_include_sysname.raw: -------------------------------------------------------------------------------- 1 | sysname ROUTER2 -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: vrf-internal 2 | rd: null 3 | - name: vrf-external 4 | rd: null 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_glbp.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vrrp.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_glbp.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vrrp.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/access-switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/access-switch.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/core-switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/core-switch.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/load-balancer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/load-balancer.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/wireless-ap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/wireless-ap.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/workstation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/workstation.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/virtual-switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/virtual-switch.png -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 172.16.100.10/24 2 | vrf: null 3 | - address: 127.0.0.1/8 4 | vrf: null 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_bgp_neighbors.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_eigrp_neighbors.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_bgp_neighbors.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_eigrp_neighbors.raw: -------------------------------------------------------------------------------- 1 | ^ 2 | % Invalid command at '^' marker. 3 | -------------------------------------------------------------------------------- /.bandit.yml: -------------------------------------------------------------------------------- 1 | skips: [] 2 | # No need to check for security issues in the test scripts! 3 | exclude_dirs: 4 | - "./tests/" 5 | - "./.venv/" 6 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_domainname.textfsm: -------------------------------------------------------------------------------- 1 | Value DOMAINNAME (\S+) 2 | 3 | Start 4 | ^Domain name\s+${DOMAINNAME} -> Record 5 | -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/distribution-switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/distribution-switch.png -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/wireless-controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dainok/netdoc/HEAD/netdoc/static/netdoc/img/wireless-controller.png -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: blue 2 | rd: null 3 | - name: red 4 | rd: null 5 | - name: management 6 | rd: null 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: blue 2 | rd: null 3 | - name: red 4 | rd: null 5 | - name: management 6 | rd: null 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: red 2 | rd: "1:2" 3 | - name: green 4 | rd: null 5 | - name: yellow 6 | rd: null 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: DEFAULT_VLAN 3 | - vid: 2 4 | name: SERVER 5 | - vid: 2000 6 | name: P2P 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_vrf_show.raw: -------------------------------------------------------------------------------- 1 | Name Table 2 | ----------------------- 3 | No VRF has been configured 4 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_inventory.raw: -------------------------------------------------------------------------------- 1 | NAME: "IOL chassis", DESCR: "IOL chassis" 2 | PID: , VID: 0xFF, SN: FF1045C5 -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_asa_show_name.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+.\d+.\d+.\d+) 2 | Value NAME (\S+) 3 | 4 | Start 5 | ^name\s+${IP_ADDRESS}\s+${NAME}\s* -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_vpc.textfsm: -------------------------------------------------------------------------------- 1 | Value ID (\d+) 2 | Value PORT (\S+) 3 | Value STATUS (\S+) 4 | 5 | Start 6 | ^${ID}\s+${PORT}\s+${STATUS} -> Record 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_smartax_display_cpu.textfsm: -------------------------------------------------------------------------------- 1 | Value CPU_OCCUPANCY (\d+) 2 | 3 | Start 4 | ^\s+CPU\s+occupancy:\s+${CPU_OCCUPANCY}% 5 | ^\s*$$ 6 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 10.1.1.10 2 | vm: FW01 3 | site: test-site 4 | credential: test-credential 5 | mode: xml_panw_ngfw 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: default 3 | - vid: 100 4 | name: server 5 | - vid: 101 6 | name: client 7 | - vid: 102 8 | name: dmz 9 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 172.16.100.0/24 2 | vrf: null 3 | site: test-site 4 | - prefix: 127.0.0.0/8 5 | vrf: null 6 | site: test-site 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_smartax_display_mem.textfsm: -------------------------------------------------------------------------------- 1 | Value MEMORY_OCCUPANCY (\d+) 2 | 3 | Start 4 | ^\s+Memory\s+occupancy:\s+${MEMORY_OCCUPANCY}% 5 | ^\s*$$ 6 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_vrp_display_sn_license.textfsm: -------------------------------------------------------------------------------- 1 | Value SERIAL_NUMBER (\S+) 2 | 3 | 4 | Start 5 | ^.*ESN of device:\s${SERIAL_NUMBER}$$ 6 | ^. -> Error 7 | 8 | -------------------------------------------------------------------------------- /netdoc/tests/json_vmware_vsphere/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: NODE1 2 | site: test-site 3 | model: UCS-C220-M5SX 4 | manufacturer: Cisco 5 | address: null 6 | serial: "" 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_route_connected.raw: -------------------------------------------------------------------------------- 1 | 2 | Thu Aug 17 18:01:21.461 Italy 3 | 4 | C 10.11.1.0/24 is directly connected, 3y02w, TenGigE0/0/0/0 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: DISCOVERY 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_linux 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-arp_an.raw: -------------------------------------------------------------------------------- 1 | ? (172.16.100.103) at 3a:65:64:00:00:30 [ether] on ens18 2 | ? (172.16.100.104) at f2:d4:45:00:00:68 [ether] on ens18 3 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_hostname.textfsm: -------------------------------------------------------------------------------- 1 | Value HOSTNAME (\S+?) 2 | Value FQDN (\S+?) 3 | 4 | Start 5 | ^Hostname:\s+${HOSTNAME}$$ 6 | ^FQDN:\s+${FQDN}$$ -> Record 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/arps.yml: -------------------------------------------------------------------------------- 1 | - device: SW1 2 | interface: vl3072 3 | ip_address: 10.101.72.1 4 | mac_address: 00:1B:17:00:01:31 5 | vendor: Palo Alto Networks 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/arps.yml: -------------------------------------------------------------------------------- 1 | - device: SW1 2 | interface: vl20 3 | ip_address: 10.2.1.254 4 | mac_address: 00:1B:17:FF:00:01 5 | vendor: Palo Alto Networks 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab2/devices.yml: -------------------------------------------------------------------------------- 1 | - name: NXOS11 2 | site: test-site 3 | model: Unknown Cisco device 4 | manufacturer: Cisco 5 | address: null 6 | serial: "" 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 192.168.1.1/24 2 | vrf: null 3 | - address: 10.1.100.1/24 4 | vrf: null 5 | - address: 10.1.102.1/24 6 | vrf: red 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: DISCOVERY 2 | site: test-site 3 | model: Unknown Linux device 4 | manufacturer: Linux 5 | address: null 6 | serial: "" 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_route_show.raw: -------------------------------------------------------------------------------- 1 | default via 172.16.100.254 dev ens18 onlink 2 | 172.16.100.0/24 dev ens18 proto kernel scope link src 172.16.100.10 3 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/virtual_machines.yml: -------------------------------------------------------------------------------- 1 | - name: FW01 2 | site: test-site 3 | status: active 4 | address: null 5 | vcpus: null 6 | memory: null 7 | disk: null 8 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: DEFAULT_VLAN_1 3 | - vid: 666 4 | name: VLAN0666 5 | - vid: 3072 6 | name: mgmt 7 | - vid: 3077 8 | name: VLAN3077 9 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 10.10.8.1/24 2 | vrf: red 3 | - address: 169.254.1.1/24 4 | vrf: management 5 | - address: 10.11.1.1/24 6 | vrf: null 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 192.168.1.1/24 2 | vrf: null 3 | - address: 192.168.2.1/24 4 | vrf: null 5 | - address: 10.10.1.1/24 6 | vrf: null 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_s300_show_system_id.textfsm: -------------------------------------------------------------------------------- 1 | Value SERIAL_NUMBER (\S+) 2 | 3 | Start 4 | ^\s*Serial\s+number\s*:\s*${SERIAL_NUMBER}\s*$$ -> Record 5 | ^\s*$$ 6 | ^. -> Error 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_boot-config.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S+) 2 | Value CONSOLE (.*) 3 | 4 | Start 5 | ^Software image:\s+${VERSION} 6 | ^Console speed:\s+${CONSOLE} -> Record 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_virtual-system_all.textfsm: -------------------------------------------------------------------------------- 1 | Value INSTANCE_ID (\d+) 2 | Value INSTANCE_NAME ([a-zA-Z0-9_-]+) 3 | 4 | 5 | Start 6 | ^${INSTANCE_ID}\s+${INSTANCE_NAME} -> Record -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 192.168.254.220/24 2 | vrf: null 3 | - address: 10.255.255.1/24 4 | vrf: null 5 | - address: 20.0.0.1/24 6 | vrf: null 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_comware_display_vlan_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value VLAN_ID (\d+) 2 | Value VLAN_NAME (\w+) 3 | 4 | Start 5 | ^VLAN ID\s+ -> VLAN 6 | 7 | VLAN 8 | ^${VLAN_ID}\s+${VLAN_NAME} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/arps.yml: -------------------------------------------------------------------------------- 1 | - device: 6F-SH210-5 2 | interface: vl954 3 | ip_address: 192.168.254.251 4 | mac_address: 0000.cd37.06aa 5 | vendor: "Allied Telesis Labs Ltd" 6 | -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | # E501: Line length is enforced by Black, so flake8 doesn't need to check it 3 | # W503: Black disagrees with this rule, as does PEP 8; Black wins 4 | ignore = E501, W503 5 | exclude = 6 | .venv 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/avaya_ers_show_interface_name.textfsm: -------------------------------------------------------------------------------- 1 | Value PORT (\S+) 2 | Value NAME ([\S ]*) 3 | 4 | Start 5 | ^Port Name|Unit\/Port Name 6 | ^-+ -+ 7 | ^${PORT}\s+${NAME} -> Record 8 | 9 | Done 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_feature.textfsm: -------------------------------------------------------------------------------- 1 | Value NAME (\S+) 2 | Value INSTANCE (\d+) 3 | Value STATE (disabled|enabled\s\(not-running\)|enabled) 4 | 5 | Start 6 | ^${NAME}\s+${INSTANCE}\s+${STATE} -> Record 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_arp.raw: -------------------------------------------------------------------------------- 1 | IP Address MAC Address Interface Port Type 2 | 192.168.254.251 0000.cd37.06aa vlan954 sa1 dynamic 3 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/logs/169.254.1.1-display_device_manuinfo.raw: -------------------------------------------------------------------------------- 1 | Slot Sub Serial-number Manu-date 2 | - - - - - - - - - - - - - - - - - - - - - - 3 | 0 - 102160184741 2021-06-23 -------------------------------------------------------------------------------- /netdoc/ntc_templates/linux_ip_vrf_show.textfsm: -------------------------------------------------------------------------------- 1 | Value Required NAME (\S+) 2 | Value TABLE (\d+) 3 | 4 | Start 5 | ^--- -> Start_record 6 | 7 | Start_record 8 | ^${NAME}\s+${TABLE} -> Record 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp_vrf_blue.raw: -------------------------------------------------------------------------------- 1 | Protocol Address Age (min) Hardware Addr Type Interface 2 | Internet 10.0.2.1 - aabb.cc00.1430 ARPA Ethernet0/3 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_vrf.raw: -------------------------------------------------------------------------------- 1 | Name Default RD Protocols Interfaces 2 | management ipv4 Gi0/0 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/vrfs.yml: -------------------------------------------------------------------------------- 1 | - name: DMZ 2 | rd: null 3 | - name: VRF01 4 | rd: null 5 | - name: VRF02 6 | rd: null 7 | - name: VRF03 8 | rd: null 9 | - name: VRF04 10 | rd: null 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp_vrf_management.raw: -------------------------------------------------------------------------------- 1 | Protocol Address Age (min) Hardware Addr Type Interface 2 | Internet 172.25.82.41 - aabb.cc00.1400 ARPA Ethernet0/0 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/routes.yml: -------------------------------------------------------------------------------- 1 | - device: ROUTER1 2 | destination: 192.168.56.0/24 3 | protocol: c 4 | distance: 0 5 | metric: 0 6 | nexthop_ip: 192.168.56.101 7 | nexthop_if: te1/0/3 8 | vrf: null 9 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_lom.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S+) 2 | Value LOMIP ((?:[0-9]{1,3}\.){3}[0-9]{1,3}(/\d{1,2})?|\w+) 3 | 4 | Start 5 | ^Firmware Revision :\s+${VERSION} 6 | ^IP Address :\s+${LOMIP} -> Record 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_fw_stat.textfsm: -------------------------------------------------------------------------------- 1 | Value POLICY (\S+) 2 | Value POLICY_INSTALL_DATE ([0-9]{1,2}[a-zA-Z]{3}[0-9]{4}\s\d{1,2}\:\d{1,2}\:\d{1,2}) 3 | 4 | Start 5 | ^\w+\s${POLICY}\s+${POLICY_INSTALL_DATE}\s+ -> Record 6 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/alcatel_sros_oam_mac-ping.textfsm: -------------------------------------------------------------------------------- 1 | Value ROUTER (\d+\.\d+\.\d+\.\d+) 2 | Value PORT ([0-9]0?\/[1-2]\/[0-9]+|lag-[0-9]{1,3}) 3 | Value TAG ([0-9]{1,4}|\d+.?\d+?) 4 | 5 | Start 6 | ^1\s+${ROUTER}:sap${PORT}:${TAG} -> Record 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ericsson_ipos_show_version.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S[^\[]+) 2 | Value UPTIME (\d+\s+\S+\s+\d+\s+\S+\s+\d+\s+\S+) 3 | 4 | Start 5 | ^Ericsson\s+IPOS\s+Version\s+IPOS-v${VERSION}-Release 6 | ^.+Up\s+Time\s+-\s+${UPTIME} 7 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_running-config_include_hostname.raw: -------------------------------------------------------------------------------- 1 | 2 | Thu Aug 17 17:57:13.570 Italy 3 | Building configuration... 4 | hostname XR01 5 | $(hostname) 6 | logging hostnameprefix XR01 -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_fex.textfsm: -------------------------------------------------------------------------------- 1 | Value NUMBER (\d+) 2 | Value DESCR ((\S+)(\s+\S+)*) 3 | Value STATE (\S+) 4 | Value MODEL (\S+) 5 | Value SERIAL (\S+) 6 | 7 | Start 8 | ^${NUMBER}\s+${DESCR}\s+${STATE}\s+${MODEL}\s+${SERIAL} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 192.168.1.0/24 2 | vrf: null 3 | site: test-site 4 | - prefix: 10.1.100.0/24 5 | vrf: null 6 | site: test-site 7 | - prefix: 10.1.102.0/24 8 | vrf: red 9 | site: test-site 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_running-config_snmp_enable.textfsm: -------------------------------------------------------------------------------- 1 | Value TRAP (linkUp|linkDown) 2 | Value STATUS (\w+) 3 | 4 | 5 | Start 6 | ^snmp\s${STATUS}\straps\s${TRAP} -> Record 7 | ^snmp\s${STATUS}\straps\s${TRAP}-> Record 8 | 9 | EOF -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 10.10.8.0/24 2 | vrf: red 3 | site: test-site 4 | - prefix: 169.254.1.0/24 5 | vrf: management 6 | site: test-site 7 | - prefix: 10.11.1.0/24 8 | vrf: null 9 | site: test-site 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 192.168.1.0/24 2 | vrf: null 3 | site: test-site 4 | - prefix: 192.168.2.0/24 5 | vrf: null 6 | site: test-site 7 | - prefix: 10.10.1.0/24 8 | vrf: null 9 | site: test-site 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_etherchannel_summary.raw: -------------------------------------------------------------------------------- 1 | Aggregator po7 (IfIndex: 4607) 2 | Admin Key: 0007 - Oper Key 0007 3 | Link: port1.0.7 (IfIndex: 5007) synchronized 4 | Link: port1.0.8 (IfIndex: 5008) synchronized 5 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 192.168.254.0/24 2 | vrf: null 3 | site: test-site 4 | - prefix: 10.255.255.0/24 5 | vrf: null 6 | site: test-site 7 | - prefix: 20.0.0.0/24 8 | vrf: null 9 | site: test-site 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_vpn-instance.raw: -------------------------------------------------------------------------------- 1 | Total VPN-Instances configured : 1 2 | VPN-Instance Name RD Create time 3 | red 1:1 2017/05/18 05:48:17 -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_version.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S+) 2 | Value BUILD_DATE (.+) 3 | Value LAST_REBOOT (.+) 4 | 5 | 6 | Start 7 | ^Version\s${VERSION} 8 | ^Build\sdate\s${BUILD_DATE} 9 | ^Last\sReboot\s${LAST_REBOOT} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_ip_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value IP_ADDRESS (\S+) 3 | Value STATUS (\S+) 4 | Value PROTOCOL (\S+) 5 | Value MTU (\d+) 6 | 7 | Start 8 | ^${INTERFACE}\s+${IP_ADDRESS}\s+${STATUS}\s+${PROTOCOL}\s+${MTU} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_admin_show_platform.textfsm: -------------------------------------------------------------------------------- 1 | Value NODE (\S+) 2 | Value TYPE (\S+) 3 | Value STATE ((\S+(\s\S+)*)) 4 | Value CONFIG_STATE (\S+) 5 | 6 | Start 7 | ^\-+ -> Parse 8 | 9 | Parse 10 | ^${NODE}\s+${TYPE}\s+${STATE}\s+(${CONFIG_STATE})? -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/paloalto_panos_debug_swm_status.textfsm: -------------------------------------------------------------------------------- 1 | Value PART (\S+) 2 | Value STATE (\S+) 3 | Value VERSION (\S+) 4 | 5 | Start 6 | ^Partition\s+State\s+Version 7 | ^-+$$ 8 | ^${PART}\s+${STATE}\s+${VERSION} -> Record 9 | ^\s*$$ 10 | ^. -> Error 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-arp_an.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "arp -an", 4 | "enable": true, 5 | "order": 10, 6 | "template": "arp -an" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_bfd_sessions.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (.+?) 2 | Value DSTADDRESS (\d+\.\d+\.\d+\.\d+) 3 | Value STATE (\S+) 4 | 5 | Start 6 | ^\-+ -> Begin1 7 | 8 | Begin1 9 | ^\s*${INTERFACE}\s+${DSTADDRESS}\s+\S+\s+\S+\s+${STATE} -> Record 10 | 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_comware_display_mac-address.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS (^[\d\w-]+) 2 | Value VLAN_ID ([\d]+) 3 | Value STATE (\S+) 4 | Value INTERFACE (\S+) 5 | Value AGING (\S+) 6 | 7 | Start 8 | ^${MAC_ADDRESS}\s+${VLAN_ID}\s+${STATE}\s+${INTERFACE}\s+${AGING} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "hostname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/aruba_os_show_ip_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+\s\S+) 2 | Value IP_ADDRESS (\S+) 3 | Value NETMASK (\S+) 4 | Value ADMIN (\S+) 5 | Value PROTOCOL (\S+) 6 | 7 | Start 8 | ^${INTERFACE}\s+${IP_ADDRESS}\s+/\s+${NETMASK}\s+${ADMIN}\s+${PROTOCOL} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_ip_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (.+?) 2 | Value IP_ADDRESS (\S+) 3 | Value STATUS (Up|Down|Shutdown) 4 | Value PROTO (Up|Down) 5 | Value VRF (\S+) 6 | 7 | Start 8 | ^${INTERFACE}\s+${IP_ADDRESS}\s+${STATUS}\s+${PROTO}\s+${VRF} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_processes_cpu.textfsm: -------------------------------------------------------------------------------- 1 | Value CPU_1_min (\d+) 2 | Value CPU_5_MIN (\d+) 3 | Value CPU_15_MIN (\d+) 4 | 5 | Start 6 | ^CPU utilization for one minute:\s${CPU_1_min}%;\s+five minutes:\s+${CPU_5_MIN}%;\s+fifteen minutes:\s+${CPU_15_MIN}% -> Record 7 | 8 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show arp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1/32 2 | vrf: null 3 | - address: 10.10.10.1/24 4 | vrf: null 5 | - address: 10.10.20.1/24 6 | vrf: null 7 | - address: 10.10.30.1/24 8 | vrf: null 9 | - address: 192.168.1.253/24 10 | vrf: null 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_dns.textfsm: -------------------------------------------------------------------------------- 1 | Value DOMAIN (\S+) 2 | Value List DNS_SERVERS (\S+) 3 | 4 | Start 5 | ^DNS\ssetup 6 | ^Name\s+Value 7 | ^Domain\s+${DOMAIN} 8 | ^DNS\sserver\s+${DNS_SERVERS} -> Continue 9 | ^DNS\sserver 10 | ^\s*$$ 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_redundancy_summary.textfsm: -------------------------------------------------------------------------------- 1 | Value PRIMARY (\S+) 2 | Value BACKUP (\S+) 3 | Value STATUS ((\S+(\s\S+)*)) 4 | Value NSR (\S+) 5 | 6 | Start 7 | ^.*\-+ -> Parse 8 | 9 | Parse 10 | ^\s+${PRIMARY}\s+${BACKUP}\s+\(${STATUS},\s+NSR:\s+${NSR}\) -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_force10_show_version.textfsm: -------------------------------------------------------------------------------- 1 | Value OS_VERSION (\S+) 2 | Value UPTIME (.+) 3 | Value DEVICE_TYPE (\S+) 4 | 5 | Start 6 | ^Dell Application Software Version:\s+${OS_VERSION} 7 | ^Dell Networking OS uptime is\s${UPTIME} 8 | ^System Type:\s${DEVICE_TYPE} -> Record 9 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_smartax_display_sysuptime.textfsm: -------------------------------------------------------------------------------- 1 | Value DAY (\d+) 2 | Value HOUR (\d+) 3 | Value MINUTE (\d+) 4 | Value SECOND (\d+) 5 | 6 | Start 7 | ^\s+System\s+up\s+time:\s+${DAY}\s+day\s+${HOUR}\s+hour\s+${MINUTE}\s+minute\s+${SECOND}\s+ 8 | ^\s*$$ -> EOF 9 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/tests/json_vmware_vsphere/lab1/logs/172.25.82.108-pyVmomi.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "pyVmomi", 4 | "enable": false, 5 | "order": 0, 6 | "template": "pyVmomi" 7 | }, 8 | "discoverable__mode": "json_vmware_vsphere" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_glbp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show glbp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show glbp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_vrf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrf", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show vrf" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: default 3 | - vid: 100 4 | name: P2P 5 | - vid: 1002 6 | name: fddi-default 7 | - vid: 1003 8 | name: token-ring-default 9 | - vid: 1004 10 | name: fddinet-default 11 | - vid: 1005 12 | name: trnet-default 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vdc.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vdc", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vdc" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vpc.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vpc", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vpc" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vrf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrf", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show vrf" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vdc.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vdc", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vdc" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vpc.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vpc", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vpc" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vrf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrf", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show vrf" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: default 3 | - vid: 4 4 | name: SERVER 5 | - vid: 1002 6 | name: fddi-default 7 | - vid: 1003 8 | name: token-ring-default 9 | - vid: 1004 10 | name: fddinet-default 11 | - vid: 1005 12 | name: trnet-default 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show arp" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_ip.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_link_show.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "ip link show", 4 | "enable": true, 5 | "order": 10, 6 | "template": "ip link show" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_vrf_show.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "ip vrf show", 4 | "enable": true, 5 | "order": 10, 6 | "template": "ip vrf show" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_lldp_neighbors.textfsm: -------------------------------------------------------------------------------- 1 | Value NEIGHBOR (\S+) 2 | Value LOCAL_INTERFACE (\S+) 3 | Value NEIGHBOR_INTERFACE (\S+) 4 | 5 | Start 6 | ^Port.*TTL -> LLDP 7 | 8 | LLDP 9 | ^${LOCAL_INTERFACE}\s+${NEIGHBOR}\s+${NEIGHBOR_INTERFACE}\s+.* -> Record 10 | 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/avaya_ers_show_mac-address-table.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS (\S+) 2 | Value VID (\d+) 3 | Value TYPE (\S+) 4 | Value PORT (\d+) 5 | 6 | Start 7 | ^\s+MAC Address.* 8 | ^-+ -+ -+ -+ 9 | ^${MAC_ADDRESS}\s+${VID}\s+${TYPE}\s+\w*:*\s*${PORT}* -> Record 10 | 11 | Done -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_arp_dynamic_all.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value MAC_ADDRESS (\S+) 3 | 4 | Start 5 | ^Dynamic\sArp\sParameters 6 | ^IP\sAddress\s+Mac\sAddress 7 | ^${IP_ADDRESS}\s+${MAC_ADDRESS} -> Record 8 | ^\s*$$ 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_clock.textfsm: -------------------------------------------------------------------------------- 1 | Value TIME (\d+:\d+:\d+\.\d+) 2 | Value TIMEZONE (\w+) 3 | Value DAYWEEK (\w+) 4 | Value MONTH (\w+) 5 | Value DAY (\d+) 6 | Value YEAR (\d+) 7 | 8 | Start 9 | ^${TIME}\s${TIMEZONE}\s${DAYWEEK}\s${MONTH}\s${DAY}\s${YEAR} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_version.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show version", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_vlan.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_vrf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrf", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show vrf" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_glbp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show glbp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show glbp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vrrp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrrp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vrrp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_glbp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show glbp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show glbp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vrrp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrrp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vrrp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_mac-address.raw: -------------------------------------------------------------------------------- 1 | MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s) 2 | 0000-1111-2222 1 Learned Bridge-Aggregation10 AGING 3 | 0000-1111-2223 1 Learned Bridge-Aggregation10 AGING -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_system.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_vlans.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlans", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlans" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_route_show.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "ip route show", 4 | "enable": true, 5 | "order": 10, 6 | "template": "ip route show" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/allied_telesis_awplus_show_etherchannel_summary.textfsm: -------------------------------------------------------------------------------- 1 | Value PO_NAME (\S+) 2 | Value List INTERFACES (\w+\.\d\.\w+) 3 | 4 | Start 5 | ^Aggregator -> Continue.Record 6 | ^Aggregator\s+${PO_NAME} 7 | ^\s+Admin\s+Key 8 | ^\s+Link:\s+${INTERFACES} 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_vrp_display_service-set_all.textfsm: -------------------------------------------------------------------------------- 1 | Value ID (\d+) 2 | Value NAME (\w+) 3 | Value SSID (\w+) 4 | 5 | Start 6 | ^\s*-+ -> Next 7 | ^\s*ID.+$$ -> Next 8 | ^\s*${ID}\s+${NAME}\s+${SSID}\s*$$ -> Record 9 | ^\s*Total:.+$$ -> Next 10 | ^.*$$ -> Error 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_system.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show system" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_system.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show system" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_logging.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show logging", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show logging" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_standby.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show standby", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show standby" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_glbp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show glbp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show glbp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_version.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show version", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show hostname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show hostname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab2/logs/169.254.1.11-show_hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show hostname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display arp", 4 | "enable": true, 5 | "order": 100, 6 | "template": "display arp" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_trunks.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show trunks", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show trunks" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_address_show.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "ip address show", 4 | "enable": true, 5 | "order": 10, 6 | "template": "ip address show" 7 | }, 8 | "discoverable__mode": "netmiko_linux" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_wlc_ssh_show_boot.textfsm: -------------------------------------------------------------------------------- 1 | Value IMAGE_TYPE (\S+\s+\S+\s+[A-z]+) 2 | Value IMAGE_VERSION (\S+) 3 | Value IMAGE_STATUS ((?:\(\S+\))\s*(?:\(\S+\))?) 4 | 5 | 6 | Start 7 | ^${IMAGE_TYPE}\.+\s+${IMAGE_VERSION}\s*(${IMAGE_STATUS})?$$ -> Record 8 | ^\s*$$ 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_comware_display_clock.textfsm: -------------------------------------------------------------------------------- 1 | Value TIME (\d+:\d+:\d+) 2 | Value TIMEZONE (\S+) 3 | Value DAYWEEK (\w+) 4 | Value MONTH (\d+) 5 | Value DAY (\d+) 6 | Value YEAR (\d+) 7 | 8 | Start 9 | ^${TIME}\s+${TIMEZONE}\s+${DAYWEEK}\s+${MONTH}/${DAY}/${YEAR} -> Record 10 | 11 | 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/vlans.yml: -------------------------------------------------------------------------------- 1 | - vid: 1 2 | name: DEFAULT_VLAN_1 3 | - vid: 20 4 | name: mgmt 5 | - vid: 19 6 | name: VLAN0019 7 | - vid: 23 8 | name: VLAN0023 9 | - vid: 24 10 | name: VLAN0024 11 | - vid: 2016 12 | name: VLAN2016 13 | - vid: 2033 14 | name: VLAN2033 15 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_inventory.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show inventory", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show inventory" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_ospf_neighbor.raw: -------------------------------------------------------------------------------- 1 | 2 | Neighbor ID Pri State Dead Time Address Interface 3 | 10.0.1.2 1 FULL/BDR 00:00:37 192.168.100.2 Vlan100 4 | 10.0.1.2 1 FULL/DR 00:00:36 10.0.1.2 Vlan1 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_vrrp_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrrp all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vrrp all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_hsrp_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show hsrp all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show hsrp all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_logging.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show logging", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show logging" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_version.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show version", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show version" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_hsrp_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show hsrp all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show hsrp all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_logging.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show logging", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show logging" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_version.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show version", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show version" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_interfaces.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interfaces" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_ip_route.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_ntp_servers.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS ((?:[0-9]{1,3}\.){3}[0-9]{1,3}) 2 | Value TYPE (\S+) 3 | Value VERSION (\S+) 4 | 5 | Start 6 | ^IP\sAddress\s+Type\s+Version\s*$$ 7 | ^${IP_ADDRESS}\s+${TYPE}\s+${VERSION}\s*$$ -> Record 8 | ^\s*$$ 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_comware_display_ip_vpn-instance.textfsm: -------------------------------------------------------------------------------- 1 | Value Required NAME (\S+) 2 | Value RD (\d+:\d+) 3 | 4 | Start 5 | ^\s*VPN-Instance Name -> VPNInstances 6 | 7 | VPNInstances 8 | ^\s*${NAME}\s+${RD}\s+.* -> Record 9 | ^\s*${NAME}\s+.* -> Record 10 | ^\s*$$ 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_interfaces.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interfaces" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_bgp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route bgp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_rip.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route rip", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_logging.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show logging", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show logging" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_standby.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show standby", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show standby" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_vrrp_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrrp all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show vrrp all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_inventory.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show inventory", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show inventory" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_inventory.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show inventory", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show inventory" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_route_connected.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show route connected", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.2-display_vlan_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display vlan all", 4 | "enable": true, 5 | "order": 2, 6 | "template": "display vlan all" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_processes_cpu.textfsm: -------------------------------------------------------------------------------- 1 | Value CPU_5_SEC (\d+) 2 | Value CPU_1_MIN (\d+) 3 | Value CPU_5_MIN (\d+) 4 | Value INTERRUPTS (\d+) 5 | 6 | Start 7 | ^CPU utilization for five seconds:\W+${CPU_5_SEC}%/${INTERRUPTS}%; one minute:\W+${CPU_1_MIN}%; five minutes:\W+${CPU_5_MIN}% -> Record 8 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp", 4 | "enable": true, 5 | "order": 9, 6 | "template": "show arp" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show ip interface" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_eigrp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route eigrp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_isis.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route isis", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_ospf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route ospf", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_interfaces.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interfaces" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_inventory.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show inventory", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show inventory" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display interface", 4 | "enable": true, 5 | "order": 4, 6 | "template": "display interface" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/macaddresses.yml: -------------------------------------------------------------------------------- 1 | - device: ROUTER1 2 | interface: bagg10 3 | vlan: 1 4 | mac_address: 00:00:11:11:22:22 5 | vendor: NORMEREL SYSTEMES 6 | - device: ROUTER1 7 | interface: bagg10 8 | vlan: 1 9 | mac_address: 00:00:11:11:22:23 10 | vendor: NORMEREL SYSTEMES 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_mac-address.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac-address", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show mac-address" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/arps.yml: -------------------------------------------------------------------------------- 1 | - device: DISCOVERY 2 | interface: ens18 3 | ip_address: 172.16.100.103 4 | mac_address: 3A:65:64:00:00:30 5 | vendor: null 6 | - device: DISCOVERY 7 | interface: ens18 8 | ip_address: 172.16.100.104 9 | mac_address: F2:D4:45:00:00:68 10 | vendor: null 11 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 1.2.3.4/24 2 | vrf: vrf-external 3 | - address: 10.10.9.1/24 4 | vrf: vrf-external 5 | - address: 10.10.7.254/24 6 | vrf: vrf-internal 7 | - address: 10.10.255.1/32 8 | vrf: vrf-internal 9 | - address: 10.13.4.1/30 10 | vrf: vrf-internal 11 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/logs/10.1.1.10-show_arp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "", 4 | "enable": false, 5 | "order": 128, 6 | "template": "show arp" 7 | }, 8 | "discoverable__mode": "xml_panw_ngfw" 9 | } 10 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- 1 | [MAIN] 2 | init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc())); sys.path.append(os.path.abspath('../netbox/netbox'));" 3 | 4 | [MESSAGES CONTROL] 5 | disable=similarities,R0903,R0901,R0913,R0914,R0912,R0911,R0915,R1702,C0302 6 | ignore=migrations 7 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_clock.textfsm: -------------------------------------------------------------------------------- 1 | Value TIME (\d+:\d+:\d+) 2 | Value TIMEZONE (\S+) 3 | Value DAYWEEK (\w+) 4 | Value MONTH (\w+) 5 | Value DAY (\d+) 6 | Value YEAR (\d+) 7 | 8 | Start 9 | ^${DAYWEEK}\s+${MONTH}\s+${DAY}\s+${TIME}\s+${YEAR} 10 | ^[t|T]imezone(:|\sis)\s+${TIMEZONE} -> Record 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_cts_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value MODE (\S+) 3 | Value IFC_STATE (\S+) 4 | Value SGT_ASSIGNMENT ((\S+(\s\S+)*)) 5 | Value SGT_PROPAGATE (Enabled|Disabled) 6 | 7 | Start 8 | ^${INTERFACE}\s+${MODE}\s+${IFC_STATE}\s+${SGT_ASSIGNMENT}\s+${SGT_PROPAGATE} -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_interface_snmp-ifindex.textfsm: -------------------------------------------------------------------------------- 1 | Value PORT (\S+) 2 | Value IFMIB (\S+) 3 | Value IFINDEX_HEX (\S+) 4 | 5 | Start 6 | ^Port\s+IFMIB\s+Ifindex\s+\(hex\)\s*$$ 7 | ^${PORT}\s+${IFMIB}\s+\(${IFINDEX_HEX}\s*\)\s*$$ -> Record 8 | ^-*$$ 9 | ^\s*$$ 10 | ^. -> Error 11 | 12 | EOF -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_powerconnect_show_interfaces_description.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value DESCRIPTION (\S*) 3 | 4 | Start 5 | ^Port\s+Description -> Begin 6 | 7 | Begin 8 | ^-+ 9 | ^Ch\s+Description -> End 10 | ^${INTERFACE}\s*${DESCRIPTION}\s*$$ -> Record 11 | ^\s* 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgeswitch_show_vlan.textfsm: -------------------------------------------------------------------------------- 1 | Value Required VLAN_ID (\d+) 2 | Value VLAN_NAME (.*?) 3 | Value TYPE (\S+) 4 | 5 | Start 6 | ^${VLAN_ID}\s+${VLAN_NAME}\s+${TYPE}\s*$$ -> Record 7 | ^VLAN\s+ID\s+VLAN\s+Name\s+VLAN\s+Type\s*$$ 8 | ^-+\s+-+\s+-+\s*$$ 9 | ^\s*$$ 10 | ^. -> Error 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_arp_all-vrfs.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp all-vrfs", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show arp all-vrfs" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_arp_all-vrfs.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp all-vrfs", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show arp all-vrfs" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_static.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route static", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_running-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show running-config", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show running-config" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_spanning-tree.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show spanning-tree", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show spanning-tree" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show ip interface" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_bgp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route bgp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_isis.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route isis", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_ospf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route ospf", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_rip.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route rip", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_spanning-tree.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show spanning-tree", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show spanning-tree" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_spanning-tree.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show spanning-tree", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show spanning-tree" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: XR01 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_cisco_xr 6 | - address: 169.22.1.2 7 | device: null 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_cisco_xr 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-admin_show_inventory.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "admin show inventory", 4 | "enable": true, 5 | "order": 10, 6 | "template": "admin show inventory" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_lldp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_vrf_all_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vrf all detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show vrf all detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_mac-address.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display mac-address", 4 | "enable": true, 5 | "order": 6, 6 | "template": "display mac-address" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_vlan_brief.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display vlan brief", 4 | "enable": true, 5 | "order": 2, 6 | "template": "display vlan brief" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/logs/10.1.1.10-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "all", 4 | "enable": false, 5 | "order": 10, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "xml_panw_ngfw" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_rsvp_neighbors.textfsm: -------------------------------------------------------------------------------- 1 | Value Filldown GLOBAL_NEIGHBOR (\S+) 2 | Value Required INTERFACE_NEIGHBOR (\S+) 3 | Value INTERFACE (\S+) 4 | 5 | Start 6 | ^.*Global Neighbor:\s+${GLOBAL_NEIGHBOR} 7 | ^.*\-+ -> Parse 8 | 9 | Parse 10 | ^\s+${INTERFACE_NEIGHBOR}\s+${INTERFACE} -> Record -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_system.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show system", 4 | "enable": true, 5 | "order": 1, 6 | "template": "show system" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/macaddresses.yml: -------------------------------------------------------------------------------- 1 | - device: SW1 2 | interface: lag1 3 | vlan: 3072 4 | mac_address: BC:D7:A5:BF:00:40 5 | vendor: null 6 | - device: SW1 7 | interface: lag1 8 | vlan: 3072 9 | mac_address: B8:D4:E7:07:00:00 10 | vendor: Aruba, a Hewlett Packard Enterprise Company 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/devices.yml: -------------------------------------------------------------------------------- 1 | - name: SW1 2 | site: test-site 3 | model: Unknown HPE device 4 | manufacturer: HPE 5 | address: null 6 | serial: CN26LXXXXX 7 | - name: SW2 8 | site: test-site 9 | model: Unknown device 10 | manufacturer: Unknown 11 | address: null 12 | serial: "" 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: SW1 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_aruba_aoscx 6 | - address: 192.168.1.1 7 | device: null 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_aruba_aoscx 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_connected.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route connected", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_eigrp.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route eigrp", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_static.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route static", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_spanning-tree.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show spanning-tree", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show spanning-tree" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_interface_trunk.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface trunk", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interface trunk" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_running-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show running-config", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show running-config" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_interface_trunk.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface trunk", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interface trunk" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_running-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show running-config", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show running-config" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 169.254.0.0/16 2 | vrf: management 3 | site: test-site 4 | - prefix: 192.168.1.0/24 5 | vrf: null 6 | site: test-site 7 | - prefix: 10.0.0.0/24 8 | vrf: blue 9 | site: test-site 10 | - prefix: 10.0.0.0/24 11 | vrf: red 12 | site: test-site 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display ip interface", 4 | "enable": true, 5 | "order": 5, 6 | "template": "display ip interface" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_vpn-instance_instance-name_red.raw: -------------------------------------------------------------------------------- 1 | VPN-Instance Name and Index : red, 1 2 | Route Distinguisher : 1:1 3 | Interfaces : Vlan-interface102 4 | Address-family IPv4: 5 | Export VPN Targets : 6 | 111:1 7 | Import VPN Targets : 8 | 111:1 222:2 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 10.10.10.0/24 2 | vrf: red 3 | site: test-site 4 | - prefix: 10.10.20.0/24 5 | vrf: green 6 | site: test-site 7 | - prefix: 10.10.30.0/24 8 | vrf: yellow 9 | site: test-site 10 | - prefix: 192.168.1.0/24 11 | vrf: null 12 | site: test-site 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show interface" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_ip_route.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route", 4 | "enable": true, 5 | "order": 30, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_vlan_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show vlan all", 4 | "enable": true, 5 | "order": 2, 6 | "template": "show vlan all" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_ip_route_all-vrf.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route all-vrf", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route all-vrf" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_interfaces_trunk.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces trunk", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interfaces trunk" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_bgp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip bgp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip bgp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_ospf_neighbor.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip ospf neighbor", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip ospf neighbor" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_connected.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route connected", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_running-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show running-config", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show running-config" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_bgp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip bgp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip bgp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_ospf_neighbor.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip ospf neighbor", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip ospf neighbor" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_route_vrf_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route vrf all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_bgp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip bgp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip bgp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_ospf_neighbor.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip ospf neighbor", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip ospf neighbor" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_route_vrf_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route vrf all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab2/logs/169.254.1.11-show_ip_route_vrf_all.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf all", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route vrf all" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_arp_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show arp vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show arp", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_xr" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: ROUTER1 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_hp_comware 6 | - address: 169.254.1.2 7 | device: ROUTER2 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_hp_comware 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/arps.yml: -------------------------------------------------------------------------------- 1 | - device: SWICORE 2 | interface: 1/1 3 | ip_address: 192.168.1.101 4 | mac_address: 00:04:24:00:00:A1 5 | vendor: TMC s.r.l. 6 | - device: SWICORE 7 | interface: 1/2 8 | ip_address: 10.10.1.1 9 | mac_address: 00:1B:17:00:00:B1 10 | vendor: Palo Alto Networks 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: SWICORE 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_hp_procurve 6 | - address: 10.10.1.3 7 | device: null 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_hp_procurve 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_interfaces_brief.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces brief", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show interfaces brief" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: ROUTER1 2 | site: test-site 3 | model: Unknown Huawei device 4 | manufacturer: Huawei 5 | address: null 6 | serial: "" 7 | - name: ROUTER2 8 | site: test-site 9 | model: Unknown device 10 | manufacturer: Unknown 11 | address: null 12 | serial: "" 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 169.254.1.1 2 | device: ROUTER1 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_huawei_vrp 6 | - address: 169.254.1.2 7 | device: null 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_huawei_vrp 11 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/logs/10.1.1.10-show_system_info.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "", 4 | "enable": false, 5 | "order": 0, 6 | "template": "show system info" 7 | }, 8 | "discoverable__mode": "xml_panw_ngfw" 9 | } 10 | -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- 1 | extends: default 2 | ignore: | 3 | .tox 4 | changelogs/* 5 | rules: 6 | braces: 7 | max-spaces-inside: 1 8 | level: error 9 | brackets: 10 | max-spaces-inside: 1 11 | level: error 12 | comments: 13 | min-spaces-from-content: 2 14 | line-length: disable 15 | document-start: disable 16 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/allied_telesis_awplus_show_mac_address-table.textfsm: -------------------------------------------------------------------------------- 1 | Value Required VLAN_ID (\d+) 2 | Value DESTINATION_PORT (\S+) 3 | Value DESTINATION_ADDRESS (\S+) 4 | Value FWD (\S+) 5 | 6 | Start 7 | ^VLAN\s+port 8 | ^${VLAN_ID}\s+${DESTINATION_PORT}\s+${DESTINATION_ADDRESS}\s+${FWD} -> Record 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_configuration_commit_changes.textfsm: -------------------------------------------------------------------------------- 1 | Value CREATED_BY (\w+) 2 | Value DATE_TIME (\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}) 3 | Value CLIENT (\w+) 4 | 5 | 6 | Start 7 | ^!\sCreated\sby:\s${CREATED_BY} 8 | ^!\sDate:\s${DATE_TIME} 9 | ^!\sClient:\s${CLIENT} -> Record 10 | 11 | EOF -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_configuration_session_summary.textfsm: -------------------------------------------------------------------------------- 1 | Value SESSION_NAME (\S+) 2 | Value SESSION_OWNER (\S+) 3 | Value CREATION_TIME (\S+\s\S+\s\S+\s\S+\s\S+) 4 | 5 | Start 6 | ^Name -> Session 7 | 8 | Session 9 | ^Number 10 | ^${SESSION_NAME}\s+${SESSION_OWNER}\s+${CREATION_TIME} -> Record 11 | 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_force10_show_ip_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+ \S+) 2 | Value IP_ADDRESS (\S+) 3 | Value OK (YES|NO) 4 | Value METHOD (None|Manual) 5 | Value STATUS (up|down) 6 | Value PROTO (up|down) 7 | 8 | Start 9 | ^${INTERFACE}\s+${IP_ADDRESS}\s+${OK}\s+${METHOD}\s+${STATUS}\s+${PROTO} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_smartax_display_temperature.textfsm: -------------------------------------------------------------------------------- 1 | Value SLOTID (\d+) 2 | Value BOARDNAME (\S+) 3 | Value TEMPERATURE_C (\d+) 4 | Value TEMPERATURE_D (\d+) 5 | 6 | Start 7 | ^\s+SlotID:\s+${SLOTID}\s+BoardName:\s+${BOARDNAME}\s+ Temperature:\s+${TEMPERATURE_C}C\(\s*${TEMPERATURE_D}F\) -> Record 8 | ^\s*$$ 9 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/static/netdoc/img/README.md: -------------------------------------------------------------------------------- 1 | The Diagram feature of NetDoc has been inspired by [Netbox Topology Views Plugin](https://github.com/mattieserver/netbox-topology-views "Netbox Topology Views Plugin") by [mattieserver](https://github.com/mattieserver "mattieserver"). After few attempts, I decided to fork and integrate it within NetDoc. 2 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_static-channel-group.raw: -------------------------------------------------------------------------------- 1 | LAG Maximum : 8 2 | LAG Static Maximum: 8 3 | LAG Dynamic Maximum: 8 4 | LAG Static Count : 1 5 | LAG Dynamic Count : 1 6 | LAG Total Count : 2 7 | Static Aggregator: sa1 8 | Member: 9 | port1.0.23 10 | port1.0.24 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_mac-address-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac-address-table", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac-address-table" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_mac-address-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac-address-table", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac-address-table" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: SW1 2 | site: test-site 3 | model: Unknown Cisco device 4 | manufacturer: Cisco 5 | address: 172.25.82.41/24 6 | serial: FF1045C5 7 | - name: SW2 8 | site: test-site 9 | model: Unknown device 10 | manufacturer: Unknown 11 | address: null 12 | serial: "" 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/ipaddresses.yml: -------------------------------------------------------------------------------- 1 | - address: 10.0.1.1/24 2 | vrf: red 3 | - address: 10.0.2.1/24 4 | vrf: blue 5 | - address: 172.25.82.41/24 6 | vrf: management 7 | - address: 192.168.0.1/24 8 | vrf: null 9 | - address: 192.168.3.1/24 10 | vrf: null 11 | - address: 192.168.100.1/24 12 | vrf: red 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_eigrp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip eigrp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip eigrp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_interfaces_trunk.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces trunk", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interfaces trunk" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_bgp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip bgp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip bgp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_ospf_neighbor.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip ospf neighbor", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip ospf neighbor" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_eigrp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip eigrp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip eigrp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_eigrp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip eigrp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip eigrp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_ipv4_vrf_all_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ipv4 vrf all interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show ipv4 interface" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_route_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show route vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show route", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_xr" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_device_manuinfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display device manuinfo", 4 | "enable": true, 5 | "order": 7, 6 | "template": "display device manuinfo" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_vpn-instance.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display ip vpn-instance", 4 | "enable": true, 5 | "order": 3, 6 | "template": "display ip vpn-instance" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/checkpoint_gaia_show_version_all.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S+) 2 | Value BUILD (\S+) 3 | Value KERNEL (\S+) 4 | Value ARCHITECTURE (\S+) 5 | 6 | Start 7 | ^Product version Check Point Gaia\s${VERSION} 8 | ^OS build\s${BUILD} 9 | ^OS kernel version\s${KERNEL} 10 | ^OS edition\s${ARCHITECTURE}-bit -> Record 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_comware_display_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+.\d+.\d+.\d+) 2 | Value MAC_ADDRESS (\w+-\w+-\w+) 3 | Value VLAN_ID (\S+|\d+) 4 | Value INTERFACE (\S+) 5 | Value AGING (\d+) 6 | Value TYPE (\S+) 7 | 8 | Start 9 | ^${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${VLAN_ID}\s+${INTERFACE}\s+${AGING}\s+${TYPE} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_ip_interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show ip interface" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_etherchannel_summary.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show etherchannel summary", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show etherchannel summary" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_lldp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_eigrp_neighbors.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip eigrp neighbors", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip eigrp neighbors" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_interface_switchport.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface switchport", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interface switchport" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_port-channel_summary.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show port-channel summary", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show port-channel summary" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_interface_switchport.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface switchport", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interface switchport" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_port-channel_summary.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show port-channel summary", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show port-channel summary" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-show_running-config_include_hostname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show running-config | include hostname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_xr" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/arps.yml: -------------------------------------------------------------------------------- 1 | - device: ROUTER1 2 | interface: te1/0/3 3 | ip_address: 10.1.102.73 4 | mac_address: 00:1E:C1:DC:FC:01 5 | vendor: 3COM EUROPE LTD 6 | - device: ROUTER1 7 | interface: te1/0/3 8 | ip_address: 10.1.102.74 9 | mac_address: 2C:23:3A:40:7E:18 10 | vendor: Hewlett Packard 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_routing-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display ip routing-table", 4 | "enable": true, 5 | "order": 100, 6 | "template": "display ip routing-table" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/macaddresses.yml: -------------------------------------------------------------------------------- 1 | - device: ROUTER1 2 | interface: te0/0/1 3 | vlan: 10 4 | mac_address: B8:D6:F6:FF:73:90 5 | vendor: HUAWEI TECHNOLOGIES CO.,LTD 6 | - device: ROUTER1 7 | interface: te0/0/1 8 | vlan: 10 9 | mac_address: B8:D6:F6:FF:73:9B 10 | vendor: HUAWEI TECHNOLOGIES CO.,LTD 11 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/logs/10.1.1.10-show_routing_route.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "", 4 | "enable": false, 5 | "order": 128, 6 | "template": "show routing route" 7 | }, 8 | "discoverable__mode": "xml_panw_ngfw" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/xml_panw_ngfw/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 1.2.3.0/24 2 | vrf: vrf-external 3 | site: test-site 4 | - prefix: 10.10.9.0/24 5 | vrf: vrf-external 6 | site: test-site 7 | - prefix: 10.10.7.0/24 8 | vrf: vrf-internal 9 | site: test-site 10 | - prefix: 10.13.4.0/30 11 | vrf: vrf-internal 12 | site: test-site 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_file_systems.textfsm: -------------------------------------------------------------------------------- 1 | Value SIZE (\S+) 2 | Value FREE (\S+) 3 | Value TYPE (\S+) 4 | Value FLAGS (\S+) 5 | Value PREFIXES (\S+) 6 | 7 | Start 8 | ^\s*Size -> FILE_SYSTEM 9 | 10 | FILE_SYSTEM 11 | ^\s*${SIZE}\s+${FREE}\s+${TYPE}\s+${FLAGS}\s+${PREFIXES}\s*$$ -> Record 12 | ^\s*$$ 13 | 14 | EOF 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_nic.textfsm: -------------------------------------------------------------------------------- 1 | Value SLOTID (\d+) 2 | Value ADAPTER (.+?) 3 | Value VENDOR (\d+) 4 | Value DEVID (\d+) 5 | Value MODE (\w+) 6 | Value DEVNO (\w+) 7 | Value PNICS (\[.+\]) 8 | 9 | Start 10 | ^${SLOTID}\s+${ADAPTER}\s+${VENDOR}\s+${DEVID}\s+${MODE}\s+${DEVNO}\s+${PNICS} -> Record 11 | 12 | EOF -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.textfsm: -------------------------------------------------------------------------------- 1 | Value Required VRF (\S+) 2 | Value RD (\S+) 3 | Value STATE (\w+) 4 | Value LOCAL_AS_NUMBER (\S+) 5 | 6 | Start 7 | ^BGP\s+VRF\s+${VRF},\s+state:\s+${STATE} 8 | ^BGP Route Distinguisher:\s+${RD} 9 | ^.*,\slocal\sAS\snumber\s${LOCAL_AS_NUMBER} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_interfaces_switchport.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces switchport", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interfaces switchport" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_mac_address-table_dynamic.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac address-table dynamic", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac address-table" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_cdp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show cdp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show cdp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_etherchannel_summary.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show etherchannel summary", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show etherchannel summary" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_arp_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_arp_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_lldp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_arp_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_arp_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_lldp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: ROUTER1 2 | site: test-site 3 | model: Unknown HPE device 4 | manufacturer: HPE 5 | address: null 6 | serial: "11111111111111110000" 7 | - name: ROUTER2 8 | site: test-site 9 | model: Unknown HPE device 10 | manufacturer: HPE 11 | address: null 12 | serial: "" 13 | -------------------------------------------------------------------------------- /scripts/lab_import.py: -------------------------------------------------------------------------------- 1 | """Blank the current database and load a specific scenario. 2 | 3 | Usage: 4 | /opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py shell < lab_import.py 5 | """ 6 | from netdoc.tests.test import load_scenario 7 | 8 | LAB_DIR = "netdoc/tests/netmiko_allied_telesis_awplus/lab1" 9 | 10 | load_scenario(LAB_DIR) 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_vrf_interface.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value NAME (\S+) 3 | Value ID (\S+) 4 | Value ORIGIN (\S+) 5 | 6 | Start 7 | ^Interface\s+VRF-Name\s+VRF-ID\s+Site-of-Origin -> Start_record 8 | 9 | Start_record 10 | ^${INTERFACE}\s+${NAME}\s+${ID}\s+${ORIGIN} -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/fortinet_get_system_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value AGE (\d+) 3 | Value MAC_ADDRESS (\S+) 4 | Value INTERFACE (.*) 5 | 6 | Start 7 | ^${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${INTERFACE} -> Record 8 | ^Address\s+Age(min)\s+Hardware\s+Addr\s+Interface\s*$$ 9 | ^\s* 10 | ^. -> Error 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_interfaces_switchport.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interfaces switchport", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show interfaces switchport" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_lldp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors detail", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_mac_address-table_dynamic.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac address-table dynamic", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac address-table" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_mac_address-table_dynamic.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac address-table dynamic", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac address-table" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_nxos" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/logs/169.254.1.1-admin_show_inventory.raw: -------------------------------------------------------------------------------- 1 | 2 | Thu Aug 17 17:57:20.850 Italy 3 | NAME: "module 0/RSP0/CPU0", DESCR: "ASR9K Fabric, Controller, 4G memory" 4 | PID: A9K-RSP-4G, VID: V03, SN: FOC14100005 5 | 6 | NAME: "chassis ASR-9006-DC", DESCR: "ASR-9006 DC Chassis" 7 | PID: ASR-9006-DC, VID: V01, SN: FOX150000XQ 8 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_lldp_info_remote-device.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp info remote-device", 4 | "enable": true, 5 | "order": 10, 6 | "template": "show lldp info remote-device" 7 | }, 8 | "discoverable__mode": "netmiko_hp_procurve" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_ip_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value AGE (\S+) 3 | Value MAC_ADDRESS (\S+) 4 | Value INTERFACE (.*) 5 | Value Filldown VRF (\S+) 6 | 7 | Start 8 | ^VRF:\s+${VRF} 9 | ^Address 10 | ^${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${INTERFACE} -> Record 11 | ^. -> Error 12 | 13 | EOF 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_ipv6_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE (\S+) 2 | Value Required IPV6_ADDRESS ([a-zA-Z0-9:/]+) 3 | Value LINKIPADDR ([a-zA-Z0-9:/]+) 4 | Value STATUS (\S+/\S+) 5 | Value PROTO (\S+) 6 | 7 | Start 8 | ^${INTERFACE}\s+${IPV6_ADDRESS}\s+${STATUS}/${PROTO} 9 | ^\s+${LINKIPADDR} -> Record 10 | 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_pim_neighbor.textfsm: -------------------------------------------------------------------------------- 1 | Value NEIGHBOR (\S+) 2 | Value INTERFACE (\S+) 3 | Value UPTIME ((\S+(\s\S+)*)) 4 | Value EXPIRES (\S+) 5 | Value DR (\d+) 6 | Value PRI (\S+) 7 | Value FLAGS ((\S+(\s\S+)*)) 8 | 9 | Start 10 | ^${NEIGHBOR}(\*)*\s+${INTERFACE}\s+${UPTIME}\s+${EXPIRES}\s+${DR}\s+(\(${PRI}\))?\s+${FLAGS} -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/paloalto_panos_show_counter_global.textfsm: -------------------------------------------------------------------------------- 1 | Value NAME (\S+) 2 | Value VALUE (\d+) 3 | Value RATE (\d+) 4 | Value SEVERITY (\S+) 5 | Value CATEGORY (\S+) 6 | Value ASPECT (\S+) 7 | Value DESCRIPTION ([\S+\s+]+) 8 | 9 | Start 10 | ^${NAME}\s+${VALUE}\s+${RATE}\s+${SEVERITY}\s+${CATEGORY}\s+${ASPECT}\s+${DESCRIPTION} -> Record 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_mac_address-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac address-table", 4 | "enable": true, 5 | "order": 51, 6 | "template": "show mac address-table" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_mac_address-table_dynamic.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show mac address-table dynamic", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show mac address-table" 7 | }, 8 | "discoverable__mode": "netmiko_cisco_ios_telnet" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_arp_vrf_default.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf default", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "default" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_arp_vrf_default.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf default", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "default" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /scripts/update_templates.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | URL="https://github.com/networktocode/ntc-templates/archive/refs/heads/master.zip" 4 | 5 | wget -q $URL 6 | rm -rf netdoc/ntc_templates ntc-templates-master 7 | unzip -qq master.zip 8 | mv ntc-templates-master/ntc_templates/templates netdoc/ntc_templates 9 | rm -rf master.zip ntc-templates-master 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/paloalto_panos_show_interface_hardware.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value ID (\S+) 3 | Value SPEED (\[n/a\]|\S+) 4 | Value DUPLEX (\[n/a\]|\S+) 5 | Value STATE (\S+) 6 | Value MAC_ADDRESS ([a-fA-F0-9]{2}(\:[a-fA-F0-9]{2}){5}) 7 | 8 | Start 9 | ^${INTERFACE}\s+${ID}\s+${SPEED}/${DUPLEX}/${STATE}\s+${MAC_ADDRESS} -> Record 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_lldp_neighbors-info_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbor-info detail", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show lldp neighbors-info detail" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab2/logs/169.254.1.1-show_lldp_neighbors-info_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbor-info detail", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show lldp neighbors-info detail" 7 | }, 8 | "discoverable__mode": "netmiko_aruba_aoscx" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp_vrf_management.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip arp vrf management", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip arp", 7 | "vrf": "management" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_interface_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_interface_vrf_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf red", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "red" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_link-aggregation_verbose.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display link-aggregation verbose", 4 | "enable": true, 5 | "order": 7, 6 | "template": "display link-aggregation verbose" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_ip_helper-address.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE (\S+) 2 | Value List IP_HELPER (\d+\.\d+\.\d+\.\d+|\S+) 3 | 4 | Start 5 | ^DHCP 6 | ^Interface -> Continue.Record 7 | ^Interface:\s+${INTERFACE}$$ 8 | ^\s+DHCP\s+Smart 9 | ^\s+DHCP\s+servers:\s+${IP_HELPER}$$ 10 | ^\s+${IP_HELPER}$$ 11 | ^$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_procurve_show_mac-address.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS ([0-9a-fA-F]{6}-[0-9a-fA-F]{6}) 2 | Value PORT (\S+) 3 | Value VLAN_ID (\d+) 4 | 5 | Start 6 | ^\s*--- -> Start_record 7 | 8 | Start_record 9 | ^\s+${MAC_ADDRESS}\s+${PORT}\s+${VLAN_ID} -> Record 10 | ^\s+${MAC_ADDRESS}\s+${PORT} -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_etherchannel_summary.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show etherchannel summary", 4 | "enable": true, 5 | "order": 5, 6 | "template": "show etherchannel summary" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_interface_switchport.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show interface switchport", 4 | "enable": true, 5 | "order": 3, 6 | "template": "show interface switchport" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_mac_address-table.raw: -------------------------------------------------------------------------------- 1 | VLAN port mac fwd 2 | 900 sa1 0009.0f09.0000 forward dynamic 3 | 900 sa1 0015.5d00.ab14 forward dynamic 4 | 900 sa1 0015.5d00.ab15 forward dynamic 5 | 989 port1.0.19 0050.566a.1aca forward dynamic 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_static-channel-group.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show static-channel-group", 4 | "enable": true, 5 | "order": 4, 6 | "template": "show static-channel-group" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_interface_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_interface_vrf_blue.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf blue", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "blue" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_current-configuration_include_sysname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display current-configuration | include sysname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.2-display_current-configuration_include_sysname.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display current-configuration | include sysname", 4 | "enable": true, 5 | "order": 0, 6 | "template": "HOSTNAME" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_arp.raw: -------------------------------------------------------------------------------- 1 | 2 | IP ARP table 3 | 4 | IP Address MAC Address Type Port 5 | --------------- ----------------- ------- ---- 6 | 192.168.1.100 000000-000000 dynamic 7 | 192.168.1.101 000424-0000a1 dynamic 1/1 8 | 10.10.1.1 001b17-0000b1 dynamic 1/2 9 | 10 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include netdoc/api * 2 | recursive-include netdoc/jobs * 3 | recursive-include netdoc/library * 4 | recursive-include netdoc/ntc_templates * 5 | recursive-include netdoc/reports * 6 | recursive-include netdoc/scripts * 7 | recursive-include netdoc/static * 8 | recursive-include netdoc/templates * 9 | recursive-include netdoc/templatetags * 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE ([\w+/]+) 2 | Value INTF_STATE (up|down|admin-down) 3 | Value LINEP_STATE (up|down|admin-down) 4 | Value ENCAP_TYPE (\S+) 5 | Value MTU (\d+) 6 | Value INT_BW (\d+) 7 | 8 | 9 | Start 10 | ^\s+${INTERFACE}\s+${INTF_STATE}\s+${LINEP_STATE}\s+${ENCAP_TYPE}\s+${MTU}\s+${INT_BW} -> Record 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_inventory.textfsm: -------------------------------------------------------------------------------- 1 | Value NAME (.*) 2 | Value DESCR (.*) 3 | Value PID (([\S+]+|.*)) 4 | Value VID (\S+) 5 | Value SN ([\w+\d+]+) 6 | 7 | Start 8 | ^\S{3}\s+\S{3}\s+\d{1,2}\s+\d+:\d+:\d+ 9 | ^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}" 10 | ^PID\:\s+${PID}\s+,\s+VID\:\s+${VID}\s*\,\s+SN\:\s+${SN} -> Record 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/watchguard_firebox_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value IP_ADDRESS ([0-9.]+) 3 | Value MAC_ADDRESS ([0-9a-fA-F:]+|incomplete) 4 | 5 | Start 6 | ^-- 7 | ^--\s+ARP\s+Table 8 | ^-- 9 | ^\?\s+\(${IP_ADDRESS}\)\s+at\s+<*${MAC_ADDRESS}>*\s+(\[\S+\]\s*)?([A-Z]+\s*)?on\s+${INTERFACE} -> Record 10 | ^\s*$$ 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: 6F-SH210-5 2 | site: test-site 3 | model: "x230-28GT" 4 | manufacturer: Allied Telesis 5 | address: "192.168.254.220/24" 6 | serial: "G22TG6001" 7 | - name: 6F-SH210-1 8 | site: test-site 9 | model: Unknown device 10 | manufacturer: Unknown 11 | address: null 12 | serial: "" 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/discoverables.yml: -------------------------------------------------------------------------------- 1 | - address: 192.168.254.220 2 | device: 6F-SH210-5 3 | site: test-site 4 | credential: test-credential 5 | mode: netmiko_allied_telesis_awplus 6 | - address: 192.168.254.201 7 | device: null 8 | site: test-site 9 | credential: test-credential 10 | mode: netmiko_allied_telesis_awplus 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_allied_telesis_awplus/lab1/logs/192.168.254.220-show_lldp_neighbors_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show lldp neighbors detail", 4 | "enable": true, 5 | "order": 6, 6 | "template": "show lldp neighbors detail" 7 | }, 8 | "discoverable__mode": "netmiko_allied_telesis_awplus" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_arp.raw: -------------------------------------------------------------------------------- 1 | Protocol Address Age (min) Hardware Addr Type Interface 2 | Internet 192.168.0.1 - aabb.cc00.1401 ARPA Ethernet1/0 3 | Internet 192.168.3.1 - aabb.cc00.1401 ARPA Ethernet1/0.7 4 | Internet 192.168.3.2 2 aabb.cc00.1301 ARPA Ethernet1/0.7 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_ip_route_vrf_management.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf management", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route", 7 | "vrf": "management" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_arp.raw: -------------------------------------------------------------------------------- 1 | Type: S-Static D-Dynamic O-Openflow R-Rule M-Multiport I-Invalid 2 | IP address MAC address VLAN Interface Aging Type 3 | 10.1.102.73 001e-c1dc-fc01 1 XGE1/0/3 16 D 4 | 10.1.102.74 2c23-3a40-7e18 1 XGE1/0/3 5 D -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_capability_feature_routing.textfsm: -------------------------------------------------------------------------------- 1 | Value FEATURE ((\S+(\s)*)+) 2 | Value STATE (\w+) 3 | 4 | Start 5 | ^Displaying capability information for all available features: 6 | ^${FEATURE}:\s${STATE} -> Record 7 | # Capture time-stamp if vty line has command time-stamping turned on 8 | ^Load\s+for\s+ 9 | ^Time\s+source\s+is 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_vrp_display_ip_vpn-instance.textfsm: -------------------------------------------------------------------------------- 1 | Value Required NAME (\S+) 2 | Value RD (\d+:\d+) 3 | Value ADDRESS_FAMILY (\S+) 4 | 5 | Start 6 | ^\s*VPN-Instance Name -> VPNInstances 7 | ^\s*Total 8 | ^\s*$$ 9 | ^. -> Error 10 | 11 | VPNInstances 12 | ^\s*${NAME}\s+${RD}\s+${ADDRESS_FAMILY}\s* -> Record 13 | ^\s*$$ 14 | ^. -> Error 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/paloalto_panos_show_mac_all.textfsm: -------------------------------------------------------------------------------- 1 | Value VLAN_ID (\S+) 2 | Value MAC_ADDRESS ([0-9a-fA-F:]+) 3 | Value INTERFACE (\S+) 4 | Value STATUS (\S+) 5 | Value TTL (\d+) 6 | 7 | Start 8 | ^\s*--- -> Start_record 9 | 10 | Start_record 11 | ^${VLAN_ID}\s+${MAC_ADDRESS}\s+${INTERFACE}\s+${STATUS}\s+${TTL} -> Record 12 | ^\s*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ruckus_fastiron_show_media_validation.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE (\d\S+) 2 | Value VENDOR (\S+) 3 | Value OPTIC_DESCRIPTION (.*) 4 | Value OPTIC_TYPE (\S+) 5 | 6 | Start 7 | ^\s*Port\s+Supported\.* 8 | ^\s*-+ 9 | ^${INTERFACE}\s+\w+\s+${VENDOR}\s+Type\s+:\s+${OPTIC_DESCRIPTION}\s+\(${OPTIC_TYPE}\)\s*$$ -> Record 10 | ^. -> Error 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgerouter_show_ipv6_neighbors.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IPV6_ADDRESS (\S+) 2 | Value INTERFACE (\S+) 3 | Value MAC_ADDRESS ((?:[0-9a-fA-F]{2}\:){5}[0-9a-fA-F]{2}) 4 | Value STATE (\S+) 5 | 6 | Start 7 | ^${IPV6_ADDRESS}\s+(dev\s${INTERFACE})?\s*(lladdr\s${MAC_ADDRESS})?\s*(router\s)?${STATE}\s*$$ -> Record 8 | ^\s*$$ 9 | ^. -> Error 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_route_vrf_management.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip route vrf management", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip route", 7 | "vrf": "management" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_ios_telnet" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_interface_vrf_default.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf default", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "default" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_interface_vrf_default.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf default", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "default" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/discoverers/netmiko_cisco_ios_telnet.py: -------------------------------------------------------------------------------- 1 | """Wrapper for Cisco IOS devices via Netmiko telnet.""" 2 | __author__ = "Andrea Dainese" 3 | __contact__ = "andrea@adainese.it" 4 | __copyright__ = "Copyright 2022, Andrea Dainese" 5 | __license__ = "GPLv3" 6 | 7 | from netdoc.discoverers.netmiko_cisco_ios import discovery 8 | 9 | discovery.platform = "cisco_ios_telnet" 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_force10_show_vlan_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value VLAN_ID (\d+) 2 | Value VLAN_NAME (\S+(\s\S+)*) 3 | Value STG (\d+) 4 | Value MAC_AGING (\d+) 5 | Value IP_ADDRESS ((?:[0-9]{1,3}\.){3}[0-9]{1,3}(/\d{1,2})?|\w+) 6 | 7 | Start 8 | ^\s*VLAN\s+Name -> VLAN 9 | 10 | VLAN 11 | ^\s*${VLAN_ID}\s+${VLAN_NAME}?\s+${STG}\s+${MAC_AGING}\s+${IP_ADDRESS} -> Record 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/juniper_junos_show_isis_adjacency.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value SYSTEM_ID ((\d+.\d+.\d+)|\S+) 3 | Value TYPE (\d) 4 | Value STATE (\S+) 5 | Value HOLD_TIME (\d+) 6 | Value SNPA ((\S+)?) 7 | 8 | Start 9 | ^${INTERFACE}\s+${SYSTEM_ID}\s+${TYPE}\s+${STATE}\s+${HOLD_TIME}(\s+)?${SNPA} -> Record 10 | ^\s*$$ 11 | ^{master:\d+} 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_ip_interface_vrf_management.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf management", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "management" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_ip_interface_vrf_management.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "show ip interface vrf management", 4 | "enable": true, 5 | "order": 128, 6 | "template": "show ip interface", 7 | "vrf": "management" 8 | }, 9 | "discoverable__mode": "netmiko_cisco_nxos" 10 | } 11 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_routing-table.raw: -------------------------------------------------------------------------------- 1 | dis ip routing-table 2 | 3 | Destinations : 17604 Routes : 28601 4 | 5 | Destination/Mask Proto Pre Cost NextHop Interface 6 | 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 7 | 192.168.56.0/24 Direct 0 0 192.168.56.101 XGE1/0/3 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.2-display_lldp_neighbor-information_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display lldp neighbor-information list", 4 | "enable": true, 5 | "order": 1, 6 | "template": "display lldp neighbor-information list" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/discoverers/netmiko_hp_procurve_telnet.py: -------------------------------------------------------------------------------- 1 | """Wrapper for Cisco IOS devices via Netmiko telnet.""" 2 | __author__ = "Andrea Dainese" 3 | __contact__ = "andrea@adainese.it" 4 | __copyright__ = "Copyright 2022, Andrea Dainese" 5 | __license__ = "GPLv3" 6 | 7 | from netdoc.discoverers.netmiko_hp_procurve import discovery 8 | 9 | discovery.platform = "hp_procurve_telnet" 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_mlag.textfsm: -------------------------------------------------------------------------------- 1 | Value DOMAIN (.*) 2 | Value INTERFACE (\S+) 3 | Value PEER_ADDR (\S+) 4 | Value PEER_LINK (\S+) 5 | Value STATE (\S+) 6 | 7 | Start 8 | ^domain-id\s+:\s+${DOMAIN} 9 | ^local-interface\s+:\s+${INTERFACE} 10 | ^peer-address\s+:\s+${PEER_ADDR} 11 | ^peer-link\s+:\s+${PEER_LINK} 12 | ^state\s+:\s+${STATE} -> Record 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/aruba_aoscx_show_mac-address-table.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS (\S+) 2 | Value VLAN_ID (\d+) 3 | Value TYPE (\S+) 4 | Value PORT (\S+) 5 | 6 | Start 7 | ^MAC\s+age-time.*$$ 8 | ^Number\s+of\s+MAC.*$$ 9 | ^MAC\s+Address\s+VLAN\s+Type\s+Port 10 | ^-+$$ 11 | ^${MAC_ADDRESS}\s+${VLAN_ID}\s+${TYPE}\s+${PORT} -> Record 12 | ^\s*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_vrf.textfsm: -------------------------------------------------------------------------------- 1 | Value Required NAME (\S+) 2 | Value Required ID (\S+) 3 | Value Required STATE (\S+) 4 | Value Required REASON (\S+) 5 | 6 | Start 7 | ^VRF-Name\s+VRF-ID\s+State\s+Reason -> Start_record 8 | 9 | Start_record 10 | ^${NAME}\s+${ID}\s+${STATE}\s+${REASON} -> Record 11 | ^\s+$$ 12 | ^$$ 13 | ^.* -> Error "LINE NOT FOUND" 14 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_ip_vpn-instance_instance-name_red.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display ip vpn-instance instance-name red", 4 | "enable": true, 5 | "order": 3, 6 | "template": "display ip vpn-instance instance-name" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_comware/lab1/logs/169.254.1.1-display_lldp_neighbor-information_verbose.json: -------------------------------------------------------------------------------- 1 | { 2 | "details": { 3 | "command": "display lldp neighbor-information verbose", 4 | "enable": true, 5 | "order": 1, 6 | "template": "display lldp neighbor-information verbose" 7 | }, 8 | "discoverable__mode": "netmiko_hp_comware" 9 | } 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_l2rib_internal_permanently-frozen-list.textfsm: -------------------------------------------------------------------------------- 1 | Value Required TOPOLOGY (\d+) 2 | Value Required MAC_ADDRESS (\S+\.\S+\.\S+) 3 | Value Required FROZEN_TIME (.*\S) 4 | 5 | Start 6 | ^${TOPOLOGY}\s+${MAC_ADDRESS}\s+${FROZEN_TIME} -> Record 7 | ^Topology\s+Mac Address\s+Frozen time 8 | ^-+ 9 | ^\s*$$ 10 | ^.* -> Error "LINE NOT FOUND" 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_isis_neighbors.textfsm: -------------------------------------------------------------------------------- 1 | Value SYSTEM_ID ((\d+.\d+.\d+)|\S+) 2 | Value INTERFACE (\S+) 3 | Value SNPA ((\d+.\d+.\d+)|\S+) 4 | Value STATE (\S+) 5 | Value HOLD_TIME (\d+) 6 | Value TYPE ((L\d)+) 7 | Value IETF_NSF (\S+) 8 | 9 | Start 10 | ^${SYSTEM_ID}\s+${INTERFACE}\s+${SNPA}\s+${STATE}\s+${HOLD_TIME}\s+${TYPE}\s+${IETF_NSF} -> Record 11 | -------------------------------------------------------------------------------- /netdoc/tests/json_vmware_vsphere/lab1/virtual_machines.yml: -------------------------------------------------------------------------------- 1 | - name: VCENTER 2 | cluster: cluster1 3 | device: NODE1 4 | site: test-site 5 | vcpus: 4 6 | memory: 16384 7 | disk: 335275008 8 | status: active 9 | - name: VM1 10 | cluster: cluster1 11 | device: NODE1 12 | site: test-site 13 | vcpus: 1 14 | memory: 2048 15 | disk: 16777216 16 | status: offline 17 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.11-show_vdc.raw: -------------------------------------------------------------------------------- 1 | 2 | vdc_id vdc_name state mac type lc 3 | ------ -------- ----- ---------- --------- ------ 4 | 1 NXOS11 active 50:16:00:00:1b:08 Ethernet None 5 | 6 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.12-show_vdc.raw: -------------------------------------------------------------------------------- 1 | 2 | vdc_id vdc_name state mac type lc 3 | ------ -------- ----- ---------- --------- ------ 4 | 1 NXOS12 active 50:17:00:00:1b:08 Ethernet None 5 | 6 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_snmp_community.textfsm: -------------------------------------------------------------------------------- 1 | Value NAME (\S+) 2 | Value ACCESS (\S+) 3 | Value VIEW (\S+) 4 | Value ACL (\S+) 5 | 6 | Start 7 | ^Community\sview:\s+${VIEW} 8 | ^.*list:\s+${ACL} 9 | ^Community\sname:\s+${NAME} 10 | ^Community\saccess:\s+${ACCESS} 11 | ^.* -> Record 12 | #^Community\svies:\s+${VIEW} 13 | #^Access\slist:\s+${ACL} -> Record 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_asa_show_interface_ip_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value IP_ADDRESS (\S+) 3 | Value STATUS (up|down|administratively down) 4 | Value PROTO (up|down) 5 | 6 | Start 7 | ^Interface\s+IP-Address\s+OK\?\s+Method\s+Status\s+Protocol\s*$$ 8 | ^${INTERFACE}\s+${IP_ADDRESS}\s+\w+\s+\w+\s+${STATUS}\s+${PROTO} -> Record 9 | ^\s*$$ 10 | ^. -> Error 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_mac_security_interface.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value SCI (\S+) 3 | Value CONTROLLED_PORT (\S+) 4 | Value KEY_IN_USE (\S+) 5 | 6 | Start 7 | ^Interface.*Use -> Data 8 | 9 | Data 10 | ^${INTERFACE}\s+${SCI}\s+${CONTROLLED_PORT}\s+${KEY_IN_USE} -> Record 11 | ^\s+$$ 12 | ^$$ 13 | ^.* -> Error "LINE NOT FOUND" 14 | 15 | EOF 16 | 17 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/brocade_fastiron_show_monitor.textfsm: -------------------------------------------------------------------------------- 1 | Value monitoredport ([0-9\/]+) 2 | Value inputmirror ([0-9\/\(\)\ UM]+) 3 | Value outputmirror ([0-9\/\(\)\ UM]+) 4 | 5 | Start 6 | ^\w -> Continue.Record 7 | ^Monitored Port ${monitoredport} -> Continue 8 | ^\s+Input mirrored by\s+:\s+${inputmirror} -> Continue 9 | ^\s+Output mirrored by\s+:\s+${outputmirror} -> Continue 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ciena_saos_ssh_server_show_key.textfsm: -------------------------------------------------------------------------------- 1 | Value USERNAME (\S+) 2 | Value KEY_STATUS (\S+) 3 | 4 | Start 5 | # Accounts for tabular delineations and table names 6 | ^\+\- 7 | # Account for SSH Server Key block 8 | ^\|\s+[Kk]ey 9 | ^\|\s+[Uu]sername.*[Kk]ey\s+[Ss]tatus 10 | ^\|\s*${USERNAME}\s*\S*\s*\|\s*${KEY_STATUS}\s*\| -> Record 11 | ^\s*$$ 12 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_ip_dhcp_relay_address.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value RELAY_ADDRESS (\d+.\d+.\d+.\d+) 3 | Value VRF (\S+) 4 | 5 | Start 6 | ^\s*Interface\s+Relay\s+Address\s+VRF\s+Name\s*$$ 7 | ^\s*-+ 8 | ^\s*${INTERFACE}\s+${RELAY_ADDRESS}\s*$$ -> Record 9 | ^\s*${INTERFACE}\s+${RELAY_ADDRESS}\s+${VRF}\s*$$ -> Record 10 | ^\s*$$ 11 | ^.* -> Error 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_dhcp_ipv4_proxy_binding.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value STATE (\S+) 3 | Value LEASE_REMAINING (\S+) 4 | Value MAC_ADDRESS (\S+) 5 | Value INTERFACE (\S+) 6 | Value VRF (\S+) 7 | Value SUBLABEL (\S+) 8 | 9 | Start 10 | ^${MAC_ADDRESS}\s+${IP_ADDRESS}\s+${STATE}\s+${LEASE_REMAINING}\s+${INTERFACE}\s+${VRF}\s+${SUBLABEL} -> Record 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_ipv4_vrf_all_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE ([\w\./-]+) 2 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 3 | Value STATUS (\w+) 4 | Value PROTO (\w+) 5 | Value VRF (\S+) 6 | 7 | Start 8 | ^\s*Interface\s+IP-Address\s+Status\s+Protocol(\s+Vrf-Name)?\s*$$ 9 | ^\s*${INTERFACE}\s+${IP_ADDRESS}\s+${STATUS}\s+${PROTO}(\s+${VRF})?\s*$$ -> Record 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ruckus_fastiron_show_mac-address.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS ([A-Fa-f0-9\.]{14}) 2 | Value PORT (\S+) 3 | Value TYPE (\S+) 4 | Value VLAN_ID ([0-9]*) 5 | 6 | 7 | Start 8 | ^Total\s+active\s+entries\s+from\s+all\s+ports\s+=\s+[0-9]* 9 | ^MAC-Address\s+Port\s+Type\s+VLAN 10 | ^${MAC_ADDRESS}\s+${PORT}\s+${TYPE}\s+${VLAN_ID} -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/vyatta_vyos_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+) 2 | Value TYPE (\S+) 3 | Value MAC_ADDRESS (\S+) 4 | Value FLAGS (\S+) 5 | Value INTERFACE (\S+) 6 | 7 | Start 8 | ^${IP_ADDRESS}\s+(${TYPE}|)\s+${MAC_ADDRESS}\s+(${FLAGS}|)\s+${INTERFACE}$$ -> Record 9 | ^Address\s+HWtype\s+HWaddress\s+Flags\s+Mask\s+Iface\s*$$ 10 | ^\s*$$ 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/vmware_nsxv_show_ip_route.textfsm: -------------------------------------------------------------------------------- 1 | Value PROTOCOL ([OiBCS]) 2 | Value TYPE (\w{0,2}) 3 | Value IP_ADDRESS (\d+(\.\d+){3}) 4 | Value PREFIX_LENGTH (\d{1,2}) 5 | Value DISTANCE (\d+) 6 | Value METRIC (\d+) 7 | Value NEXTHOP (\d+(\.\d+){3}) 8 | 9 | Start 10 | ^${PROTOCOL}\s+${TYPE}\s+${IP_ADDRESS}\/${PREFIX_LENGTH}\s+\[${DISTANCE}\/${METRIC}\]\s+via\s+${NEXTHOP} -> Next.Record 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_nve_peers.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value PEER (\d+.\d+.\d+.\d+) 3 | Value STATE (Up|Down) 4 | Value TYPE (\S+) 5 | Value MAC_ADDRESS (.*) 6 | 7 | Start 8 | ^Interface\s+Peer-IP\s+State\s+LearnType\s+Uptime\s+Router-Mac\s*$$ 9 | ^-+ 10 | ^${INTERFACE}\s+${PEER}\s+${STATE}\s+${TYPE}\s+\S+\s+${MAC_ADDRESS}\s+ -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/brocade_netiron_show_monitor_actual.textfsm: -------------------------------------------------------------------------------- 1 | Value monitoredport ([0-9\/]+) 2 | Value inputmirror ([0-9\/\(\)\ UM]+) 3 | Value outputmirror ([0-9\/\(\)\ UM]+) 4 | 5 | Start 6 | ^\w -> Continue.Record 7 | ^Monitored Port ${monitoredport} -> Continue 8 | ^\s+Input traffic mirrored to:\s+${inputmirror} -> Continue 9 | ^\s+Output traffic mirrored to:\s+${outputmirror} -> Continue 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_aliases.textfsm: -------------------------------------------------------------------------------- 1 | Value Filldown MODE (((\w+)(\s)?){1,}) 2 | Value ALIAS (\w+) 3 | Value COMMAND ((\w+(\s|\S))+) 4 | 5 | Start 6 | ^${MODE}\saliases: -> ALIAS 7 | # Capture time-stamp if vty line has command time-stamping turned on 8 | ^Load\s+for\s+ 9 | ^Time\s+source\s+is 10 | 11 | ALIAS 12 | ^${MODE}\saliases: -> ALIAS 13 | ^\s+${ALIAS}\s+${COMMAND} -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_ip_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value IP_ADDRESS (\S+) 3 | Value STATUS (up|down|administratively down) 4 | Value PROTO (up|down) 5 | 6 | Start 7 | ^${INTERFACE}\s+${IP_ADDRESS}\s+\w+\s+\w+\s+${STATUS}\s+${PROTO} -> Record 8 | # Capture time-stamp if vty line has command time-stamping turned on 9 | ^Load\s+for\s+ 10 | ^Time\s+source\s+is 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_wlc_ssh_show_exclusionlist.textfsm: -------------------------------------------------------------------------------- 1 | Value MAC_ADDRESS (([\da-fA-F]{2}[-:]){5}[\da-fA-F]{2}) 2 | Value COMMENT (.*) 3 | 4 | Start 5 | ^Manually\s*Disabled\s*Clients -> ManuallyDisabled 6 | ^No\s*dynamically 7 | ^\s*$$ 8 | ^. -> Error 9 | 10 | ManuallyDisabled 11 | ^--- 12 | ^MAC\s+Address\s+Description 13 | ^${MAC_ADDRESS}\s+${COMMENT} -> Record 14 | ^\s*$$ -> Start -------------------------------------------------------------------------------- /netdoc/ntc_templates/hp_procurve_show_vlans.textfsm: -------------------------------------------------------------------------------- 1 | Value VLAN_ID (\d+) 2 | Value VLAN_NAME (.*?) 3 | Value STATUS (\S+) 4 | Value VOICE (Yes|No) 5 | Value JUMBO (Yes|No) 6 | 7 | Start 8 | ^.*VLAN ID -> VLAN 9 | 10 | VLAN 11 | ^\s+${VLAN_ID}\s+${VLAN_NAME}\s+(\|\s+|)${STATUS}\s+${VOICE}(\s+${JUMBO}|)\s*$$ -> Record 12 | ^\s+-+\s+-+\s+(\+\s+|)-+\s+-+(\s+-+|)\s*$$ 13 | ^\s*$$ 14 | ^.*$$ -> Error 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/juniper_junos_show_ospf_neighbor.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+.\d+.\d+.\d+) 2 | Value INTERFACE (\S+) 3 | Value STATE (\S+) 4 | Value NEIGHBOR_ID (\d+.\d+.\d+.\d+) 5 | Value PRIORITY (\d+) 6 | Value DEAD_TIME (\d+) 7 | 8 | 9 | Start 10 | ^${IP_ADDRESS}\s+${INTERFACE}\s+${STATE}\s+${NEIGHBOR_ID}\s+${PRIORITY}\s+${DEAD_TIME} -> Record 11 | ^\s*$$ 12 | ^{master:\d+} 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgerouter_show_dhcpv6_server_leases.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IP_ADDRESS (\S+) 2 | Value EXPIRATION (\d{4}(\/\d{2}){2}\s\d{2}(:\d{2}){2}) 3 | Value STATE (\S+) 4 | 5 | Start 6 | ^IPv6\sAddress\s+Expiration\s+State\s*$$ 7 | ^-+\s+-+\s+-+\s*$$ -> DHCPv6Table 8 | 9 | DHCPv6Table 10 | ^${IP_ADDRESS}\s+${EXPIRATION}\s+${STATE}\s*$$ -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_ip_arp.raw: -------------------------------------------------------------------------------- 1 | Protocol Address Age (min) Hardware Addr Type Interface 2 | Internet 192.168.1.1 - 5001.0018.8004 ARPA Vlan4 3 | Internet 192.168.1.11 5 5016.0000.1b08 ARPA Vlan4 4 | Internet 192.168.1.12 4 5017.0000.1b08 ARPA Vlan4 5 | Internet 192.168.1.254 4 0000.0c07.ac04 ARPA Vlan4 -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/routes.yml: -------------------------------------------------------------------------------- 1 | - device: DISCOVERY 2 | destination: 0.0.0.0/0 3 | protocol: u 4 | distance: null 5 | metric: null 6 | nexthop_ip: 172.16.100.254 7 | nexthop_if: ens18 8 | vrf: null 9 | - device: DISCOVERY 10 | destination: 172.16.100.0/24 11 | protocol: u 12 | distance: null 13 | metric: null 14 | nexthop_ip: null 15 | nexthop_if: ens18 16 | vrf: null 17 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_clock.textfsm: -------------------------------------------------------------------------------- 1 | Value TIME (\d+:\d+:\d+\.\d+) 2 | Value TIMEZONE (\w+) 3 | Value DAYWEEK (\w+) 4 | Value MONTH (\w+) 5 | Value DAY (\d+) 6 | Value YEAR (\d+) 7 | 8 | Start 9 | ^[\*]?${TIME}\s${TIMEZONE}\s${DAYWEEK}\s${MONTH}\s${DAY}\s${YEAR} -> Record 10 | # Capture time-stamp if vty line has command time-stamping turned on 11 | ^Load\s+for\s+ 12 | ^Time\s+source\s+is 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_mac_address-table.textfsm: -------------------------------------------------------------------------------- 1 | Value VLAN_ID (\S+) 2 | Value MAC_ADDRESS (\S+) 3 | Value TYPE (\S+) 4 | Value AGE (\S+) 5 | Value SECURE ([TF]) 6 | Value NTFY ([TF]) 7 | Value PORTS (\S+) 8 | 9 | Start 10 | ^VLAN\s+MAC\s+Address\s+Type\s+age\s+Secure\s+NTFY\s+Ports -> Continue 11 | ^.*\s${VLAN_ID}\s+${MAC_ADDRESS}\s+${TYPE}\s+${AGE}\s+${SECURE}\s+${NTFY}\s+${PORTS} -> Record 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_force10_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS ((?:[0-9]{1,3}\.){3}[0-9]{1,3}) 2 | Value MAC_ADDRESS ((?:[0-9a-fA-F]{2}\:){5}[0-9a-fA-F]{2}) 3 | Value PORT (\w{2} \d{1,2}\/\d{1,2}|\-) 4 | Value AGE (\d+|\-) 5 | Value VLAN_ID (\d+|\-) 6 | 7 | Start 8 | ^Protocol\s+Address -> ARP 9 | 10 | ARP 11 | ^Internet\s+${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${PORT}\s+(Vl )?${VLAN_ID} -> Record 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_huawei_vrp/lab1/logs/169.254.1.1-display_ip_vpn-instance.raw: -------------------------------------------------------------------------------- 1 | Total VPN-Instances configured : 1 2 | Total IPv4 VPN-Instances configured : 1 3 | Total IPv6 VPN-Instances configured : 1 4 | 5 | VPN-Instance Name RD Address-family 6 | red 1:2 IPv4 7 | red 1:2 IPv6 8 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_power_supplies.textfsm: -------------------------------------------------------------------------------- 1 | #### 2 | # For 4500 switches 3 | ### 4 | Value PS_NEEDED (\d) 5 | Value PS_AVAIL (\d) 6 | 7 | Start 8 | ^Power\ssupplies\sneeded\sby\ssystem\s+:\s${PS_NEEDED} -> Continue 9 | ^Power\ssupplies\scurrently\savailable\s+:\s${PS_AVAIL} 10 | # Capture time-stamp if vty line has command time-stamping turned on 11 | ^Load\s+for\s+ 12 | ^Time\s+source\s+is 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_vdc.textfsm: -------------------------------------------------------------------------------- 1 | Value VDC_ID (\d+) 2 | Value VDC_NAME (\S+) 3 | Value STATE (\S+) 4 | Value MAC_ADDRESS (\S+) 5 | Value TYPE (\S+) 6 | Value LC (\S+) 7 | 8 | Start 9 | ^[Ss]witchwide\s+mode 10 | ^vdc_id\s+vdc_name\s+state\s+mac\s+type\s+lc\s*$$ 11 | ^-+ 12 | ^\s*${VDC_ID}\s+${VDC_NAME}\s+${STATE}\s+${MAC_ADDRESS}\s+${TYPE}\s+${LC} -> Record 13 | ^\s*$$ 14 | ^. -> Error 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_admin_show_environment_power.textfsm: -------------------------------------------------------------------------------- 1 | Value Filldown POWER_GROUP (\d+) 2 | Value Required POWER_MODULE (\d+\/PM\d+) 3 | Value Required SUPPLY_TYPE (\S+) 4 | Value Required STATUS (OK|Failed) 5 | 6 | Start 7 | ^.*\=+ -> Parse 8 | 9 | Parse 10 | ^Power\sGroup+\s+${POWER_GROUP} -> Record 11 | ^\s+${POWER_MODULE}\s+${SUPPLY_TYPE}+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+${STATUS} -> Record 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/dell_powerconnect_show_bridge_address_table.textfsm: -------------------------------------------------------------------------------- 1 | Value DESTINATION_ADDRESS ((\w\w:){5}\w\w) 2 | Value TYPE (dynamic|self) 3 | Value VLAN_ID (\w+) 4 | Value DESTINATION_PORT (\S+) 5 | 6 | Start 7 | ^\s+Vlan\s+Mac\s+Address\s+Port\s+Type -> Begin 8 | 9 | Begin 10 | ^-+ 11 | ^Aging 12 | ^\s+${VLAN_ID}\s+${DESTINATION_ADDRESS}\s+${DESTINATION_PORT}\s+${TYPE} -> Record 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/huawei_vrp_display_mac-address.textfsm: -------------------------------------------------------------------------------- 1 | Value DESTINATION_ADDRESS ([0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}) 2 | Value DESTINATION_PORT ([^,\s]+) 3 | Value TYPE (\S+) 4 | Value VLAN_ID (\d+) 5 | 6 | Start 7 | ^-+$$ 8 | ^\s+$$ 9 | ^MAC\s+Address 10 | ^${DESTINATION_ADDRESS}\s+${VLAN_ID}/([^/]+)/([^/]+)\s+${DESTINATION_PORT}\s+${TYPE} -> Record 11 | ^Total\s+items 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_aruba_oscx/lab1/logs/169.254.1.1-show_mac-address-table.raw: -------------------------------------------------------------------------------- 1 | MAC age-time : 300 seconds 2 | Number of MAC addresses : 229 3 | 4 | MAC Address VLAN Type Port 5 | -------------------------------------------------------------- 6 | bc:d7:a5:bf:00:40 3072 dynamic lag1 7 | b8:d4:e7:07:00:00 3072 dynamic lag1 8 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_trunks.raw: -------------------------------------------------------------------------------- 1 | 2 | Load Balancing Method: L3-based (default) 3 | 4 | Port | Name Type | Group Type 5 | ------ + -------------------------------- ---------- + ----- -------- 6 | 1/1 | Trk1_to_SW03 100/1000T | Trk1 LACP 7 | 1/2 | Trk1_to_SW03 100/1000T | Trk1 LACP 8 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/aruba_os_show_ipv6_interface_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+\s\S+|\S+) 2 | Value List IPV6_ADDRESS (\S+) 3 | Value ADMIN (\S+) 4 | Value PROTOCOL (\S+) 5 | 6 | Start 7 | ^${INTERFACE}\s+\[\s+${ADMIN}/${PROTOCOL}\s+\] -> Interfaces 8 | 9 | Interfaces 10 | ^(\S+\s\S+|\S+)\s+\[\s+(\S+)/(\S+)\s+\] -> Continue.Record 11 | ^${INTERFACE}\s+\[\s+${ADMIN}/${PROTOCOL}\s+\] 12 | ^\s+${IPV6_ADDRESS} 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/linux_arp_-a.textfsm: -------------------------------------------------------------------------------- 1 | Value REV_DNS (\S+) 2 | Value IP_ADDRESS (\S+) 3 | Value MAC_ADDRESS (\S+) 4 | Value HW_TYPE (\S+) 5 | Value INTERFACE (\S+) 6 | 7 | Start 8 | ^${REV_DNS}\s+\(${IP_ADDRESS}\)\s+\S+\s+${MAC_ADDRESS}\s+\[${HW_TYPE}\]\s+\S+\s+${INTERFACE}$$ -> Record 9 | ^${REV_DNS}\s+\(${IP_ADDRESS}\)\s+\S+\s+<${MAC_ADDRESS}>\s+\S+\s+${INTERFACE}$$ -> Record 10 | ^\s*$$ 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/templates/netdoc/buttons/export.html: -------------------------------------------------------------------------------- 1 | {% comment %} 2 | __author__ = "Andrea Dainese" 3 | __contact__ = "andrea@adainese.it" 4 | __copyright__ = "Copyright 2022, Andrea Dainese" 5 | __license__ = "GPLv3" 6 | 7 | Used in templatetags/netdoc_buttons.py 8 | {% endcomment %} 9 | 10 |  Export 11 | 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_asa_show_inventory.textfsm: -------------------------------------------------------------------------------- 1 | Value NAME (.*) 2 | Value DESCR (.*) 3 | Value PID (\S+) 4 | Value VID (\S+) 5 | Value SN (\S+) 6 | 7 | Start 8 | ^Name:\s+"${NAME}"\s*,\s+DESCR:\s+"${DESCR}" 9 | ^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN:\s+${SN} -> Record 10 | ^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN: -> Record 11 | ^\s*$$ 12 | ^show_inventory_all\s+\S+ -> NoRecord 13 | ^.+ -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_interface_transceiver.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\w+\d+\/\S+) 2 | Value TEMPERATURE (\d+.\d+) 3 | Value VOLTAGE (\d+.\d+) 4 | Value TX_PWR (\S+) 5 | Value RX_PWR (\S+) 6 | 7 | Start 8 | ^${INTERFACE}\s+${TEMPERATURE}\s+${VOLTAGE}\s+${TX_PWR}\s+${RX_PWR}\s+ -> Record 9 | # Capture time-stamp if vty line has command time-stamping turned on 10 | ^Load\s+for\s+ 11 | ^Time\s+source\s+is 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_running-config_snmp_group.textfsm: -------------------------------------------------------------------------------- 1 | Value GROUPNAME ([-\w]+) 2 | Value VERSION (\d) 3 | Value PRIVILEDGE (\w+) 4 | Value WRITE (\w+) 5 | Value READ (\w+) 6 | Value NOTIFY (\w+) 7 | 8 | 9 | Start 10 | ^snmp\sgroup\s${GROUPNAME}\s\S+\s${VERSION}\s${PRIVILEDGE} 11 | ^\swrite\s+${WRITE} 12 | ^\sread\s+${READ} 13 | ^\snotify\s+${NOTIFY} 14 | ^! -> Record 15 | 16 | EOF -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_ip_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value Required AGE (\S+) 3 | Value Required MAC_ADDRESS (\S+) 4 | Value INTERFACE (\S+) 5 | 6 | Start 7 | ^Address\s+Age\s+MAC Address\s+Interface -> Start_record 8 | 9 | Start_record 10 | ^${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${INTERFACE} -> Record 11 | ^\s+$$ 12 | ^$$ 13 | ^.* -> Error "LINE NOT FOUND" 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/juniper_junos_show_arp_no-resolve.textfsm: -------------------------------------------------------------------------------- 1 | Value Required MAC_ADDRESS ([A-Fa-f0-9\:]{17}) 2 | Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+) 3 | Value Required INTERFACE (\S+) 4 | Value FLAGS (\S+) 5 | 6 | Start 7 | ^MAC\s+Address\s+Address\s+Interface\s+Flags\s*$$ 8 | ^${MAC_ADDRESS}\s+${IP_ADDRESS}\s+${INTERFACE}\s+${FLAGS} -> Record 9 | ^Total.* 10 | ^\s*$$ 11 | ^{master:\d+} 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/juniper_junos_show_vlans.textfsm: -------------------------------------------------------------------------------- 1 | Value ROUTING_INSTANCE (\S+) 2 | Value VLAN_NAME (\S+) 3 | Value TAG (\d+) 4 | Value List INTERFACES (\S+) 5 | 6 | Start 7 | ^Routing\sinstance\s+VLAN\sname\s+Tag\s+Interfaces$$ -> VLAN 8 | 9 | VLAN 10 | ^\S -> Continue.Record 11 | ^${ROUTING_INSTANCE}\s+${VLAN_NAME}\s+${TAG}\s*$$ 12 | ^\s+${INTERFACES}$$ 13 | ^\s*$$ 14 | ^{master:\d+} 15 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/tests/netmiko_linux/lab1/logs/169.254.1.1-ip_link_show.raw: -------------------------------------------------------------------------------- 1 | 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 2 | link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 3 | 2: ens18: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 4 | link/ether ce:50:e0:14:87:6f brd ff:ff:ff:ff:ff:ff 5 | altname enp0s18 6 | -------------------------------------------------------------------------------- /scripts/update_dependencies.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | wget -O- https://visjs.github.io/vis-network/standalone/umd/vis-network.min.js > netdoc/static/netdoc/js/vis-network.min.js 4 | wget -O- https://visjs.github.io/vis-network/standalone/umd/vis-network.min.js.map > netdoc/static/netdoc/js/vis-network.min.js.map 5 | wget -O- https://visjs.github.io/vis-network/dist/dist/vis-network.min.css > netdoc/static/netdoc/css/vis-network.min.css 6 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nvfis_show_running-config_system_upgrade.textfsm: -------------------------------------------------------------------------------- 1 | Value APPLY_IMAGE (\S+iso) 2 | Value SCHEDULE_TIME (\d+) 3 | Value IMAGE_NAME (\S+iso) 4 | Value IMAGE_LOCATION (\S+iso) 5 | 6 | 7 | Start 8 | ^system\supgrade\sapply-image\s${APPLY_IMAGE}\sscheduled-time\s${SCHEDULE_TIME} 9 | ^system\supgrade\simage-name\s${IMAGE_NAME} 10 | ^\slocation\s${IMAGE_LOCATION} 11 | ^! -> Record 12 | 13 | EOF -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_switching-mode.textfsm: -------------------------------------------------------------------------------- 1 | Value Filldown CONFIGURED_SWITCHING_MODE ([\S\s]+?) 2 | Value Required MODULE_NUMBER (\S+) 3 | Value Required OPERATIONAL_MODE ([\S\s]+?) 4 | 5 | Start 6 | ^\s*Configured\s*switching\s*mode:\s*${CONFIGURED_SWITCHING_MODE}\s*$$ 7 | ^\s*Module\s*Number\s*Operational\s*Mode\s*$$ 8 | ^\s*${MODULE_NUMBER}\s*${OPERATIONAL_MODE}\s*$$ -> Record 9 | ^\s*$$ 10 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/macaddresses.yml: -------------------------------------------------------------------------------- 1 | - device: SWICORE 2 | interface: 1/5 3 | vlan: 1 4 | mac_address: 00:04:24:00:00:01 5 | vendor: TMC s.r.l. 6 | - device: SWICORE 7 | interface: 1/6 8 | vlan: 1 9 | mac_address: 08:F1:EA:00:00:E0 10 | vendor: Hewlett Packard Enterprise 11 | - device: SWICORE 12 | interface: 1/5 13 | vlan: 2 14 | mac_address: A4:B1:E9:00:00:7B 15 | vendor: Technicolor 16 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_processes_cpu.textfsm: -------------------------------------------------------------------------------- 1 | Value CPU_5_SEC (\d+) 2 | Value CPU_1_MIN (\d+) 3 | Value CPU_5_MIN (\d+) 4 | Value INTERRUPTS (\d+) 5 | 6 | Start 7 | ^CPU utilization for five seconds:\W+${CPU_5_SEC}%/${INTERRUPTS}%; one minute:\W+${CPU_1_MIN}%; five minutes:\W+${CPU_5_MIN}% -> Record 8 | # Capture time-stamp if vty line has command time-stamping turned on 9 | ^Load\s+for\s+ 10 | ^Time\s+source\s+is 11 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_rep_topology.textfsm: -------------------------------------------------------------------------------- 1 | Value SWITCH (\S+) 2 | Value INTERFACE (\S+) 3 | Value EDGE (Pri|Sec) 4 | Value ROLE (Alt|Open) 5 | 6 | Start 7 | # HEADER CHECK 8 | ^REP\s+Segment\s+\d+$$ 9 | ^BridgeName\s+PortName\s+Edge\s+Role$$ 10 | ^(-+(\s+)?)+$$ -> Data 11 | ^. -> Error 12 | 13 | Data 14 | # OUTPUT 15 | ^${SWITCH}\s+${INTERFACE}\s+${EDGE}\s+${ROLE}$$ -> Record 16 | ^\s*$$ 17 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/ntc_templates/dlink_ds_show_arpentry.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 3 | Value MAC_ADDRESS (\S+) 4 | Value TYPE (\S+) 5 | 6 | Start 7 | ^\s+ARP\s+Aging\s+Time\s+:\s+\d+ 8 | ^Interface\s+IP Address\s+MAC Address\s+Type 9 | ^\-+\s+\-+\s+\-+\s+\-+$$ 10 | ^Total Entries:\s+\d+ 11 | ^${INTERFACE}\s+${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${TYPE} -> Record 12 | ^\s*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_hp_procurve/lab1/logs/169.254.1.1-show_mac-address.raw: -------------------------------------------------------------------------------- 1 | 2 | Status and Counters - Port Address Table 3 | 4 | MAC Address Port VLAN 5 | ----------------- ------------------------------- ---- 6 | 000424-000001 1/5 1 7 | 08f1ea-0000e0 1/6 1 8 | a4b1e9-00007b 1/5 2 9 | 10 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_mac_security_mka_counters.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value RX_SUCCESS (\S+) 3 | Value RX_FAILURE (\S+) 4 | Value TX_SUCCESS (\S+) 5 | Value TX_FAILURE (\S+) 6 | 7 | Start 8 | ^Interface.*Failure -> Data 9 | 10 | Data 11 | ^${INTERFACE}\s+${RX_SUCCESS}\s+${RX_FAILURE}\s+${TX_SUCCESS}\s+${TX_FAILURE} -> Record 12 | ^\s+$$ 13 | ^$$ 14 | ^.* -> Error "LINE NOT FOUND" 15 | 16 | EOF 17 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_asa_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE (\S+) 2 | Value Required IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 3 | Value Required AGE (\S+) 4 | Value Required MAC_ADDRESS (\S+) 5 | 6 | Start 7 | ^\s*${INTERFACE}\s+${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${AGE} -> Record 8 | # Capture time-stamp if vty line has command time-stamping turned on 9 | ^Load\s+for\s+ 10 | ^Time\s+source\s+is 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/paloalto_panos_show_interface_logical.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value ID (\d+) 3 | Value VSYS (\d+) 4 | Value ZONE (\S+) 5 | Value FORWARDING (\S+) 6 | Value VLAN_ID (\d+) 7 | Value IP_ADDRESS (\S+) 8 | 9 | Start 10 | ^${INTERFACE}\s+${ID}\s+${VSYS}\s+${ZONE}\s+${FORWARDING}+\s+${VLAN_ID}\s+${IP_ADDRESS} -> Record 11 | ^${INTERFACE}\s+${ID}\s+${VSYS}\s+${FORWARDING}\s+${VLAN_ID}\s+${IP_ADDRESS} -> Record 12 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_nxos/lab1/logs/169.254.1.1-show_mac_address-table_dynamic.raw: -------------------------------------------------------------------------------- 1 | Mac Address Table 2 | ------------------------------------------- 3 | 4 | Vlan Mac Address Type Ports 5 | ---- ----------- -------- ----- 6 | 4 0000.0c07.ac04 DYNAMIC Gi0/1 7 | 4 5016.0000.1b08 DYNAMIC Gi0/1 8 | 4 5017.0000.1b08 DYNAMIC Gi0/2 9 | Total Mac Addresses for this criterion: 3 -------------------------------------------------------------------------------- /netdoc/ntc_templates/brocade_fastiron_show_topo.textfsm: -------------------------------------------------------------------------------- 1 | Value topogroup (\d+) 2 | Value mastervlan (\d+) 3 | Value l2proto (MRP|STP|RSTP|VSRP|ERP) 4 | Value membervlans ([0-9\ to]+) 5 | Value controlports ([0-9\ \/eto]+) 6 | Value freeports ([0-9\ \/eto]+) 7 | 8 | Start 9 | ^Topology Group\s+${topogroup} -> Continue 10 | ^\s+master-vlan\s+${mastervlan} -> Continue 11 | ^\s+ethernet\s+([0-9\/]+)\s+${l2proto} -> Continue 12 | ^\s+Per -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_ios_show_nve_vni.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value VNI (\d+) 3 | Value MCAST_GROUP (\S+) 4 | Value STATE (Up|Down) 5 | Value MODE (L2CP|L3CP) 6 | Value BD (\d+) 7 | Value VRF (\S+) 8 | 9 | Start 10 | ^Interface\s+VNI\s+Multicast-group\s+VNI\s+state\s+Mode\s+BD\s+cfg\s+vrf\s*$$ 11 | ^${INTERFACE}\s+${VNI}\s+${MCAST_GROUP}\s+${STATE}\s+${MODE}\s+${BD}\s+CLI\s+${VRF} -> Record 12 | ^\s*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_version_brief.textfsm: -------------------------------------------------------------------------------- 1 | Value VERSION (\S[^\[]+) 2 | Value HOSTNAME (\S+) 3 | Value UPTIME (.+?) 4 | Value BOOT_IMAGE (\S+) 5 | Value FAMILY (\S+) 6 | Value MODEL (ASR \S+) 7 | 8 | 9 | Start 10 | ^\s*Cisco .+ Software, Version\s+${VERSION} 11 | ^\s*${HOSTNAME} uptime is ${UPTIME}\s*$$ 12 | ^\s*System image file is "${BOOT_IMAGE}"\s*$$ 13 | ^\s*cisco ${FAMILY}.*processor.+$$ 14 | ^\s*${MODEL}.+$$ -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgerouter_show_interfaces.textfsm: -------------------------------------------------------------------------------- 1 | Value Required INTERFACE (\w+(\.\d+)?) 2 | Value List IP_ADDRESS (\S+) 3 | Value STATE (\w) 4 | Value LINK_STATUS (\w) 5 | Value DESCRIPTION ([\w\d\-\s]+) 6 | 7 | Start 8 | ^[-\s]+ -> Interfaces 9 | 10 | Interfaces 11 | ^(\w+) -> Continue.Record 12 | ^${INTERFACE}\s+${IP_ADDRESS}\s+(${STATE}/${LINK_STATUS})(\s+${DESCRIPTION})? 13 | ^\s+${IP_ADDRESS} 14 | ^. -> Error 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgerouter_show_interfaces_ethernet_physical.textfsm: -------------------------------------------------------------------------------- 1 | Value INTERFACE (\S+) 2 | Value AUTO_NEGOTIATION (\S+) 3 | Value SPEED (\S+) 4 | Value DUPLEX (\S+) 5 | Value LINK_DETECTED (\S+) 6 | 7 | Start 8 | ^Settings for ${INTERFACE}: 9 | ^\s+Auto-negotiation:\s${AUTO_NEGOTIATION} 10 | ^\s+Speed:\s${SPEED} 11 | ^\s+Duplex:\s${DUPLEX} 12 | ^\s+Link\sdetected:\s${LINK_DETECTED} 13 | ^\s*$$ 14 | ^. -> Error 15 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/ubiquiti_edgeswitch_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value MAC_ADDRESS (\S+) 3 | Value INTERFACE (\S+) 4 | Value TYPE (\S+) 5 | Value AGE (.*) 6 | 7 | Start 8 | ^${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${INTERFACE}\s+${TYPE}\s+${AGE}.*$$ -> Record 9 | ^.+\. 10 | ^\s+IP\s+Address\s+MAC\s+Address\s+Interface\s+Type\s+Age 11 | ^-+\s+-+\s+-+\s+-+\s+-+\s*$$ 12 | ^\s*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/zyxel_os_zycli_Ethctl_media-type.textfsm: -------------------------------------------------------------------------------- 1 | Value SPEED (\w+) 2 | Value ENABLED (\w+) 3 | Value NEGOTIATED_SPEED (\w+) 4 | Value NEGOTIATED_DUPLEX (\w+) 5 | Value LINK_ACTIVE (up|down) 6 | 7 | Start 8 | ^${SPEED}-negotiation\s${ENABLED}\.\s*$$ 9 | ^The\sautonegotiated\smedia\stype\sis\s${NEGOTIATED_SPEED}\s${NEGOTIATED_DUPLEX}\sDuplex\s*$$ 10 | ^Link\sis\s${LINK_ACTIVE}\s*$$ -> Record 11 | ^\s*$$ 12 | ^. -> Error 13 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/logs/172.25.82.41-show_vrf.raw: -------------------------------------------------------------------------------- 1 | Name Default RD Protocols Interfaces 2 | blue ipv4 Et0/3 3 | management ipv4 Et0/0 4 | red ipv4 Vl1 5 | Vl100 -------------------------------------------------------------------------------- /netdoc/ntc_templates/aruba_aoscx_show_arp_all-vrfs.textfsm: -------------------------------------------------------------------------------- 1 | Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value MAC_ADDRESS (\S+) 3 | Value PORT_ID (\S+) 4 | Value PHYSICAL_PORT (\S+) 5 | Value STATE ([a-z]+) 6 | Value VRF (\S+) 7 | 8 | Start 9 | ^IPv4\s+Address\s+MAC\s+Port\s+Physical\s+Port\s+State 10 | ^${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${PORT_ID}\s+${PHYSICAL_PORT}\s+${STATE}\s+${VRF} -> Record 11 | ^\s*-* 12 | ^\s*Total.*$$ 13 | ^. -> Error 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/brocade_fastiron_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value PROTOCOL (\S+) 2 | Value Required IP_ADDRESS ([A-Fa-f0-9:\.]+) 3 | Value AGE (\S+) 4 | Value Required MAC_ADDRESS ([A-Fa-f0-9\.]{14}) 5 | Value TYPE (\S+) 6 | Value Required PORT (\S+) 7 | 8 | Start 9 | ^Protocol\s+Address\s+Age \(min\)\s+Hardware Addr\s+Type\s+Interface 10 | ^${PROTOCOL}\s+${IP_ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${TYPE}\s+${PORT} -> Record 11 | ^\s*$$ 12 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_lldp_neighbors.textfsm: -------------------------------------------------------------------------------- 1 | Value NEIGHBOR (\S+) 2 | Value LOCAL_INTERFACE (\S+) 3 | Value NEIGHBOR_INTERFACE (\S+) 4 | Value CAPABILITIES (\w+) 5 | 6 | Start 7 | ^Device.*ID -> LLDP 8 | 9 | LLDP 10 | ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s+)?${NEIGHBOR_INTERFACE} -> Record 11 | ^${NEIGHBOR}\s*$$ 12 | ^\s+${LOCAL_INTERFACE}\s+\d+\s+(${CAPABILITIES}?\s+)?${NEIGHBOR_INTERFACE} -> Record 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_nxos_show_module.textfsm: -------------------------------------------------------------------------------- 1 | Value MODULE (\d+) 2 | Value PORTS (\d+) 3 | Value TYPE (\S+(\s+\S+)+) 4 | Value MODEL (\S+) 5 | Value STATUS (ok|active \*|ha-standby|powered-dn|powered-up) 6 | 7 | Start 8 | ^Xbar\s+Ports\s+Module-Type\s+Model\s+Status -> Fail 9 | ^${MODULE}\s+${PORTS}\s+${TYPE}\s+${MODEL}\s+${STATUS} -> Record 10 | ^${MODULE}\s+${PORTS}\s+${TYPE}\s+${STATUS} -> Record 11 | 12 | Fail 13 | ^.* -> NoRecord 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_pim_ipv4_group-map.textfsm: -------------------------------------------------------------------------------- 1 | Value Required GROUP_RANGE (\d+\.\d+\.\d+\.\d+/\d+) 2 | Value PROTOCOL (\w+) 3 | Value CLIENT (\w+) 4 | Value GROUPS (\d+) 5 | Value RP_ADDRESS (\d+\.\d+\.\d+\.\d+) 6 | Value INFO ((\S+(\s\S+)*)) 7 | 8 | Start 9 | ^\s*Group Range\s+Proto\s+Client\s+Groups\s+RP address\s+Info\s*$$ 10 | ^\s*${GROUP_RANGE}(\*)?\s+${PROTOCOL}\s+${CLIENT}\s+${GROUPS}\s+${RP_ADDRESS}(\s+${INFO})?\s*$$ -> Record -------------------------------------------------------------------------------- /netdoc/ntc_templates/juniper_junos_show_chassis_firmware.textfsm: -------------------------------------------------------------------------------- 1 | Value Filldown PART (\w+\s\w+\s\w+|\w+\s\d+?|\w+) 2 | Value TYPE (\S+) 3 | Value VERSION (\d+\.+.+?|\S+\s+\S+) 4 | 5 | Start 6 | ^[Pp]art 7 | ^${PART}\s+${TYPE}?\s+?(.+Version\s+|.+U-Boot\s.+|.+?)${VERSION}(Copy\S+$$|\s+.+$$|$$) -> Record 8 | ^\s+${TYPE}\s+?(.+Version\s+|.+U-Boot\s.+|.+?)${VERSION}(Copy\S+$$|\s+.+$$|$$) -> Record 9 | ^\s*$$ 10 | ^{master:\d+} 11 | 12 | EOF 13 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/allied_telesis_awplus_show_arp.textfsm: -------------------------------------------------------------------------------- 1 | Value Required IP_ADDRESS (\d+\.\d+\.\d+\.\d+) 2 | Value Required MAC_ADDRESS (\S+) 3 | Value TYPE (\S+) 4 | Value INTERFACE (\S+) 5 | Value PORT (\S+) 6 | 7 | Start 8 | ^.*IP\s+Address\s+MAC\s+Address\s+Interface\s+Port\s+Type 9 | ^.*IP\s+Address\s+LL\s+Address\s+Interface\s+Port\s+Type 10 | ^${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${INTERFACE}\s+${PORT}\s+${TYPE} -> Record 11 | ^. -> Error 12 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/arista_eos_show_interfaces_transceiver.textfsm: -------------------------------------------------------------------------------- 1 | Value PORT (\S+) 2 | Value TEMP (\S+) 3 | Value VOLTAGE (\S+) 4 | Value BIAS_CURRENT (\S+) 5 | Value TX_POWER (\S+) 6 | Value RX_POWER (\S+) 7 | 8 | 9 | Start 10 | ^---- -> Begin 11 | 12 | Begin 13 | ^${PORT}\s+${TEMP}\s+${VOLTAGE}\s+${BIAS_CURRENT}\s+${TX_POWER}\s+${RX_POWER}\s+(\S+ ago|N/A) -> Record 14 | ^\s+$$ 15 | ^$$ 16 | ^.* -> Error "LINE NOT FOUND" 17 | 18 | EOF 19 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_configuration_commit_list.textfsm: -------------------------------------------------------------------------------- 1 | Value NUMBER (\d+) 2 | Value COMMIT (\S+) 3 | Value USER (\S+) 4 | Value LINE (\S+) 5 | Value CLIENT (\S+) 6 | Value DATE_TIME (\w+\s\w+\s\d+\s\S+\s\d+|\w+\s\w+\s\s\d+\s\S+\s\d+) 7 | 8 | Start 9 | ^${NUMBER}\s+${COMMIT}\s+${USER}\s+${LINE}\s+${CLIENT}\s+${DATE_TIME} -> Record 10 | ^${NUMBER}\s+${COMMIT}\s+${USER}\s+${LINE}\s+${CLIENT}\s+${DATE_TIME} -> Record 11 | 12 | # 13 | EOF 14 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/cisco_xr_show_interfaces_summary.textfsm: -------------------------------------------------------------------------------- 1 | Value INTF_TYPE (ALL TYPES|IFT_ETHERBUNDLE|IFT_HUNDREDGE|IFT_LOOPBACK|IFT_ETHERNET|IFT_NULL|IFT_TENGETHERNET) 2 | Value TOTAL (\d+) 3 | Value UP (\S+) 4 | Value DOWN (\S+) 5 | Value ADMIN_DOWN (\S+) 6 | 7 | Start 8 | ^Interface\s+Type\s+Total\s+UP\s+\Down\s+Admin\s+Down\s*$$ 9 | ^---- 10 | ^${INTF_TYPE}+\s+${TOTAL}\s+${UP}\s+${DOWN}\s+${ADMIN_DOWN} -> Record 11 | ^\s*$$ 12 | ^. -> Error -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_ios/lab1/prefixes.yml: -------------------------------------------------------------------------------- 1 | - prefix: 192.168.0.0/24 2 | vrf: null 3 | site: test-site 4 | - prefix: 192.168.3.0/24 5 | vrf: null 6 | site: test-site 7 | - prefix: 172.25.82.0/24 8 | vrf: management 9 | site: test-site 10 | - prefix: 10.0.2.0/24 11 | vrf: blue 12 | site: test-site 13 | - prefix: 10.0.1.0/24 14 | vrf: red 15 | site: test-site 16 | - prefix: 192.168.100.0/24 17 | vrf: red 18 | site: test-site 19 | -------------------------------------------------------------------------------- /netdoc/tests/netmiko_cisco_xr/lab1/devices.yml: -------------------------------------------------------------------------------- 1 | - name: XR01 2 | site: test-site 3 | model: ASR-9006 4 | manufacturer: Cisco 5 | address: 169.254.1.1/24 6 | serial: FOX150000XQ 7 | - name: XR02 8 | site: test-site 9 | model: Unknown device 10 | manufacturer: Unknown 11 | address: null 12 | serial: "" 13 | - name: XR03 14 | site: test-site 15 | model: Unknown device 16 | manufacturer: Unknown 17 | address: null 18 | serial: "" 19 | -------------------------------------------------------------------------------- /netdoc/ntc_templates/alcatel_sros_show_router_isis_adjacency.textfsm: -------------------------------------------------------------------------------- 1 | Value SYSTEM_ID (\S+) 2 | Value USAGE (\S+) 3 | Value STATE (Up|Down) 4 | Value HOLD (\d+) 5 | Value INTERFACE (\S+) 6 | Value MT_ID (\S+) 7 | 8 | Start 9 | ^----------- -> Adjacency 10 | 11 | Adjacency 12 | ^${SYSTEM_ID}\s+${USAGE}\s+${STATE}\s+${HOLD}\s+${INTERFACE}\s+${MT_ID} -> Record 13 | ^\s*$$ 14 | ^----------- 15 | ^=========== 16 | ^Adjacencies 17 | ^. -> Error 18 | 19 | --------------------------------------------------------------------------------