From 17e6e7d5f8d781025a4461c5f98a424f6e902eef Mon Sep 17 00:00:00 2001 From: mouse91 Date: Fri, 6 Oct 2023 15:34:07 +0100 Subject: [PATCH 01/19] Support unknown protocol in arista_eos_show_interfaces_description (#1540) Co-authored-by: Mouse <358657+mouse91@users.noreply.github.com> --- .../templates/arista_eos_show_interfaces_description.textfsm | 2 +- .../arista_eos_show_interfaces_description.raw | 1 + .../arista_eos_show_interfaces_description.yml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm b/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm index 4bb0b2f4b0..5bc12d0377 100644 --- a/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm +++ b/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm @@ -1,6 +1,6 @@ Value PORT (\S+) Value STATUS (up|down|admin\s+down) -Value PROTOCOL (up|down|lowerlayerdown|notpresent) +Value PROTOCOL (up|down|lowerlayerdown|notpresent|unknown) Value DESCRIP (\S.*?) Start diff --git a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw index bc0cb918a4..5f17040e0a 100644 --- a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw +++ b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw @@ -17,4 +17,5 @@ Et14 down notpresent Ma1 down down Management Po1 up up MLAG peer link Po101 up up ServerRAD +Tu8 down unknown Vl4094 up up MLAG local int diff --git a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml index 48570252f8..b6d4e25ded 100644 --- a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml +++ b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml @@ -72,6 +72,10 @@ parsed_sample: status: "up" protocol: "up" descrip: "ServerRAD" + - port: "Tu8" + status: "down" + protocol: "unknown" + descrip: "" - port: "Vl4094" status: "up" protocol: "up" From a342d17df36012f0b41abd268f9505082f82b8e8 Mon Sep 17 00:00:00 2001 From: Josh VanDeraa Date: Fri, 6 Oct 2023 17:01:52 -0500 Subject: [PATCH 02/19] Changes for 4.0 (#1541) --- changes_for_4.md | 202 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 changes_for_4.md diff --git a/changes_for_4.md b/changes_for_4.md new file mode 100644 index 0000000000..4def0ec117 --- /dev/null +++ b/changes_for_4.md @@ -0,0 +1,202 @@ +# Changes for 4.0 Release + +Below are the NTC Template keys that are changing as part of 4.0. These may not line up exactly of what is changing from what to what, but the keys of what are old and what are new are calculated with set calculations. + +| Template Name | Previous | New | +| ------------- | -------- | --- | +| alcatel_aos_show_vlan.textfsm | VLAN
IP
NAME | IP_STATE
VLAN_ID
VLAN_NAME | +| alcatel_sros_show_router_bgp_routes_vpn-ipv4.textfsm | PREFIX | NETWORK
PREFIX_LENGTH | +| alcatel_sros_show_router_interface.textfsm | ADDRESS | IP_ADDRESS | +| arista_eos_show_interfaces.textfsm | ADDRESS | MAC_ADDRESS | +| arista_eos_show_interfaces_status.textfsm | VLAN | VLAN_ID | +| arista_eos_show_ip_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| arista_eos_show_ip_interface_brief.textfsm | IP | IP_ADDRESS | +| arista_eos_show_ip_ospf_interface_brief.textfsm | ADDRESS | PREFIX_LENGTH
IP_ADDRESS | +| arista_eos_show_ip_ospf_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| arista_eos_show_ip_route.textfsm | MASK | PREFIX_LENGTH | +| arista_eos_show_mac_address-table.textfsm | VLAN | VLAN_ID | +| arista_eos_show_pim_ipv4_interface.textfsm | ADDRESS | IP_ADDRESS | +| arista_eos_show_vlan.textfsm | NAME | VLAN_NAME | +| aruba_aoscx_show_arp_all-vrfs.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| aruba_aoscx_show_bfd_all-vrfs.textfsm | IFACE | INTERFACE | +| aruba_aoscx_show_interface.textfsm | MAC | MAC_ADDRESS | +| aruba_aoscx_show_interface_dom_detail.textfsm | IFACE | INTERFACE | +| aruba_aoscx_show_ip_route_all-vrfs.textfsm | IP
IFACE | PREFIX_LENGTH
INTERFACE
IP_ADDRESS | +| aruba_aoscx_show_mac-address-table.textfsm | VLAN
MAC | MAC_ADDRESS
VLAN_ID | +| aruba_aoscx_show_vsf_detail.textfsm | MAC | MAC_ADDRESS | +| aruba_os_show_ap_database_long.textfsm | MAC | MAC_ADDRESS | +| aruba_os_show_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| aruba_os_show_ip_interface_brief.textfsm | INTF
IPADDR
MASK | NETMASK
INTERFACE
IP_ADDRESS | +| aruba_os_show_ipv6_interface_brief.textfsm | IPADDR
INTF | IPV
_ADDRESS
INTERFACE | +| avaya_ers_show_mac-address-table.textfsm | MAC_ADDR | MAC_ADDRESS | +| avaya_ers_show_vlan.textfsm | VLANNAME
VLANPROTOCOL
VLANPID
VLANACTIVE
VLANPORTMEMBERS
VLANMGMT
VLANTYPE
VLANID
VLANIVLSVL | VLAN_PROTOCOL
VLAN_PID
VLAN_ID
VLAN_IVL_SVL
VLAN_PORT_MEMBERS
VLAN_NAME
VLAN_MGMT
VLAN_TYPE
VLAN_ACTIVE | +| broadcom_icos_show_mac-addr-table.textfsm | VLAN
MAC | MAC_ADDRESS
VLAN_ID | +| broadcom_icos_show_version.textfsm | MAC | MAC_ADDRESS | +| broadcom_icos_show_vlan_brief.textfsm | NAME | VLAN_NAME | +| brocade_fastiron_show_mac-address.textfsm | VLAN | VLAN_ID | +| brocade_netiron_show_running-config_interface.textfsm | IP_ADDR | IP_ADDRESS | +| checkpoint_gaia_show_arp_dynamic_all.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| checkpoint_gaia_show_interfaces_all.textfsm | MAC | MAC_ADDRESS | +| checkpoint_gaia_show_ipv6_route.textfsm | MASK | PREFIX_LENGTH | +| ciena_saos_vlan_show.textfsm | NAME | VLAN_NAME | +| cisco_asa_show_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_asa_show_interface.textfsm | VLAN
ADDRESS
NET_MASK | MAC_ADDRESS
NETMASK
VLAN_ID | +| cisco_asa_show_interface_detail.textfsm | VLAN
ADDRESS
NET_MASK | MAC_ADDRESS
NETMASK
VLAN_ID | +| cisco_asa_show_interface_ip_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_asa_show_name.textfsm | IP | IP_ADDRESS | +| cisco_asa_show_object-group_network.textfsm | MASK
DESC | NETMASK
DESCRIPTION | +| cisco_asa_show_ospf_interface_brief.textfsm | IP_ADDRESS_MASK | NETMASK
IP_ADDRESS | +| cisco_asa_show_ospf_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| cisco_asa_show_route.textfsm | MASK | NETMASK | +| cisco_asa_show_running-config_object_network.textfsm | CIDR
MASK
DESC | NETMASK
PREFIX_LENGTH
DESCRIPTION | +| cisco_asa_show_vpn-sessiondb_anyconnect.textfsm | VLAN | VLAN_ID | +| cisco_ios_show_access-list.textfsm | | TYPE
DESTINATION_PORT
OPERATOR_DESTINATION_PORT
SOURCE_PORT
OPERATOR_SOURCE_PORT | +| cisco_ios_show_access-session.textfsm | MAC | MAC_ADDRESS | +| cisco_ios_show_ap_summary.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_ios_show_authentication_sessions.textfsm | MAC | MAC_ADDRESS | +| cisco_ios_show_bfd_neighbors_details.textfsm | IFACE | INTERFACE | +| cisco_ios_show_crypto_session_detail.textfsm | DESC | DESCRIPTION | +| cisco_ios_show_dhcp_lease.textfsm | ADDRESS | IP_ADDRESS | +| cisco_ios_show_interface_transceiver.textfsm | IFACE | INTERFACE | +| cisco_ios_show_interfaces.textfsm | ADDRESS | MAC_ADDRESS
PREFIX_LENGTH | +| cisco_ios_show_interfaces_status.textfsm | VLAN | VLAN_ID | +| cisco_ios_show_ip_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_ios_show_ip_cef.textfsm | PREFIX | PREFIX_LENGTH
IP_ADDRESS | +| cisco_ios_show_ip_cef_detail.textfsm | | PREFIX_LENGTH
IP_ADDRESS | +| cisco_ios_show_ip_device_tracking_all.textfsm | VLAN
IP
MAC | MAC_ADDRESS
VLAN_ID
IP_ADDRESS | +| cisco_ios_show_ip_eigrp_neighbors.textfsm | ADDRESS | IP_ADDRESS | +| cisco_ios_show_ip_eigrp_topology.textfsm | MASK | PREFIX_LENGTH | +| cisco_ios_show_ip_interface.textfsm | INTF
IPADDR
MASK | PREFIX_LENGTH
INTERFACE
IP_ADDRESS | +| cisco_ios_show_ip_interface_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_ios_show_ip_ospf_interface_brief.textfsm | IP_ADDRESS_MASK | PREFIX_LENGTH
IP_ADDRESS | +| cisco_ios_show_ip_ospf_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| cisco_ios_show_ip_route.textfsm | MASK | PREFIX_LENGTH | +| cisco_ios_show_ip_source_binding.textfsm | VLAN
IP
MAC | MAC_ADDRESS
VLAN_ID
IP_ADDRESS | +| cisco_ios_show_ip_vrf_interfaces.textfsm | IPADDRESS | IP_ADDRESS | +| cisco_ios_show_ipv6_interface_brief.textfsm | IPADDR
INTF | IPV
_ADDRESS
INTERFACE | +| cisco_ios_show_ipv6_neighbors.textfsm | MAC | MAC_ADDRESS | +| cisco_ios_show_lldp_neighbors_detail.textfsm | VLAN | VLAN_ID | +| cisco_ios_show_mac-address-table.textfsm | VLAN | VLAN_ID | +| cisco_ios_show_module_status.textfsm | MAC_ADDR | MAC_ADDRESS | +| cisco_ios_show_nve_peers.textfsm | RMAC | MAC_ADDRESS | +| cisco_ios_show_standby_brief.textfsm | VIRTUALIP
IFACE | VIRTUAL_IP_ADDRESS
INTERFACE | +| cisco_ios_show_version.textfsm | MAC | MAC_ADDRESS | +| cisco_ios_show_vlan.textfsm | NAME | VLAN_NAME | +| cisco_ios_show_vrrp_all.textfsm | VIRTUALIP
VIRTUAL_MAC
MASTER_IP
IFACE | VIRTUAL_MAC_ADDRESS
VIRTUAL_IP_ADDRESS
INTERFACE
MASTER_IP_ADDRESS | +| cisco_ios_show_vrrp_brief.textfsm | VIRTUALIP
MASTER_IP
IFACE | VIRTUAL_IP_ADDRESS
INTERFACE
MASTER_IP_ADDRESS | +| cisco_ios_traceroute.textfsm | ADDRESS | IP_ADDRESS | +| cisco_nxos_show_forwarding_ipv4_route.textfsm | PREFIX | PREFIX_LENGTH
IP_ADDRESS | +| cisco_nxos_show_interface.textfsm | ADDRESS | MAC_ADDRESS
PREFIX_LENGTH | +| cisco_nxos_show_interface_brief.textfsm | VLAN
IP | VLAN_ID
IP_ADDRESS | +| cisco_nxos_show_interface_status.textfsm | VLAN | VLAN_ID | +| cisco_nxos_show_ip_adjacency.textfsm | IPADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_nxos_show_ip_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_nxos_show_ip_arp_detail.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_nxos_show_ip_bgp_neighbors.textfsm | | REMOTE_ASN
PEER_GROUP
LOCAL_ASN | +| cisco_nxos_show_ip_interface_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_nxos_show_ip_interface_vrf_all.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_nxos_show_ip_ospf_neighbor.textfsm | NEIGHBOR_IPADDR
LOCAL_IPADDR | NEIGHBOR_ID
IP_ADDRESS | +| cisco_nxos_show_ip_route.textfsm | MASK | PREFIX_LENGTH | +| cisco_nxos_show_ipv6_interface_brief.textfsm | IPADDR
INTF | IPV
_ADDRESS
INTERFACE | +| cisco_nxos_show_l2rib_internal_permanently-frozen-list.textfsm | MAC | MAC_ADDRESS | +| cisco_nxos_show_lldp_neighbors_detail.textfsm | VLAN | VLAN_ID | +| cisco_nxos_show_mac_address-table.textfsm | VLAN
MAC | MAC_ADDRESS
VLAN_ID | +| cisco_nxos_show_nve_peers.textfsm | RMAC | MAC_ADDRESS | +| cisco_nxos_show_spanning-tree_root.textfsm | VLAN | VLAN_ID | +| cisco_nxos_show_vdc.textfsm | MAC | MAC_ADDRESS | +| cisco_nxos_show_vlan.textfsm | NAME | VLAN_NAME | +| cisco_s300_show_mac_address-table.textfsm | VLAN | VLAN_ID | +| cisco_wlc_ssh_show_ap_config_general.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_wlc_ssh_show_ap_summary.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_wlc_ssh_show_client_detail.textfsm | VLAN | VLAN_ID | +| cisco_wlc_ssh_show_exclusionlist.textfsm | MAC | MAC_ADDRESS | +| cisco_wlc_ssh_show_interface_detailed_id.textfsm | IP_NETMASK
IP_GATEWAY | NETMASK
GATEWAY | +| cisco_wlc_ssh_show_interface_summary.textfsm | VLAN
IP_ADDR | VLAN_ID
IP_ADDRESS | +| cisco_wlc_ssh_show_inventory.textfsm | BIA_MAC | BIA | +| cisco_wlc_ssh_show_mobility_anchor.textfsm | IPADDR | IP_ADDRESS | +| cisco_wlc_ssh_show_mobility_sum.textfsm | MAC_ADDR
IP_ADDR | MAC_ADDRESS
IP_ADDRESS | +| cisco_wlc_ssh_show_rf-profile_summary.textfsm | DESC | DESCRIPTION | +| cisco_xr_admin_show_vm.textfsm | IP_ADDR | IP_ADDRESS | +| cisco_xr_show_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_xr_show_controllers_hundredgige_all.textfsm | MAC_OPS_ADD
MAC_BIA_ADD | BIA
MAC_ADDRESS | +| cisco_xr_show_dhcp_ipv4_proxy_binding.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| cisco_xr_show_interfaces.textfsm | ADDRESS | MAC_ADDRESS
VLAN_ID | +| cisco_xr_show_ip_interface_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_xr_show_ip_route.textfsm | MASK | PREFIX_LENGTH | +| cisco_xr_show_ipv4_vrf_all_interface_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| cisco_xr_show_ipv6_neighbors.textfsm | ADDRESS
MAC | IPV
MAC_ADDRESS
_ADDRESS | +| cisco_xr_show_ospf_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| cisco_xr_show_ospf_vrf_all_interface_brief.textfsm | ADDRESS | PREFIX_LENGTH
IP_ADDRESS | +| cisco_xr_show_ospf_vrf_all_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| cisco_xr_show_pim_ipv4_interface.textfsm | ADDRESS | IP_ADDRESS | +| dell_force10_show_arp.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| dell_force10_show_ip_interface_brief.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| dell_force10_show_vlan.textfsm | NAME | VLAN_NAME | +| dell_force10_show_vlan_brief.textfsm | IP
NAME | VLAN_NAME
IP_ADDRESS | +| dell_powerconnect_show_bridge_address_table.textfsm | VLAN | VLAN_ID | +| dlink_ds_show_arpentry.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| ericsson_ipos_show_arp.textfsm | MAC | MAC_ADDRESS | +| fortinet_get_system_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| fortinet_get_system_interface.textfsm | IP | IP_ADDRESS | +| fortinet_get_system_interface_physical.textfsm | IP | _ADDRESS
IP_ADDRESS | +| hp_comware_display_arp.textfsm | VLAN
IPADDRESS
MACADDRESS | MAC_ADDRESS
VLAN_ID
IP_ADDRESS | +| hp_comware_display_interface.textfsm | INTF | INTERFACE | +| hp_comware_display_ip_interface.textfsm | IPADDR
INTF | INTERFACE
IP_ADDRESS | +| hp_comware_display_ip_routing-table.textfsm | MASK | PREFIX_LENGTH | +| hp_comware_display_lldp_neighbor-information_verbose.textfsm | VLAN | VLAN_ID | +| hp_comware_display_mac-address.textfsm | VLAN
MACADDRESS | MAC_ADDRESS
VLAN_ID | +| hp_comware_display_vlan_all.textfsm | NAME | VLAN_NAME | +| hp_comware_display_vlan_brief.textfsm | NAME | VLAN_NAME | +| hp_procurve_show_arp.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| hp_procurve_show_mac-address.textfsm | VLAN
MAC | MAC_ADDRESS
VLAN_ID | +| hp_procurve_show_system.textfsm | MAC | MAC_ADDRESS | +| hp_procurve_show_vlans.textfsm | NAME | VLAN_NAME | +| huawei_vrp_display_arp_brief.textfsm | VLAN | VLAN_ID | +| huawei_vrp_display_ipv6_neighbors.textfsm | AYER
VLAN
IP_ADDRESS
LINK_
CEVLAN | VLAN_ID
MAC_ADDRESS
_ADDRESS
IPV
CE_VLAN | +| huawei_vrp_display_lldp_neighbor.textfsm | VLAN | VLAN_ID | +| juniper_junos_show_arp_no-resolve.textfsm | MAC | MAC_ADDRESS | +| juniper_junos_show_ethernet-switching_table.textfsm | VLAN | VLAN_ID | +| juniper_junos_show_ospf_neighbor.textfsm | ADDRESS | IP_ADDRESS | +| juniper_screenos_get_route.textfsm | PREFIX | PREFIX_LENGTH
IP_ADDRESS | +| linux_ip_address_show.textfsm | ADDRESS | MAC_ADDRESS | +| linux_ip_link_show.textfsm | ADDRESS | MAC_ADDRESS | +| mikrotik_routeros_interface_ethernet_monitor_name_once.textfsm | | STATUS
FULL_DUPLEX
RATE
RX_FLOW_CONTROL
AUTO_NEGOTIATION
LINK_PARTNER_ADVERTISING
NAME
TX_FLOW_CONTROL
ADVERTISING | +| mikrotik_routeros_ip_arp_print_without-paging.textfsm | | FLAGS
INDEX
INTERFACE
IP_ADDRESS
MAC_ADDRESS | +| mikrotik_routeros_ip_dhcp-server_lease_print_without-paging.textfsm | | LAST_SEEN
HOSTNAME
STATUS
FLAGS
INDEX
IP_ADDRESS
MAC_ADDRESS
RATE_LIMIT
SERVER | +| mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm | ADDRESS | IPV
_ADDRESS
PREFIX_LENGTH
IP_ADDRESS | +| mikrotik_routeros_ip_firewall_filter_print_all_without-paging.textfsm | | FLAGS
LOG_PREFIX
OUT_INTERFACE_LIST
CHAIN
SRC_PORT
SRC_MAC_ADDRESS
CONNECTION_STATE
HW_OFFLOAD
PROTOCOL
INDEX
ACTION
DST_ADDRESS_LIST
IN_INTERFACE
OUT_INTERFACE
DST_PORT
LOG
COMMENT
SRC_ADDRESS_LIST
DST_ADDRESS
SRC_ADDRESS
IPSEC_POLICY
CONNECTION_NAT_STATE
IN_INTERFACE_LIST | +| mikrotik_routeros_ip_firewall_nat_print_all_without-paging.textfsm | | FLAGS
LOG_PREFIX
OUT_INTERFACE_LIST
CHAIN
SRC_PORT
PROTOCOL
INDEX
ACTION
TO_PORTS
IN_INTERFACE
OUT_INTERFACE
DST_ADDRESS_LIST
DST_PORT
COMMENT
LOG
SRC_ADDRESS_LIST
DST_ADDRESS
SRC_ADDRESS
IPSEC_POLICY
TO_ADDRESSES
IN_INTERFACE_LIST | +| mikrotik_routeros_ip_route_print_terse.textfsm | | FLAGS
SCOPE
SUPPRESS_HW_OFFLOAD
IMMEDIATE_GW
PREF_SRC
GATEWAY_STATUS
LOCAL_ADDRESS
TARGET_SCOPE
GATEWAY
INDEX
ROUTING_TABLE
DST_ADDRESS
COMMENT
DISTANCE | +| mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm | IP
MAC | IPV
MAC_ADDRESS
_ADDRESS | +| mikrotik_routeros_snmp_community_print_without-paging.textfsm | | READ_ACCESS
SECURITY
WRITE_ACCESS
FLAGS
INDEX
NAME
ADDRESSES | +| mikrotik_routeros_system_routerboard_print.textfsm | | FACTORY_FIRMWARE
HARDWARE_MODEL
SERIAL_NUMBER
REVISION
UPGRADE_FIRMWARE
FIRMWARE_TYPE
CURRENT_FIRMWARE
BOARD_NAME
ROUTERBOARD | +| paloalto_panos_show_arp_all.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| paloalto_panos_show_interface_hardware.textfsm | ADDRESS
INTF | MAC_ADDRESS
INTERFACE | +| paloalto_panos_show_interface_logical.textfsm | ADDRESS
INTF | ID
INTERFACE
VLAN_ID
IP_ADDRESS | +| paloalto_panos_show_interface_management.textfsm | MACADDRESS | MAC_ADDRESS | +| paloalto_panos_show_mac_all.textfsm | VLAN
MAC | MAC_ADDRESS
VLAN_ID | +| paloalto_panos_show_system_info.textfsm | MAC | MAC_ADDRESS | +| ruckus_fastiron_show_arp.textfsm | VLAN | VLAN_ID | +| ruckus_fastiron_show_interfaces.textfsm | ADDRESS | MAC_ADDRESS
PREFIX_LENGTH | +| ruckus_fastiron_show_mac-address.textfsm | VLAN | VLAN_ID | +| ruckus_fastiron_show_vlan.textfsm | NAME | VLAN_NAME | +| ubiquiti_edgerouter_show_arp.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| ubiquiti_edgerouter_show_dhcp_leases.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| ubiquiti_edgerouter_show_dhcpv6_server_leases.textfsm | IP | IP_ADDRESS | +| ubiquiti_edgerouter_show_interfaces.textfsm | IP | IP_ADDRESS | +| ubiquiti_edgerouter_show_ip_route.textfsm | IP
CIDR | PREFIX_LENGTH
IP_ADDRESS | +| ubiquiti_edgerouter_show_ipv6_neighbors.textfsm | IP
MAC | IPV
MAC_ADDRESS
_ADDRESS | +| ubiquiti_edgerouter_show_ipv6_route.textfsm | IP | IPV
_ADDRESS | +| ubiquiti_edgeswitch_show_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| ubiquiti_edgeswitch_show_version.textfsm | MAC | MAC_ADDRESS | +| ubiquiti_edgeswitch_show_vlan.textfsm | NAME | VLAN_NAME | +| vmware_nsxv_show_ip_route.textfsm | PREFIX | PREFIX_LENGTH
IP_ADDRESS | +| vyatta_vyos_show_arp.textfsm | ADDRESS
MAC | MAC_ADDRESS
IP_ADDRESS | +| watchguard_firebox_show_arp.textfsm | IP
MAC | MAC_ADDRESS
IP_ADDRESS | +| yamaha_show_ip_route.textfsm | MASK | PREFIX_LENGTH | +| zyxel_os_cfg_ipalias_get.textfsm | IPALIAS_NETMASK
PUBLAN_IP
IPALIAS_ACTIVE
IPALIAS_IP | IP_ALIAS_NETMASK
PUBLAN_IP_ADDRESS
IP_ALIAS_ADDRESS
IP_ALIAS_ACTIVE | +| zyxel_os_cfg_lan_get.textfsm | IP | IP_ADDRESS | +| zyxel_os_cfg_lan_get_--Name_name.textfsm | IP | IP_ADDRESS | +| zyxel_os_cfg_lanhosts_get.textfsm | IP
MAC | MAC_ADDRESS
_ADDRESS
IP_ADDRESS | +| zyxel_os_cfg_static_dhcp_get.textfsm | IP | IP_ADDRESS | +| zyxel_os_cfg_static_route_get.textfsm | IPVER | IP_VERSION | \ No newline at end of file From 3a527f147b9d506b8f3aa0e2439e63cf6ffad898 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:48:35 +0400 Subject: [PATCH 03/19] Fix 'cisco_ios_show_logging' template with unnecessary '*' (#1536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../templates/cisco_ios_show_logging.textfsm | 100 +++++++++--------- .../show_logging/cisco_ios_show_logging_5.raw | 45 ++++++++ .../show_logging/cisco_ios_show_logging_5.yml | 33 ++++++ 3 files changed, 128 insertions(+), 50 deletions(-) create mode 100644 tests/cisco_ios/show_logging/cisco_ios_show_logging_5.raw create mode 100644 tests/cisco_ios/show_logging/cisco_ios_show_logging_5.yml diff --git a/ntc_templates/templates/cisco_ios_show_logging.textfsm b/ntc_templates/templates/cisco_ios_show_logging.textfsm index a12ab13219..c5249d8d3e 100644 --- a/ntc_templates/templates/cisco_ios_show_logging.textfsm +++ b/ntc_templates/templates/cisco_ios_show_logging.textfsm @@ -10,90 +10,90 @@ Value List MESSAGE (.+) Start ^Log\s+Buffer - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs # 022701: Jun 19 03:02:31: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet2/0/3, changed state to down - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs # 000024: Dec 2 12:09:21.207: CEF-HWIDB: EDSP0 LES switching vector set to Null - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs # Jan 30 14:11:11.354: %ILPOWER-7-DETECT: Interface Gi4/3: Power Device detected: IEEE PD - ^${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> DateLogs # 7:04: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet2/0/3, changed state to up - ^${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs - ^${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs NumberLogs - ^(\d{6}):\s+(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record - ^(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record - ^\d{1,2}:\d{1,2}: -> Continue.Record + ^(\*)?(\d{6}):\s+(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record + ^(\*)?(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record + ^(\*)?\d{1,2}:\d{1,2}: -> Continue.Record # NUMBER LOGS - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ # NUMBER LOGS NO SEVERITY - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ # DATE LOGS - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}:\s%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs # DATE LOGS NO SEVERITY - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}:\s${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs # TIME LOGS - ^${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs # TIME LOGS NO SEVERITY - ^${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs ^${MESSAGE}$$ ^\s*$$ ^. -> Error DateLogs - ^(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record - ^(\d{6}):\s+(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record - ^\d{1,2}:\d{1,2}: -> Continue.Record + ^(\*)?(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record + ^(\*)?(\d{6}):\s+(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record + ^(\*)?\d{1,2}:\d{1,2}: -> Continue.Record # DATE LOGS - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} - ^${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} # DATE LOGS NO SEVERITY - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} - ^${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} # NUMBER LOGS - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs # NUMBER LOGS NO SEVERITY - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs # TIME LOGS - ^${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs # TIME LOGS NO SEVERITY - ^${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs + ^(\*)?${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> TimeLogs ^${MESSAGE}$$ ^\s*$$ ^. -> Error TimeLogs - ^\d{1,2}:\d{1,2}: -> Continue.Record - ^(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record - ^\d+:\s+\S+ -> Continue.Record + ^(\*)?\d{1,2}:\d{1,2}: -> Continue.Record + ^(\*)?(\D\D\D)\s+(\d{1,2})\s+((\d+:\d+:\d+\.\d+)|(\d+:\d+:\d+)) -> Continue.Record + ^(\*)?\d+:\s+\S+ -> Continue.Record # TIME LOGS - ^${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ # TIME LOGS NO SEVERITY - ^${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ + ^(\*)?${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ # DATE LOGS - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs # DATE LOGS NO SEVERITY - ^${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs - ^${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs + ^(\*)?${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE} -> DateLogs # NUMBER LOGS - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+%${FACILITY}-${SEVERITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs # NUMBER LOGS NO SEVERITY - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs - ^${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}\s+${TIMEZONE}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs + ^(\*)?${NUMBER}:\s+${MONTH}\s+${DAY}\s+${TIME}:\s+${FACILITY}-${MNEMONIC}:\s+${MESSAGE}$$ -> NumberLogs ^${MESSAGE}$$ ^\s*$$ - ^. -> Error + ^. -> Error \ No newline at end of file diff --git a/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.raw b/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.raw new file mode 100644 index 0000000000..67f406a7e3 --- /dev/null +++ b/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.raw @@ -0,0 +1,45 @@ +Syslog logging: enabled (0 messages dropped, 21 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled) + +No Active Message Discriminator. + + + +No Inactive Message Discriminator. + + + Console logging: level debugging, 10027 messages logged, xml disabled, + filtering disabled + Monitor logging: level debugging, 0 messages logged, xml disabled, + filtering disabled + Buffer logging: level informational, 10048 messages logged, xml disabled, + filtering disabled + Exception Logging: size (8192 bytes) + Count and timestamp logging messages: disabled + Persistent logging: disabled + +No active filter modules. + + Trap logging: level debugging, 10180 message lines logged + Logging to 81.95.32.138 (udp port 514, audit disabled, + link up), + 10179 message lines logged, + 0 message lines rate-limited, + 0 message lines dropped-by-MD, + xml disabled, sequence number disabled + filtering disabled + Logging to 192.168.214.143 (udp port 514, audit disabled, + link up), + 10180 message lines logged, + 0 message lines rate-limited, + 0 message lines dropped-by-MD, + xml disabled, sequence number disabled + filtering disabled + Logging Source-Interface: VRF Name: + +Log Buffer (100000 bytes): +rtual-PPP2, changed state to down +*Sep 14 05:59:54.113: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-PPP2, changed state to up +*Sep 14 06:00:45.693: %CRYPTO-4-PKT_REPLAY_ERR: decrypt: replay check failed + connection id=29, sequence number=219 + +*Sep 14 06:07:26.245: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-PPP2, changed state to down diff --git a/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.yml b/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.yml new file mode 100644 index 0000000000..0b3438fa89 --- /dev/null +++ b/tests/cisco_ios/show_logging/cisco_ios_show_logging_5.yml @@ -0,0 +1,33 @@ +--- +parsed_sample: + - number: "" + month: "Sep" + day: "14" + time: "05:59:54.113" + timezone: "" + facility: "LINEPROTO" + severity: "5" + mnemonic: "UPDOWN" + message: + - "Line protocol on Interface Virtual-PPP2, changed state to up" + - number: "" + month: "Sep" + day: "14" + time: "06:00:45.693" + timezone: "" + facility: "CRYPTO" + severity: "4" + mnemonic: "PKT_REPLAY_ERR" + message: + - "decrypt: replay check failed" + - " connection id=29, sequence number=219" + - number: "" + month: "Sep" + day: "14" + time: "06:07:26.245" + timezone: "" + facility: "LINEPROTO" + severity: "5" + mnemonic: "UPDOWN" + message: + - "Line protocol on Interface Virtual-PPP2, changed state to down" From a3e433a4a63715c024c93d8456fee95d67510515 Mon Sep 17 00:00:00 2001 From: mncrftfrcnm <64576881+mncrftfrcnm@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:59:52 +0400 Subject: [PATCH 04/19] Cisco ios show ip interface bugfix #1532 (#1533) * Bugfix Cisco IOS show ip interface --- .../cisco_ios_show_ip_interface.textfsm | 4 +- .../cisco_ios_show_ip_interface7.raw | 133 ++++++++++++++++++ .../cisco_ios_show_ip_interface7.yml | 47 +++++++ 3 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.raw create mode 100644 tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.yml diff --git a/ntc_templates/templates/cisco_ios_show_ip_interface.textfsm b/ntc_templates/templates/cisco_ios_show_ip_interface.textfsm index 072134978c..7116dc29b8 100644 --- a/ntc_templates/templates/cisco_ios_show_ip_interface.textfsm +++ b/ntc_templates/templates/cisco_ios_show_ip_interface.textfsm @@ -42,7 +42,7 @@ Start ^\s+Security ^\s+Split ^\s+ICMP - ^\s+IP\s+(?:fast|Flow|CEF|Null|multicast|route|output|access) + ^\s+IP\s+(?:fast|Flow|CEF|Null|multicast|route|output|access|Clear) ^\s+Downstream ^\s+Associated ^\s+Topology @@ -69,4 +69,4 @@ Start HELPERS ^\s+${IP_HELPER}\s*$$ ^\s+Directed -> Start - ^.* -> Error + ^.* -> Error \ No newline at end of file diff --git a/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.raw b/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.raw new file mode 100644 index 0000000000..348a4b8eb5 --- /dev/null +++ b/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.raw @@ -0,0 +1,133 @@ +GigabitEthernet0/0/0 is up, line protocol is up + Internet address is 10.1.1.1/30 + Broadcast address is 255.255.255.255 + Address determined by non-volatile memory + MTU is 1500 bytes + Helper address is not set + Directed broadcast forwarding is disabled + Outgoing Common access list is not set + Outgoing access list is not set + Inbound Common access list is not set + Inbound access list is not set + Proxy ARP is enabled + Local Proxy ARP is disabled + Security level is default + Split horizon is enabled + ICMP redirects are always sent + ICMP unreachables are always sent + ICMP mask replies are never sent + IP fast switching is enabled + IP Flow switching is disabled + IP CEF switching is enabled + IP CEF switching turbo vector + IP Null turbo vector + Associated unicast routing topologies: + Topology "base", operation state is UP + IP multicast fast switching is enabled + IP multicast distributed fast switching is disabled + IP route-cache flags are Fast, CEF + Router Discovery is disabled + IP output packet accounting is disabled + IP access violation accounting is disabled + TCP/IP header compression is disabled + RTP/IP header compression is disabled + Probe proxy name replies are disabled + Policy routing is disabled + Network address translation is disabled + BGP Policy Mapping is disabled + Input features: Virtual Fragment Reassembly, IPSec input classification, MCI Check + Output features: IPSec output classification, IPSec: to crypto engine, Post-encryption output features + IPv4 WCCP Redirect outbound is disabled + IPv4 WCCP Redirect inbound is disabled + IPv4 WCCP Redirect exclude is disabled + IP Clear Dont Fragment is disabled +GigabitEthernet0/0/1 is up, line protocol is up + Internet protocol processing disabled +GigabitEthernet0/0/1.10 is up, line protocol is up + Internet address is 172.2.2.2/25 + Broadcast address is 255.255.255.255 + Address determined by non-volatile memory + MTU is 1500 bytes + Helper address is not set + Directed broadcast forwarding is disabled + Multicast reserved groups joined: 224.0.0.2 224.0.0.5 + Outgoing Common access list is not set + Outgoing access list is not set + Inbound Common access list is not set + Inbound access list is not set + Proxy ARP is disabled + Local Proxy ARP is disabled + Security level is default + Split horizon is enabled + ICMP redirects are never sent + ICMP unreachables are never sent + ICMP mask replies are never sent + IP fast switching is enabled + IP Flow switching is disabled + IP CEF switching is enabled + IP CEF switching turbo vector + IP Null turbo vector + Associated unicast routing topologies: + Topology "base", operation state is UP + IP multicast fast switching is enabled + IP multicast distributed fast switching is disabled + IP route-cache flags are Fast, CEF + Router Discovery is disabled + IP output packet accounting is disabled + IP access violation accounting is disabled + TCP/IP header compression is disabled + RTP/IP header compression is disabled + Probe proxy name replies are disabled + Policy routing is disabled + Network address translation is disabled + BGP Policy Mapping is disabled + Input features: MCI Check + IPv4 WCCP Redirect outbound is disabled + IPv4 WCCP Redirect inbound is disabled + IPv4 WCCP Redirect exclude is disabled + IP Clear Dont Fragment is enabled +Tunnel102 is up, line protocol is up + Internet address is 10.1.0.214/30 + Broadcast address is 255.255.255.255 + Address determined by non-volatile memory + MTU is 1400 bytes + Helper address is not set + Directed broadcast forwarding is disabled + Multicast reserved groups joined: 224.0.0.5 + Outgoing Common access list is not set + Outgoing access list is not set + Inbound Common access list is not set + Inbound access list is not set + Proxy ARP is enabled + Local Proxy ARP is disabled + Security level is default + Split horizon is enabled + ICMP redirects are always sent + ICMP unreachables are always sent + ICMP mask replies are never sent + IP fast switching is enabled + IP Flow switching is disabled + IP CEF switching is enabled + IP CEF switching turbo vector + IP Null turbo vector + Associated unicast routing topologies: + Topology "base", operation state is UP + IP multicast fast switching is enabled + IP multicast distributed fast switching is disabled + IP route-cache flags are Fast, CEF + Router Discovery is disabled + IP output packet accounting is disabled + IP access violation accounting is disabled + TCP/IP header compression is disabled + RTP/IP header compression is disabled + Probe proxy name replies are disabled + Policy routing is disabled + Network address translation is disabled + BGP Policy Mapping is disabled + Input features: MCI Check, TCP Adjust MSS + Output features: TCP Adjust MSS + IPv4 WCCP Redirect outbound is disabled + IPv4 WCCP Redirect inbound is disabled + IPv4 WCCP Redirect exclude is disabled + IP Clear Dont Fragment is disabled + diff --git a/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.yml b/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.yml new file mode 100644 index 0000000000..2482afcac7 --- /dev/null +++ b/tests/cisco_ios/show_ip_interface/cisco_ios_show_ip_interface7.yml @@ -0,0 +1,47 @@ +parsed_sample: + - inbound_acl: "" + interface: "GigabitEthernet0/0/0" + ip_address: + - "10.1.1.1" + ip_helper: [] + link_status: "up" + mtu: "1500" + outgoing_acl: "" + prefix_length: + - "30" + protocol_status: "up" + vrf: "" + - inbound_acl: "" + interface: "GigabitEthernet0/0/1" + ip_address: [] + ip_helper: [] + link_status: "up" + mtu: "" + outgoing_acl: "" + prefix_length: [] + protocol_status: "up" + vrf: "" + - inbound_acl: "" + interface: "GigabitEthernet0/0/1.10" + ip_address: + - "172.2.2.2" + ip_helper: [] + link_status: "up" + mtu: "1500" + outgoing_acl: "" + prefix_length: + - "25" + protocol_status: "up" + vrf: "" + - inbound_acl: "" + interface: "Tunnel102" + ip_address: + - "10.1.0.214" + ip_helper: [] + link_status: "up" + mtu: "1400" + outgoing_acl: "" + prefix_length: + - "30" + protocol_status: "up" + vrf: "" From 2ddff82d8dbb153bb7d0384bca69b8329ac649c9 Mon Sep 17 00:00:00 2001 From: tom0010 <41154665+tom0010@users.noreply.github.com> Date: Mon, 16 Oct 2023 19:13:08 +0100 Subject: [PATCH 05/19] Fix #1549 (#1550) * Add support for missing vrf with neighbor --- ...bgp_vrf_all_ipv4_unicast_neighbors.textfsm | 1 + ...w_bgp_vrf_all_ipv4_unicast_neighbors1.raw} | 0 ...w_bgp_vrf_all_ipv4_unicast_neighbors1.yml} | 0 ...ow_bgp_vrf_all_ipv4_unicast_neighbors2.raw | 20 ++++ ...ow_bgp_vrf_all_ipv4_unicast_neighbors2.yml | 112 ++++++++++++++++++ 5 files changed, 133 insertions(+) rename tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/{cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.raw => cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw} (100%) rename tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/{cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.yml => cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml} (100%) create mode 100644 tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw create mode 100644 tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml diff --git a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm index 9c9f3d1fbe..854f61873a 100644 --- a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm @@ -15,6 +15,7 @@ Value ORIGIN ([ie\?\|&]) Start + ^Can't\s+find\s+neighbor ^Peer\s+ ^BGP\s+(routing|table)\s ^Status: diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.raw rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.yml rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw new file mode 100644 index 0000000000..3d3ea916f5 --- /dev/null +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw @@ -0,0 +1,20 @@ +Can't find neighbor 10.1.1.1 in VRF TEST_1 + +Peer 10.1.1.1 routes for address family IPv4 Unicast: +BGP table version is 401423, Local Router ID is 10.10.10.10 +Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best +Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected +Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2 + + Network Next Hop Metric LocPrf Weight Path +*>e10.20.20.0/27 10.1.1.1 5000 0 100 200 i +*>e10.10.202.0/30 10.10.2.1 0 64102 64202 i +*>l100.100.100.100/30 0.0.0.0 100 32768 i +x e100.100.100.104/30 10.10.2.1 0 64102 64002 i +*>e 10.10.1.1 0 64101 64002 i +*>e100.100.100.108/30 10.10.2.1 0 64102 {64201 64202} i +*>e100.100.100.112/30 10.10.2.1 0 64102 {64201 64202} 64203 i +*>e100.100.100.114/30 10.10.2.1 0 64102 {64201 64202} 64203 64500.2345 i +*>e100.100.100.116/30 10.10.2.1 0 {64102 64201 64202} 64203 64500.2345 i +*>e100.100.100.118/30 10.10.2.1 0 64102.444 {64201 64202} 64203 64500.2345 i +*>e100.100.100.120/30 10.10.2.1 0 {64102.333 64201 64202} 64203 64500.2345 i diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml new file mode 100644 index 0000000000..b4d30936ab --- /dev/null +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml @@ -0,0 +1,112 @@ +--- +parsed_sample: + - as_path: "100 200" + local_pref: "5000" + metric: "" + network: "10.20.20.0/27" + next_hop: "10.1.1.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 64202" + local_pref: "" + metric: "" + network: "10.10.202.0/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "" + local_pref: "100" + metric: "" + network: "100.100.100.100/30" + next_hop: "0.0.0.0" + origin: "i" + path_selection: ">" + route_source: "l" + status: "*" + weight: "32768" + - as_path: "64102 64002" + local_pref: "" + metric: "" + network: "100.100.100.104/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: " " + route_source: "e" + status: "x" + weight: "0" + - as_path: "64101 64002" + local_pref: "" + metric: "" + network: "100.100.100.104/30" + next_hop: "10.10.1.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202}" + local_pref: "" + metric: "" + network: "100.100.100.108/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202} 64203" + local_pref: "" + metric: "" + network: "100.100.100.112/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102 {64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.114/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "{64102 64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.116/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "64102.444 {64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.118/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" + - as_path: "{64102.333 64201 64202} 64203 64500.2345" + local_pref: "" + metric: "" + network: "100.100.100.120/30" + next_hop: "10.10.2.1" + origin: "i" + path_selection: ">" + route_source: "e" + status: "*" + weight: "0" From 286e14a7afa59ad9649e9ea2ac327d3d5038758b Mon Sep 17 00:00:00 2001 From: Josh VanDeraa Date: Mon, 16 Oct 2023 18:20:53 -0500 Subject: [PATCH 06/19] Updates pyproject.toml to 4.0.1 (#1547) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d715297b3e..5aa8b6d842 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ntc_templates" -version = "3.5.0" +version = "4.0.1" description = "TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable." authors = ["Network to Code "] license = "Apache-2.0" From b5bff212d3425544932716c77a3ae66cd4c23b7e Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:36:50 +0400 Subject: [PATCH 07/19] Template + test (#1508) --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_system_clock_print.textfsm | 16 ++++++++++++++++ .../mikrotik_routeros_system_clock_print.raw | 6 ++++++ .../mikrotik_routeros_system_clock_print.yml | 8 ++++++++ 4 files changed, 31 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_system_clock_print.textfsm create mode 100644 tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.raw create mode 100644 tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 3a5b516184..cfb12cc283 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -575,6 +575,7 @@ mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_route mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse +mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]] paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all diff --git a/ntc_templates/templates/mikrotik_routeros_system_clock_print.textfsm b/ntc_templates/templates/mikrotik_routeros_system_clock_print.textfsm new file mode 100644 index 0000000000..cee0bb7d6f --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_system_clock_print.textfsm @@ -0,0 +1,16 @@ +Value TIME (\d{2}\:\d{2}\:\d{2}) +Value DATE ([a-z]{3}\/\d{2}\/\d{4}) +Value TIME_ZONE_AUTODETECT (yes|no) +Value TIME_ZONE_NAME (\S+) +Value GMT_OFFSET (\+\d{2}\:\d{2}) +Value DST_ACTIVE (yes|no) + +Start + ^\s*time:\s+${TIME}\s*$$ + ^\s*date:\s+${DATE}\s*$$ + ^\s*time-zone-autodetect:\s+${TIME_ZONE_AUTODETECT}\s*$$ + ^\s*time-zone-name:\s+${TIME_ZONE_NAME}\s*$$ + ^\s*gmt-offset:\s+${GMT_OFFSET}\s*$$ + ^\s*dst-active:\s+${DST_ACTIVE}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.raw b/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.raw new file mode 100644 index 0000000000..b10915f4ba --- /dev/null +++ b/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.raw @@ -0,0 +1,6 @@ + time: 10:00:47 + date: jul/21/2023 + time-zone-autodetect: yes + time-zone-name: Europe/Moscow + gmt-offset: +03:00 + dst-active: no \ No newline at end of file diff --git a/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.yml b/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.yml new file mode 100644 index 0000000000..7fd3898e56 --- /dev/null +++ b/tests/mikrotik_routeros/system_clock_print/mikrotik_routeros_system_clock_print.yml @@ -0,0 +1,8 @@ +--- +parsed_sample: + - time: "10:00:47" + date: "jul/21/2023" + time_zone_autodetect: "yes" + time_zone_name: "Europe/Moscow" + gmt_offset: "+03:00" + dst_active: "no" From af098a1830d0d0cf49a8d44fcdc5ead334083352 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 17 Oct 2023 20:55:46 +0400 Subject: [PATCH 08/19] Template + test (#1507) --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_user_active_print.textfsm | 16 ++++++++++++++++ .../mikrotik_routeros_user_active_print.raw | 4 ++++ .../mikrotik_routeros_user_active_print.yml | 12 ++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_user_active_print.textfsm create mode 100644 tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.raw create mode 100644 tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index cfb12cc283..5261f1a7f8 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -576,6 +576,7 @@ mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[ mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] +mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]] paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all diff --git a/ntc_templates/templates/mikrotik_routeros_user_active_print.textfsm b/ntc_templates/templates/mikrotik_routeros_user_active_print.textfsm new file mode 100644 index 0000000000..891e4b037e --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_user_active_print.textfsm @@ -0,0 +1,16 @@ +Value ID (\d+) +Value WHEN ([a-z]{3}/\d{1,2}/\d{4}\s+\d{1,2}:\d{1,2}:\d{1,2}) +Value NAME ([a-zA-Z0-9*_.@]+) +Value ADDRESS (\S+) +Value VIA (local|telnet|ssh|winbox|api|web|tikapp|ftp|dude) + +Start + ^\s*Flags:\s+R\s+-\s+radius,\s+M\s+-\s+by-romon\s*$$ + ^\s*#\s+WHEN\s+NAME\s+ADDRESS\s+VIA\s*$$ -> ActiveUsersTable + ^\s*$$ + ^. -> Error + +ActiveUsersTable + ^\s*${ID}\s+${WHEN}\s+${NAME}\s+${ADDRESS}\s+${VIA}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.raw b/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.raw new file mode 100644 index 0000000000..571a81bb61 --- /dev/null +++ b/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.raw @@ -0,0 +1,4 @@ +Flags: R - radius, M - by-romon + # WHEN NAME ADDRESS VIA + 0 jul/21/2023 09:38:39 user1 1.2.3.4 ssh + 1 jul/21/2023 11:00:32 user2 1.2.3.5 telnet diff --git a/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.yml b/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.yml new file mode 100644 index 0000000000..027edef5a7 --- /dev/null +++ b/tests/mikrotik_routeros/user_active_print/mikrotik_routeros_user_active_print.yml @@ -0,0 +1,12 @@ +--- +parsed_sample: + - id: "0" + when: "jul/21/2023 09:38:39" + name: "user1" + address: "1.2.3.4" + via: "ssh" + - id: "1" + when: "jul/21/2023 11:00:32" + name: "user2" + address: "1.2.3.5" + via: "telnet" From 511f6983d3c2a27e4dce58048b79d35506c770b5 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:27:44 +0400 Subject: [PATCH 09/19] Template + test (#1506) --- ntc_templates/templates/index | 1 + ...mikrotik_routeros_ip_address_print.textfsm | 20 +++++++++++++ .../mikrotik_routeros_ip_address_print.raw | 8 +++++ .../mikrotik_routeros_ip_address_print.yml | 30 +++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_address_print.textfsm create mode 100644 tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.raw create mode 100644 tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 5261f1a7f8..cc6dfeb589 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -577,6 +577,7 @@ mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] +mikrotik_routeros_ip_address_print.textfsm, .*, mikrotik_routeros, [[/]]ip ad[[dress]] p[[rint]] paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]] paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all diff --git a/ntc_templates/templates/mikrotik_routeros_ip_address_print.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_address_print.textfsm new file mode 100644 index 0000000000..2a56a8424d --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_address_print.textfsm @@ -0,0 +1,20 @@ +Value NUM (\d+) +Value FLAGS (X|I|D) +Value COMMENT (.*) +Value IP (\S+) +Value SUBNET (\d+) +Value NETWORK (\S+) +Value INTERFACE (.*) + +Start + ^\s*Flags:\s+X\s+-\s+disabled,\s+I\s+-\s+invalid,\s+D\s+-\s+dynamic\s*$$ + ^\s*#\s+ADDRESS\s+NETWORK\s+INTERFACE\s*$$ -> IPsTable + ^\s*$$ + ^. -> Error + +IPsTable + ^\s*${NUM}\s+(?:${FLAGS}\s+)?${IP}/${SUBNET}\s+${NETWORK}\s+${INTERFACE}\s*$$ -> Record + ^\s*${NUM}\s+(?:${FLAGS}\s+)?;;;\s+${COMMENT}\s*$$ + ^\s*${IP}/${SUBNET}\s+${NETWORK}\s+${INTERFACE}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.raw b/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.raw new file mode 100644 index 0000000000..9985d9f4dd --- /dev/null +++ b/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.raw @@ -0,0 +1,8 @@ +Flags: X - disabled, I - invalid, D - dynamic + # ADDRESS NETWORK INTERFACE + 0 1.2.3.6/30 1.2.3.4 ether1 + 1 ;;; test ip1 + 192.167.1.5/27 192.167.1.0 eth2_vlan1 + 2 D 192.168.1.53/24 192.168.1.0 lte1 + 3 X ;;; test ip2 + 192.167.1.99/27 192.167.1.0 eth2_vlan2 diff --git a/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.yml b/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.yml new file mode 100644 index 0000000000..9db49d151d --- /dev/null +++ b/tests/mikrotik_routeros/ip_address_print/mikrotik_routeros_ip_address_print.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - num: "0" + flags: "" + comment: "" + ip: "1.2.3.6" + subnet: "30" + network: "1.2.3.4" + interface: "ether1" + - num: "1" + flags: "" + comment: "test ip1" + ip: "192.167.1.5" + subnet: "27" + network: "192.167.1.0" + interface: "eth2_vlan1" + - num: "2" + flags: "D" + comment: "" + ip: "192.168.1.53" + subnet: "24" + network: "192.168.1.0" + interface: "lte1" + - num: "3" + flags: "X" + comment: "test ip2" + ip: "192.167.1.99" + subnet: "27" + network: "192.167.1.0" + interface: "eth2_vlan2" From 403d07fad3b312c73fe6058a2767742e8e9c890e Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:30:54 +0400 Subject: [PATCH 10/19] Template + test (#1522) --- ntc_templates/templates/cisco_s300_show_system_id.textfsm | 6 ++++++ ntc_templates/templates/index | 1 + .../cisco_s300/show_system_id/cisco_s300_show_system_id.raw | 1 + .../cisco_s300/show_system_id/cisco_s300_show_system_id.yml | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 ntc_templates/templates/cisco_s300_show_system_id.textfsm create mode 100644 tests/cisco_s300/show_system_id/cisco_s300_show_system_id.raw create mode 100644 tests/cisco_s300/show_system_id/cisco_s300_show_system_id.yml diff --git a/ntc_templates/templates/cisco_s300_show_system_id.textfsm b/ntc_templates/templates/cisco_s300_show_system_id.textfsm new file mode 100644 index 0000000000..accdf646f3 --- /dev/null +++ b/ntc_templates/templates/cisco_s300_show_system_id.textfsm @@ -0,0 +1,6 @@ +Value SERIAL_NUMBER (\S+) + +Start + ^\s*Serial\s+number\s*:\s*${SERIAL_NUMBER}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index cc6dfeb589..9f28e8c7fb 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -379,6 +379,7 @@ cisco_nxos_show_vrf.textfsm, .*, cisco_nxos, sh[[ow]] vrf cisco_s300_show_interfaces_status.textfsm, .*, cisco_s300, sh[[ow]] int[[erfaces]] st[[atus]] cisco_s300_show_mac_address-table.textfsm, .*, cisco_s300, sh[[ow]] mac address-[[table]] cisco_s300_show_lldp_neighbors.textfsm, .*, cisco_s300, sh[[ow]] lld[[p]] neig[[hbors]] +cisco_s300_show_system_id.textfsm, .*, cisco_s300, sh[[ow]] system id cisco_s300_show_version.textfsm, .*, cisco_s300, sh[[ow]] ver[[sion]] cisco_wlc_ssh_show_flexconnect_group_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] fl[[exconnect]] gr[[oup]] s[[ummary]] diff --git a/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.raw b/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.raw new file mode 100644 index 0000000000..f89327e18b --- /dev/null +++ b/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.raw @@ -0,0 +1 @@ +Serial number : IDN123456AA diff --git a/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.yml b/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.yml new file mode 100644 index 0000000000..8737d29bbf --- /dev/null +++ b/tests/cisco_s300/show_system_id/cisco_s300_show_system_id.yml @@ -0,0 +1,3 @@ +--- +parsed_sample: + - serial_number: "IDN123456AA" From 7ae42cb053a571451aca5d3f3eb6cd727d0747be Mon Sep 17 00:00:00 2001 From: sliddjur Date: Fri, 27 Oct 2023 14:25:45 +0200 Subject: [PATCH 11/19] Cisco NXOS show port-channel summary fix (#1548) Co-authored-by: sliddjur --- ...sco_nxos_show_port-channel_summary.textfsm | 3 +- .../cisco_nxos_show_port-channel_summary3.raw | 30 ++++ .../cisco_nxos_show_port-channel_summary3.yml | 158 ++++++++++++++++++ 3 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.raw create mode 100644 tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.yml diff --git a/ntc_templates/templates/cisco_nxos_show_port-channel_summary.textfsm b/ntc_templates/templates/cisco_nxos_show_port-channel_summary.textfsm index 128a830633..869f4ec67b 100644 --- a/ntc_templates/templates/cisco_nxos_show_port-channel_summary.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_port-channel_summary.textfsm @@ -2,7 +2,7 @@ Value Required,Filldown BUNDLE_IFACE (Po\d+) Value Filldown BUNDLE_STATUS (\(\w+\)) Value Filldown BUNDLE_PROTO (\w+) Value Filldown BUNDLE_PROTO_STATE (\(\w+\)) -Value List PHYS_IFACE (Et.+?) +Value List PHYS_IFACE ([\w\/]+|\-\-) Value List PHYS_IFACE_STATUS (\(.+?\)) @@ -43,3 +43,4 @@ CASE2_RTE ^\s{37}Et.+?\s+${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue ^\s{37}Et.+?\s+Et.+?\s+${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue ^\s{37}Et.+?\s+Et.+?\s+Et.+?\s+${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue + ^\d+\s+${BUNDLE_IFACE}${BUNDLE_STATUS}\s+\w+\s+${BUNDLE_PROTO}\s+${PHYS_IFACE}($$) -> Next diff --git a/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.raw b/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.raw new file mode 100644 index 0000000000..c0c3d7151b --- /dev/null +++ b/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.raw @@ -0,0 +1,30 @@ +Flags: D - Down P - Up in port-channel (members) + I - Individual H - Hot-standby (LACP only) + s - Suspended r - Module-removed + S - Switched R - Routed + U - Up (port-channel) + M - Not in use. Min-links not met +-------------------------------------------------------------------------------- +Group Port- Type Protocol Member Ports + Channel +-------------------------------------------------------------------------------- +131 Po131(SU) Eth LACP Eth1/1(P) +132 Po132(SU) Eth LACP Eth1/2(P) +133 Po133(SU) Eth LACP Eth1/3(P) +134 Po134(SU) Eth LACP Eth1/4(P) +135 Po135(SD) Eth NONE -- +136 Po136(SD) Eth LACP Eth1/6(D) +137 Po137(SD) Eth NONE -- +138 Po138(SD) Eth LACP Eth1/24(D) +141 Po141(SD) Eth NONE -- +142 Po142(SD) Eth NONE -- +151 Po151(SD) Eth NONE -- +171 Po171(SU) Eth LACP Eth1/14(P) +172 Po172(SU) Eth LACP Eth1/15(P) +173 Po173(SU) Eth LACP Eth1/16(P) +174 Po174(SU) Eth LACP Eth1/17(P) +175 Po175(SD) Eth LACP Eth1/25(D) +176 Po176(SD) Eth LACP Eth1/27(D) +177 Po177(SD) Eth LACP Eth1/28(D) +178 Po178(SD) Eth NONE -- +200 Po200(SU) Eth LACP Eth1/21(P) Eth1/22(P) diff --git a/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.yml b/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.yml new file mode 100644 index 0000000000..07725e31ae --- /dev/null +++ b/tests/cisco_nxos/show_port-channel_summary/cisco_nxos_show_port-channel_summary3.yml @@ -0,0 +1,158 @@ +--- +parsed_sample: + - bundle_iface: "Po131" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/1" + phys_iface_status: + - "(P)" + - bundle_iface: "Po132" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/2" + phys_iface_status: + - "(P)" + - bundle_iface: "Po133" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/3" + phys_iface_status: + - "(P)" + - bundle_iface: "Po134" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/4" + phys_iface_status: + - "(P)" + - bundle_iface: "Po135" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po136" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "Eth1/6" + phys_iface_status: + - "(D)" + - bundle_iface: "Po137" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po138" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "Eth1/24" + phys_iface_status: + - "(D)" + - bundle_iface: "Po141" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po142" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po151" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po171" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/14" + phys_iface_status: + - "(P)" + - bundle_iface: "Po172" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/15" + phys_iface_status: + - "(P)" + - bundle_iface: "Po173" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/16" + phys_iface_status: + - "(P)" + - bundle_iface: "Po174" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/17" + phys_iface_status: + - "(P)" + - bundle_iface: "Po175" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "Eth1/25" + phys_iface_status: + - "(D)" + - bundle_iface: "Po176" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "Eth1/27" + phys_iface_status: + - "(D)" + - bundle_iface: "Po177" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "Eth1/28" + phys_iface_status: + - "(D)" + - bundle_iface: "Po178" + bundle_proto: "NONE" + bundle_proto_state: "" + bundle_status: "(SD)" + phys_iface: + - "--" + phys_iface_status: [] + - bundle_iface: "Po200" + bundle_proto: "LACP" + bundle_proto_state: "" + bundle_status: "(SU)" + phys_iface: + - "Eth1/21" + - "Eth1/22" + phys_iface_status: + - "(P)" + - "(P)" From 459a153442a1c74c77d0537c2aa4734e5d87df33 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Fri, 27 Oct 2023 16:29:35 +0400 Subject: [PATCH 12/19] Template + test (#1527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ...hp_comware_display_interface_brief.textfsm | 32 ++++++ ntc_templates/templates/index | 1 + .../hp_comware_display_interface_brief.raw | 21 ++++ .../hp_comware_display_interface_brief.yml | 101 ++++++++++++++++++ 4 files changed, 155 insertions(+) create mode 100644 ntc_templates/templates/hp_comware_display_interface_brief.textfsm create mode 100644 tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.raw create mode 100644 tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.yml diff --git a/ntc_templates/templates/hp_comware_display_interface_brief.textfsm b/ntc_templates/templates/hp_comware_display_interface_brief.textfsm new file mode 100644 index 0000000000..72abbea2f7 --- /dev/null +++ b/ntc_templates/templates/hp_comware_display_interface_brief.textfsm @@ -0,0 +1,32 @@ +Value INTERFACE (\S+) +Value LINK (\S+) +Value PROTOCOL ((?:UP|DOWN)(?:\(s\))?) +Value MAIN_IP (\S+) +Value SPEED (\S+) +Value DUPLEX (A|H|F) +Value TYPE (A|T|H) +Value PVID (\d+) +Value DESCRIPTION (.*?) + +Start + ^\s*The\s+brief\s+information\s+of\s+interface\(s\)\s+under\s+route\s+mode:\s*$$ + ^\s*Link:\s+ADM\s+-\s+administratively\s+down;\s+Stby\s+-\s+standby\s*$$ + ^\s*Protocol:\s+\(s\)\s+-\s+spoofing\s*$$ + ^\s*Interface\s+Link\s+Protocol\s+Main\s+IP\s+Description\s*$$ -> RouteModeIfaces + ^\s*The\s+brief\s+information\s+of\s+interface\(s\)\s+under\s+bridge\s+mode:\s*$$ + ^\s*Link:\s+ADM\s+-\s+administratively\s+down;\s+Stby\s+-\s+standby\s*$$ + ^\s*Speed\s+or\s+Duplex:\s+\(a\)/A\s+-\s+auto;\s+H\s+-\s+half;\s+F\s+-\s+full\s*$$ + ^\s*Type:\s+A\s+-\s+access;\s+T\s+-\s+trunk;\s+H\s+-\s+hybrid\s*$$ + ^\s*Interface\s+Link\s+Speed\s+Duplex\s+Type\s+PVID\s+Description\s*$$ -> BridgeModeIfaces + ^\s*$$ + ^. -> Error + +RouteModeIfaces + ^\s*${INTERFACE}\s+${LINK}\s+${PROTOCOL}\s+${MAIN_IP}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*$$ -> Start + ^. -> Error + +BridgeModeIfaces + ^${INTERFACE}\s+${LINK}\s+${SPEED}\s+${DUPLEX}\s+${TYPE}\s+${PVID}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 9f28e8c7fb..20926c3a20 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -496,6 +496,7 @@ hp_comware_display_counters_bound_interface.textfsm, .*, hp_comware, di[[splay]] hp_comware_display_link-aggregation_verbose.textfsm, .*, hp_comware, di[[splay]] link[[-aggregation]] v[[erbose]] hp_comware_display_ip_routing-table.textfsm, .*, hp_comware, di[[splay]] ip r[[outing-table]] hp_comware_display_device_manuinfo.textfsm, .*, hp_comware, di[[splay]] dev[[ice]] m[[anuinfo]] +hp_comware_display_interface_brief.textfsm, .*, hp_comware, di[[splay]] int[[erface]] brief hp_comware_display_ip_vpn-instance.textfsm, .*, hp_comware, di[[splay]] ip vpn[[-instance]] hp_comware_display_ip_interface.textfsm, .*, hp_comware, dis[[play]] ip i[[nterface]] hp_comware_display_mac-address.textfsm, .*, hp_comware, di[[splay]] mac-ad[[dress]] diff --git a/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.raw b/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.raw new file mode 100644 index 0000000000..c602261e20 --- /dev/null +++ b/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.raw @@ -0,0 +1,21 @@ +The brief information of interface(s) under route mode: +Link: ADM - administratively down; Stby - standby +Protocol: (s) - spoofing +Interface Link Protocol Main IP Description +Aux0 UP UP -- +Cellular0/0 DOWN DOWN -- +GE0/0 UP UP 192.168.100.1 The interface for connecting RouterA. +Loop0 UP UP(s) -- -- +MP0 DOWN DOWN -- +NULL0 UP UP(s) -- -- +Vlan1 DOWN DOWN 192.168.1.1 + +The brief information of interface(s) under bridge mode: +Link: ADM - administratively down; Stby - standby +Speed or Duplex: (a)/A - auto; H - half; F - full +Type: A - access; T - trunk; H - hybrid +Interface Link Speed Duplex Type PVID Description +GE0/1 DOWN auto A A 1 +GE0/2 DOWN auto A A 1 +GE0/3 DOWN auto A A 1 +GE0/4 DOWN auto A A 1 diff --git a/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.yml b/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.yml new file mode 100644 index 0000000000..e09c121511 --- /dev/null +++ b/tests/hp_comware/display_interface_brief/hp_comware_display_interface_brief.yml @@ -0,0 +1,101 @@ +--- +parsed_sample: + - description: "" + duplex: "" + interface: "Aux0" + link: "UP" + main_ip: "--" + protocol: "UP" + pvid: "" + speed: "" + type: "" + - description: "" + duplex: "" + interface: "Cellular0/0" + link: "DOWN" + main_ip: "--" + protocol: "DOWN" + pvid: "" + speed: "" + type: "" + - description: "The interface for connecting RouterA." + duplex: "" + interface: "GE0/0" + link: "UP" + main_ip: "192.168.100.1" + protocol: "UP" + pvid: "" + speed: "" + type: "" + - description: "--" + duplex: "" + interface: "Loop0" + link: "UP" + main_ip: "--" + protocol: "UP(s)" + pvid: "" + speed: "" + type: "" + - description: "" + duplex: "" + interface: "MP0" + link: "DOWN" + main_ip: "--" + protocol: "DOWN" + pvid: "" + speed: "" + type: "" + - description: "--" + duplex: "" + interface: "NULL0" + link: "UP" + main_ip: "--" + protocol: "UP(s)" + pvid: "" + speed: "" + type: "" + - description: "" + duplex: "" + interface: "Vlan1" + link: "DOWN" + main_ip: "192.168.1.1" + protocol: "DOWN" + pvid: "" + speed: "" + type: "" + - description: "" + duplex: "A" + interface: "GE0/1" + link: "DOWN" + main_ip: "" + protocol: "" + pvid: "1" + speed: "auto" + type: "A" + - description: "" + duplex: "A" + interface: "GE0/2" + link: "DOWN" + main_ip: "" + protocol: "" + pvid: "1" + speed: "auto" + type: "A" + - description: "" + duplex: "A" + interface: "GE0/3" + link: "DOWN" + main_ip: "" + protocol: "" + pvid: "1" + speed: "auto" + type: "A" + - description: "" + duplex: "A" + interface: "GE0/4" + link: "DOWN" + main_ip: "" + protocol: "" + pvid: "1" + speed: "auto" + type: "A" From 6fde21dd4ff7c4ffcb6bbbeb6eefa3c35933acbf Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Fri, 27 Oct 2023 16:30:17 +0400 Subject: [PATCH 13/19] Template + tests (#1529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ..._ethernet_poe_print_without-paging.textfsm | 16 ++++++++++ ...face_ethernet_poe_print_without-paging.raw | 5 ++++ ...face_ethernet_poe_print_without-paging.yml | 30 +++++++++++++++++++ ...ce_ethernet_poe_print_without-paging_2.raw | 5 ++++ ...ce_ethernet_poe_print_without-paging_2.yml | 30 +++++++++++++++++++ ...hernet_poe_print_without-paging_no_poe.raw | 1 + ...hernet_poe_print_without-paging_no_poe.yml | 2 ++ ...rnet_poe_print_without-paging_no_poe_2.raw | 1 + ...rnet_poe_print_without-paging_no_poe_2.yml | 2 ++ 10 files changed, 93 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.raw create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.yml create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.raw create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.yml create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.raw create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.yml create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.raw create mode 100644 tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 20926c3a20..7a0d0e3cbe 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -567,6 +567,7 @@ linux_ip_link_show.textfsm, .*, linux, ip l[[ink]] [[show]] linux_ip_vrf_show.textfsm, .*, linux, ip v[[rf]] [[show]] linux_arp_-a.textfsm, .*, linux, arp -a +mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] po[[e]] pr[[int]] wi[[thout-paging]] mikrotik_routeros_ip_firewall_filter_print_all_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall filter print( all)? without-paging mikrotik_routeros_ip_dhcp-server_lease_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip dhcp-server lease print without-paging mikrotik_routeros_ip_firewall_nat_print_all_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall nat print all without-paging diff --git a/ntc_templates/templates/mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm new file mode 100644 index 0000000000..2af4b8accd --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm @@ -0,0 +1,16 @@ +Value INDEX (\d+) +Value INTERFACE (\S+) +Value POE_OUT (\S+) +Value POE_VOLTAGE (\S+) +Value POE_PRIORITY (\S+) +Value POWER_CYCLE_PING_ENABLED (\S+) +Value POWER_CYCLE_INTERVAL (\S+) + +Start + ^\s*\#\s+NAME\s+POE\-OUT\s+POE\-PRIORITY\s+POWER\-CYCLE\-PING\-ENABLED\s+POWER\-CYCLE\-INTERVAL\s*$$ + ^\s*${INDEX}\s+${INTERFACE}\s+(${POE_OUT}\s+)?(${POE_PRIORITY}\s+)?(${POWER_CYCLE_PING_ENABLED}\s+)?(${POWER_CYCLE_INTERVAL})?\s*$$ -> Record + ^\s*\#\s+NAME\s+POE\-OUT\s+POE\-VOLTAGE\s+POE\-PRIORITY\s+POWER\-CYCLE\-PING\-ENABLED\s+POWER\-CYCLE\-INTERVAL\s*$$ + ^\s*${INDEX}\s+${INTERFACE}\s+(${POE_OUT}\s+)?(${POE_VOLTAGE}\s+)?(${POE_PRIORITY}\s+)?(${POWER_CYCLE_PING_ENABLED}\s+)?(${POWER_CYCLE_INTERVAL})?\s*$$ -> Record + ^\s*bad\s+command\s+name\s+po(e)?\s+\(line\s+\d+\s+column\s+\d+\)\s*$$ + ^\s*$$ + ^. -> Error \ No newline at end of file diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.raw b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.raw new file mode 100644 index 0000000000..868c3b7ce9 --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.raw @@ -0,0 +1,5 @@ + # NAME POE-OUT POE-PRIORITY POWER-CYCLE-PING-ENABLED POWER-CYCLE-INTERVAL + 0 ether2 auto-on 10 no none + 1 ether3 auto-on 10 no none + 2 ether4 auto-on 10 no none + 3 ether5 auto-on 10 no none diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.yml b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.yml new file mode 100644 index 0000000000..8f6cc6df95 --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - index: "0" + interface: "ether2" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "1" + interface: "ether3" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "2" + interface: "ether4" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "3" + interface: "ether5" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.raw b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.raw new file mode 100644 index 0000000000..1569eebbd5 --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.raw @@ -0,0 +1,5 @@ + # NAME POE-OUT POE-VOLTAGE POE-PRIORITY POWER-CYCLE-PING-ENABLED POWER-CYCLE-INTERVAL + 0 ether2 auto-on 10 no none + 1 ether3 auto-on 10 no none + 2 ether4 auto-on 10 no none + 3 ether5 auto-on 10 no none diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.yml b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.yml new file mode 100644 index 0000000000..8f6cc6df95 --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_2.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - index: "0" + interface: "ether2" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "1" + interface: "ether3" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "2" + interface: "ether4" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" + - index: "3" + interface: "ether5" + poe_out: "auto-on" + poe_voltage: "" + poe_priority: "10" + power_cycle_ping_enabled: "no" + power_cycle_interval: "none" diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.raw b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.raw new file mode 100644 index 0000000000..b2b911c3c2 --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.raw @@ -0,0 +1 @@ +bad command name poe (line 1 column 21) diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.yml b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.yml new file mode 100644 index 0000000000..e77add67ed --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe.yml @@ -0,0 +1,2 @@ +--- +parsed_sample: [] diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.raw b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.raw new file mode 100644 index 0000000000..7092a036fa --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.raw @@ -0,0 +1 @@ +bad command name po (line 1 column 7) diff --git a/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.yml b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.yml new file mode 100644 index 0000000000..e77add67ed --- /dev/null +++ b/tests/mikrotik_routeros/interface_ethernet_poe_print_without-paging/mikrotik_routeros_interface_ethernet_poe_print_without-paging_no_poe_2.yml @@ -0,0 +1,2 @@ +--- +parsed_sample: [] From 085c55ee3a21444a582911eb890cc5930a124b1e Mon Sep 17 00:00:00 2001 From: tom0010 <41154665+tom0010@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:45:07 +0000 Subject: [PATCH 14/19] Add multiple vrf support (#1553) * Add vrf support for arista eos show ip bgp detail * Update tests for arista eos show ip bgp detail * Add vrf support for cisco nxos show ip bgp neighbors * Update tests for cisco nxos show ip bgp neighbors * Add vrf, local_as, and router_id support for arista eos show ip bgp * Update tests for arista eos show ip bgp * Renamed cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors to cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes, change NETWORK to PREFIX and PREFIX_LENGTH * Change index for cisco nxos show bgp vrf all ipv4 unicast neighbors to accommodate for the correct commands, support multiple VRFs * Rename tests for cisco nxos show bgp vrf all ipv4 unicast neighbors to support correct commands. Replace NETWORK with PREFIX and PREFIX_LENGTH * Remove redundant folder * Add missing tests due to rename for cisco nxos show bgp vrf all ipv4 unicast neighbors routes --- .../templates/arista_eos_show_ip_bgp.textfsm | 12 +- .../arista_eos_show_ip_bgp_detail.textfsm | 7 +- ...all_ipv4_unicast_neighbors_routes.textfsm} | 13 +- .../cisco_nxos_show_ip_bgp_neighbors.textfsm | 2 + ntc_templates/templates/index | 2 +- .../show_ip_bgp/arista_eos_show_ip_bgp.raw | 9 + .../show_ip_bgp/arista_eos_show_ip_bgp.yml | 37 ++ .../show_ip_bgp/arista_eos_show_ip_bgp2.raw | 2 +- .../show_ip_bgp/arista_eos_show_ip_bgp2.yml | 405 ++++++++++++++++++ .../arista_eos_show_ip_bgp_detail.raw | 9 + .../arista_eos_show_ip_bgp_detail.yml | 26 ++ ...rf_all_ipv4_unicast_neighbors_routes1.raw} | 0 ...rf_all_ipv4_unicast_neighbors_routes1.yml} | 132 ++++-- ...rf_all_ipv4_unicast_neighbors_routes2.raw} | 0 ...rf_all_ipv4_unicast_neighbors_routes2.yml} | 33 +- .../cisco_nxos_show_ip_bgp_neighbors.raw | 61 +++ .../cisco_nxos_show_ip_bgp_neighbors.yml | 117 +++++ ...how_ip_bgp_neighbors_with_policy_names.yml | 1 + 18 files changed, 792 insertions(+), 76 deletions(-) rename ntc_templates/templates/{cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm => cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes.textfsm} (68%) rename tests/cisco_nxos/{show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw => show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.raw} (100%) rename tests/cisco_nxos/{show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml => show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.yml} (78%) rename tests/cisco_nxos/{show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw => show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.raw} (100%) rename tests/cisco_nxos/{show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml => show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.yml} (78%) diff --git a/ntc_templates/templates/arista_eos_show_ip_bgp.textfsm b/ntc_templates/templates/arista_eos_show_ip_bgp.textfsm index 0a8f12db99..6c489767f2 100644 --- a/ntc_templates/templates/arista_eos_show_ip_bgp.textfsm +++ b/ntc_templates/templates/arista_eos_show_ip_bgp.textfsm @@ -8,14 +8,14 @@ Value LOCAL_PREF (\S+) Value WEIGHT (\S+) Value AS_PATH (.*?) Value ORIGIN ([ie\?]) +Value Filldown VRF (\S+) +Value Filldown LOCAL_AS (\d+\.\d+|\d+) +Value Filldown ROUTER_ID (\S+) Start - # Since using mostly position, play it safe and ensure we see header first - ^AS Path Attributes.+ -> Bgp_table - -Bgp_table - # Example: - # * 0.0.0.0/0 100.100.10.226 0 350 0 65000 65000 65000 64810 64800 i + ^BGP\s+routing\s+table\s+information\s+for\s+VRF\s+${VRF} + ^Router\s+identifier\s+${ROUTER_ID},\s+local\s+AS\s+number\s+${LOCAL_AS} + ^AS Path Attributes.+ ^\s${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}\s+${NETWORK}\s+${NEXT_HOP}\s+${METRIC}\s+${LOCAL_PREF}\s+${WEIGHT}\s+${AS_PATH}\s+${ORIGIN}$$ -> Record EOF diff --git a/ntc_templates/templates/arista_eos_show_ip_bgp_detail.textfsm b/ntc_templates/templates/arista_eos_show_ip_bgp_detail.textfsm index 81e9be6b01..06172f3bef 100644 --- a/ntc_templates/templates/arista_eos_show_ip_bgp_detail.textfsm +++ b/ntc_templates/templates/arista_eos_show_ip_bgp_detail.textfsm @@ -11,15 +11,14 @@ Value COMMUNITY ((?:(?:(?:no-export|no-advertise|local-as|internet)|\d+\s?:\s?\d Value NEXT_HOP (\d+\.\d+\.\d+\.\d+) Value NEIGHBOR (\S+) Value NEIGHBOR_ID (\S+) +Value Filldown VRF (\S+) Value Filldown ROUTER_ID (\S+) Value Filldown LOCAL_AS (\S+) Value METRIC (\d+) Start - ^BGP\s+routing\s+table\sinformation.+ - ^Router\s+identifier\s+${ROUTER_ID},\s+local\s+AS\s+number\s+${LOCAL_AS} -> Path - -Path + ^BGP\s+routing\s+table\sinformation\s+for\s+VRF\s+${VRF} + ^Router\s+identifier\s+${ROUTER_ID},\s+local\s+AS\s+number\s+${LOCAL_AS} ^BGP\s+routing\s+table\s+entry\s+for\s+${PREFIX}(?:/${PREFIX_LENGTH})? ^\s+Paths:\s+\d+\s+available ^\s+${AS_PATH}\s*$$ diff --git a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes.textfsm similarity index 68% rename from ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm rename to ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes.textfsm index 854f61873a..8406dcd361 100644 --- a/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes.textfsm @@ -1,19 +1,15 @@ -# Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best Value STATUS ([sxSdh*]) -# ? \| multipath Value PATH_SELECTION ([> |]) -# Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected Value ROUTE_SOURCE ([ieclarI]) -Value Filldown NETWORK ([A-Fa-f0-9:\.]+\/\d+) +Value Filldown PREFIX ([A-Fa-f0-9:\.]+) +Value Filldown PREFIX_LENGTH (\d+) Value NEXT_HOP ([A-Fa-f0-9:\.]+) Value METRIC (\d+) Value LOCAL_PREF (\d+) Value WEIGHT (\d+) Value AS_PATH ((\d+|\{\d+)(\.\d+?|\s.*?)*) -# Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup Value ORIGIN ([ie\?\|&]) - Start ^Can't\s+find\s+neighbor ^Peer\s+ @@ -25,18 +21,17 @@ Start ^. -> Error Bgp_table - # # Match first when there is no network, since previous line had it already (compliment and filldown below) # Older table format, with blank values parsing not reliable. (cisco_nxos_show_ip_bgp.raw) # Network Next Hop Metric LocPrf Weight Path # Example: *>e10.10.101.4/30 10.10.2.1 0 64102 i # Example: *>e 10.10.1.1 0 64101 64002 i - ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}${NETWORK}(\s{0,12}${NEXT_HOP}\s{4}|\s{20})(\s{2,14}${METRIC}|\s{8})(\s{1,18}${LOCAL_PREF}|\s{8})(\s{1,22}${WEIGHT})(\s${AS_PATH})?\s${ORIGIN}$$ -> Record + ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}${PREFIX}/${PREFIX_LENGTH}(\s{0,12}${NEXT_HOP}\s{4}|\s{20})(\s{2,14}${METRIC}|\s{8})(\s{1,18}${LOCAL_PREF}|\s{8})(\s{1,22}${WEIGHT})(\s${AS_PATH})?\s${ORIGIN}$$ -> Record ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}\s\s\s{16}(\s{0,12}${NEXT_HOP}\s{4}|\s{20})(\s{2,14}${METRIC}|\s{8})(\s{1,18}${LOCAL_PREF}|\s{8})(\s{1,22}${WEIGHT})(\s${AS_PATH})?\s${ORIGIN}$$ -> Record # # Match newer format (cisco_nxos_show_ip_bgp1.raw) # Example: * e0.0.0.0/0 1.2.3.4 4294967295 0 12345.102 - ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}${NETWORK}\s${NEXT_HOP}\s${METRIC}\s${LOCAL_PREF}\s${WEIGHT}(\s${AS_PATH})?\s${ORIGIN}$$ -> Record + ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}${PREFIX}/${PREFIX_LENGTH}\s${NEXT_HOP}\s${METRIC}\s${LOCAL_PREF}\s${WEIGHT}(\s${AS_PATH})?\s${ORIGIN}$$ -> Record ^${STATUS}${PATH_SELECTION}${ROUTE_SOURCE}\s${NEXT_HOP}\s${METRIC}\s${LOCAL_PREF}\s${WEIGHT}(\s${AS_PATH})?\s${ORIGIN}$$ -> Record ^. -> Error diff --git a/ntc_templates/templates/cisco_nxos_show_ip_bgp_neighbors.textfsm b/ntc_templates/templates/cisco_nxos_show_ip_bgp_neighbors.textfsm index 1bbba2c574..d9a1246315 100644 --- a/ntc_templates/templates/cisco_nxos_show_ip_bgp_neighbors.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_ip_bgp_neighbors.textfsm @@ -1,6 +1,7 @@ Value NEIGHBOR (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) Value PEER_GROUP (\S+) Value DESCRIPTION (.*) +Value VRF (\S+) Value ASN (\d+|\d+\.\d+) Value REMOTE_ASN (\d+|\d+\.\d+) Value LOCAL_ASN (\d+|\d+\.\d+) @@ -62,6 +63,7 @@ Start ^\s+Inherits.+\s${PEER_GROUP} ^\s+Description:\s+${DESCRIPTION} ^\s+BGP state = ${BGP_STATE}, \w+ for ${UPTIME} + ^\s+Neighbor\s+vrf:\s+${VRF} ^\s+Using ${SOURCE_IFACE} as [\w\s]+ ^\s+[\w\s]+, interface ${SOURCE_IFACE} ^\s+Connections established ${CONN_ESTAB}, dropped ${CONN_DROPPED} diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 7a0d0e3cbe..fff4c2703d 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -308,8 +308,8 @@ cisco_ios_show_vrf.textfsm, .*, cisco_ios, sh[[ow]] vrf cisco_ios_ping.textfsm, .*, cisco_ios, ping cisco_ios_dir.textfsm, .*, cisco_ios, dir +cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes.textfsm, .*, cisco_nxos, sh[[ow]] bg[[p]] v[[rf]] (\S+) ipv4 uni[[cast]] neigh[[bors]] (ro[[utes]]|re[[ceived-routes]]|a[[dvertised-routes]]) cisco_nxos_show_l2rib_internal_permanently-frozen-list.textfsm, .*, cisco_nxos, sh[[ow]] l2ri[[b]] i[[nternal]] pe[[rmanently-frozen-list]] -cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] bg[[p]] v[[rf]] all ip[[v4]] uni[[cast]] neigh[[bors]] cisco_nxos_show_ip_pim_interface_brief_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip pim int[[erface]] br[[ief]] vrf all cisco_nxos_show_configuration_session_summary.textfsm, .*, cisco_nxos, sh[[ow]] configu[[ration]] s[[ession]] su[[mmary]] cisco_nxos_show_interface_transceiver_details.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]] tra[[nsceiver]] de[[tails]] diff --git a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.raw b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.raw index 85a5e4ad3e..8f903d4b6c 100644 --- a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.raw +++ b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.raw @@ -14,3 +14,12 @@ AS Path Attributes: Or-ID - Originator ID, C-LST - Cluster List, LL Nexthop - Li * # 10.104.2.0/24 10.10.10.20 0 100 0 104 i * # 10.104.3.0/24 10.10.10.20 0 100 0 104 i * # 10.104.4.0/24 10.10.10.20 0 100 0 104 i +BGP routing table information for VRF INTERNET +Router identifier 172.26.159.40, local AS number 62222.4003 +Route status codes: s - suppressed, * - valid, > - active, # - not installed, E - ECMP head, e - ECMP + S - Stale, c - Contributing to ECMP, b - backup, L - labeled-unicast +Origin codes: i - IGP, e - EGP, ? - incomplete +AS Path Attributes: Or-ID - Originator ID, C-LST - Cluster List, LL Nexthop - Link Local Nexthop + + Network Next Hop Metric LocPref Weight Path + * > 10.9.41.96/29 172.26.159.6 0 5000 0 62222.4002 ? diff --git a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.yml b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.yml index 90db158693..af31421c62 100644 --- a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.yml +++ b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp.yml @@ -1,82 +1,119 @@ --- parsed_sample: - as_path: "" + local_as: "103" local_pref: "0" metric: "1" network: "10.103.1.0/24" next_hop: "-" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: ">" status: "*" + vrf: "default" weight: "-" - as_path: "" + local_as: "103" local_pref: "0" metric: "1" network: "10.103.2.0/24" next_hop: "-" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: ">" status: "*" + vrf: "default" weight: "-" - as_path: "" + local_as: "103" local_pref: "0" metric: "1" network: "10.103.3.0/24" next_hop: "-" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: ">" status: "*" + vrf: "default" weight: "-" - as_path: "" + local_as: "103" local_pref: "0" metric: "1" network: "10.103.4.0/24" next_hop: "-" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: ">" status: "*" + vrf: "default" weight: "-" - as_path: "104" + local_as: "103" local_pref: "100" metric: "0" network: "10.104.1.0/24" next_hop: "10.10.10.20" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: "#" status: "*" + vrf: "default" weight: "0" - as_path: "104" + local_as: "103" local_pref: "100" metric: "0" network: "10.104.2.0/24" next_hop: "10.10.10.20" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: "#" status: "*" + vrf: "default" weight: "0" - as_path: "104" + local_as: "103" local_pref: "100" metric: "0" network: "10.104.3.0/24" next_hop: "10.10.10.20" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: "#" status: "*" + vrf: "default" weight: "0" - as_path: "104" + local_as: "103" local_pref: "100" metric: "0" network: "10.104.4.0/24" next_hop: "10.10.10.20" origin: "i" path_selection: " " + router_id: "10.103.1.1" route_source: "#" status: "*" + vrf: "default" + weight: "0" + - as_path: "62222.4002" + local_as: "62222.4003" + local_pref: "5000" + metric: "0" + network: "10.9.41.96/29" + next_hop: "172.26.159.6" + origin: "?" + path_selection: " " + router_id: "172.26.159.40" + route_source: ">" + status: "*" + vrf: "INTERNET" weight: "0" diff --git a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.raw b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.raw index e88eac8639..751ed5c410 100644 --- a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.raw +++ b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.raw @@ -1,4 +1,4 @@ -GP routing table information for VRF default +BGP routing table information for VRF default Router identifier 200.200.202.4, local AS number 64805 Route status codes: s - suppressed, * - valid, > - active, E - ECMP head, e - ECMP S - Stale, c - Contributing to ECMP diff --git a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.yml b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.yml index ef6b785e83..5f0c3c57c4 100644 --- a/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.yml +++ b/tests/arista_eos/show_ip_bgp/arista_eos_show_ip_bgp2.yml @@ -1,1352 +1,1757 @@ --- parsed_sample: - as_path: "64908 64907 64906" + local_as: "64805" local_pref: "450" metric: "0" network: "0.0.0.0/0" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "450" metric: "0" network: "0.0.0.0/0" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "350" metric: "0" network: "0.0.0.0/0" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "250" metric: "0" network: "0.0.0.0/0" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.16.0.0/20" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.16.0.0/20" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "350" metric: "0" network: "10.16.0.0/20" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "250" metric: "0" network: "10.16.0.0/20" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.0.0/16" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.0.0/16" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.0.0/16" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64920" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.12.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64920" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.12.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64920" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.12.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64918" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.108.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64918" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.108.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64918" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.108.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64917" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.120.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64917" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.120.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64917" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.120.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64919" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.158.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64919" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.158.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64919" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.158.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64921" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.186.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64921" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.186.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64921" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.186.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64922" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.212.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64922" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.212.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64922" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.212.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64923" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.214.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64923" + local_as: "64805" local_pref: "250" metric: "0" network: "10.20.214.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64923" + local_as: "64805" local_pref: "100" metric: "0" network: "10.20.214.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.0.0/16" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.0.0/16" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.0.0/16" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.0.0/16" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.6.0/23" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.6.0/23" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.6.0/23" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.6.0/23" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.6.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.6.0/24" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.6.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.6.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.8.0/25" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.8.0/25" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.8.0/25" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64909" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.8.0/25" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64910" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.41.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.41.0/24" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.41.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.41.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64910" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.42.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.42.0/24" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.42.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64910" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.42.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64911" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.202.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64911" + local_as: "64805" local_pref: "450" metric: "0" network: "10.24.202.0/24" next_hop: "200.200.58.242" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64911" + local_as: "64805" local_pref: "350" metric: "0" network: "10.24.202.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64911" + local_as: "64805" local_pref: "250" metric: "0" network: "10.24.202.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64912" + local_as: "64805" local_pref: "450" metric: "0" network: "10.26.59.0/24" next_hop: "200.200.103.194" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "450" metric: "0" network: "10.26.59.0/24" next_hop: "200.200.58.242" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "350" metric: "0" network: "10.26.59.0/24" next_hop: "200.200.58.226" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "250" metric: "0" network: "10.26.59.0/24" next_hop: "200.200.58.210" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64906 64912" + local_as: "64805" local_pref: "450" metric: "0" network: "10.26.60.0/22" next_hop: "200.200.103.194" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "450" metric: "0" network: "10.26.60.0/22" next_hop: "200.200.58.242" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "350" metric: "0" network: "10.26.60.0/22" next_hop: "200.200.58.226" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64906 64912" + local_as: "64805" local_pref: "250" metric: "0" network: "10.26.60.0/22" next_hop: "200.200.58.210" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.0.0/16" next_hop: "200.200.103.194" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.0.0/16" next_hop: "200.200.58.210" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900" + local_as: "64805" local_pref: "100" metric: "0" network: "10.28.0.0/16" next_hop: "200.200.58.226" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.24.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.24.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "100" metric: "0" network: "10.28.24.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.30.0/24" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "250" metric: "0" network: "10.28.30.0/24" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905 64903" + local_as: "64805" local_pref: "100" metric: "0" network: "10.28.30.0/24" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.96.0.0/16" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.96.0.0/16" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913" + local_as: "64805" local_pref: "100" metric: "0" network: "10.96.0.0/16" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.96.32.0/21" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.96.32.0/21" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64915" + local_as: "64805" local_pref: "100" metric: "0" network: "10.96.32.0/21" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64914 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.97.0.0/16" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913" + local_as: "64805" local_pref: "250" metric: "0" network: "10.97.0.0/16" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913" + local_as: "64805" local_pref: "100" metric: "0" network: "10.97.0.0/16" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.97.32.0/21" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.97.32.0/21" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "100" metric: "0" network: "10.97.32.0/21" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.99.32.0/21" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.99.32.0/21" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64913 64915" + local_as: "64805" local_pref: "100" metric: "0" network: "10.99.32.0/21" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.100.32.0/21" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "250" metric: "0" network: "10.100.32.0/21" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64916 64914 64913 64915" + local_as: "64805" local_pref: "100" metric: "0" network: "10.100.32.0/21" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.0/18" next_hop: "200.200.103.194" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.0/18" next_hop: "200.200.58.210" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.0/18" next_hop: "200.200.58.226" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.64/30" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.64/30" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.64/30" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.68/30" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.68/30" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.68/30" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.80/30" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.80/30" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.80/30" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.84/30" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.84/30" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.84/30" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.192/28" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.192/28" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.192/28" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "12.104.128.208/29" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.128.208/29" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.128.208/29" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.179.0/25" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.179.0/25" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.179.0/25" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.180.0/25" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.180.0/25" next_hop: "200.200.58.218" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64901 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.180.0/25" next_hop: "200.200.58.234" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.1/32" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.1/32" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.190.1/32" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.2/32" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.2/32" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.190.2/32" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.3/32" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.3/32" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.190.3/32" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.4/32" next_hop: "200.200.103.194" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.190.4/32" next_hop: "200.200.58.210" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64908 64908 64907 64902 64900 64905" + local_as: "64805" local_pref: "100" metric: "0" network: "10.104.190.4/32" next_hop: "200.200.58.226" origin: "i" path_selection: " " + router_id: "200.200.202.4" route_source: " " status: "*" + vrf: "default" weight: "0" - as_path: "64908 64907 64902 64900 64904" + local_as: "64805" local_pref: "250" metric: "0" network: "10.104.192.0/18" next_hop: "200.200.103.194" origin: "?" path_selection: " " + router_id: "200.200.202.4" route_source: ">" status: "*" + vrf: "default" weight: "0" diff --git a/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.raw b/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.raw index 6f4e9d1d51..9078b8f341 100644 --- a/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.raw +++ b/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.raw @@ -73,3 +73,12 @@ BGP routing table entry for 10.107.1.0/24 Community: no-export Rx path id: 0x1 Rx SAFI: Unicast +BGP routing table information for VRF CLOUD +Router identifier 10.105.1.1, local AS number 105 +BGP routing table entry for 10.105.1.0/24 + Paths: 1 available + 6111 6211566 42669611124 4266644366 4266643244 + 10.99.1.2 from 10.105.6.2 (10.15.1.1) + Origin INCOMPLETE, metric 0, localpref 100, IGP metric 1, weight 0, received 13d11h ago, valid, external, best + Community: internet 10050:200 10222:10010 3223:0 1000:17044 + Rx SAFI: Unicast diff --git a/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.yml b/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.yml index b437dcaec8..5750de7cc8 100644 --- a/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.yml +++ b/tests/arista_eos/show_ip_bgp_detail/arista_eos_show_ip_bgp_detail.yml @@ -15,6 +15,7 @@ parsed_sample: path_type: "external" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "" as_path: "6333 623566 42669.611124 4266644366 4266643244" @@ -31,6 +32,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "best" as_path: "6333 623566 42669611124 {432556}" @@ -47,6 +49,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "best" as_path: "6333 623566 42669611124 {432556}" @@ -63,6 +66,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "" as_path: "Local (aggregated by 2345223 10.10.11.3)" @@ -79,6 +83,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "best" as_path: "6333 623566 42669611124 {432556}" @@ -95,6 +100,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "" as_path: "Local (aggregated by 2345223 10.10.11.3)" @@ -111,6 +117,7 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "best" as_path: "Local" @@ -127,6 +134,7 @@ parsed_sample: path_type: "external" router_id: "10.103.1.1" valid: "valid" + vrf: "default" weight: "0" - active: "best" as_path: "Local (Received from a RR-client)" @@ -143,4 +151,22 @@ parsed_sample: path_type: "internal" router_id: "10.103.1.1" valid: "valid" + vrf: "default" + weight: "0" + - active: "best" + as_path: "6111 6211566 42669611124 4266644366 4266643244" + community: "internet 10050:200 10222:10010 3223:0 1000:17044" + local_as: "105" + local_pref: "100" + neighbor: "10.105.6.2" + neighbor_id: "10.15.1.1" + prefix: "10.105.1.0" + prefix_length: "24" + next_hop: "10.99.1.2" + metric: "0" + origin: "INCOMPLETE" + path_type: "external" + router_id: "10.105.1.1" + valid: "valid" + vrf: "CLOUD" weight: "0" diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.raw similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.raw rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.raw diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.yml similarity index 78% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.yml index dee446b27c..2f92ebf333 100644 --- a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors1.yml +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes1.yml @@ -3,7 +3,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.0.1/32" + prefix: "10.10.0.1" + prefix_length: "32" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -13,7 +14,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "10.10.0.2/32" + prefix: "10.10.0.2" + prefix_length: "32" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -23,7 +25,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "10.10.0.2/32" + prefix: "10.10.0.2" + prefix_length: "32" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -33,7 +36,8 @@ parsed_sample: - as_path: "64101" local_pref: "" metric: "" - network: "10.10.0.101/32" + prefix: "10.10.0.101" + prefix_length: "32" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -43,7 +47,8 @@ parsed_sample: - as_path: "64102" local_pref: "" metric: "" - network: "10.10.0.102/32" + prefix: "10.10.0.102" + prefix_length: "32" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -53,7 +58,8 @@ parsed_sample: - as_path: "64102 64201" local_pref: "" metric: "" - network: "10.10.0.201/32" + prefix: "10.10.0.201" + prefix_length: "32" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -63,7 +69,8 @@ parsed_sample: - as_path: "64101 64201" local_pref: "" metric: "" - network: "10.10.0.201/32" + prefix: "10.10.0.201" + prefix_length: "32" next_hop: "10.10.1.1" origin: "i" path_selection: " " @@ -73,7 +80,8 @@ parsed_sample: - as_path: "64102 64202" local_pref: "" metric: "" - network: "10.10.0.202/32" + prefix: "10.10.0.202" + prefix_length: "32" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -83,7 +91,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.1.0/30" + prefix: "10.10.1.0" + prefix_length: "30" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -93,7 +102,8 @@ parsed_sample: - as_path: "64101" local_pref: "" metric: "" - network: "10.10.1.0/30" + prefix: "10.10.1.0" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: " " @@ -103,7 +113,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "10.10.1.4/30" + prefix: "10.10.1.4" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -113,7 +124,8 @@ parsed_sample: - as_path: "64101" local_pref: "" metric: "" - network: "10.10.1.4/30" + prefix: "10.10.1.4" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -123,7 +135,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.2.0/30" + prefix: "10.10.2.0" + prefix_length: "30" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -133,7 +146,8 @@ parsed_sample: - as_path: "64102" local_pref: "" metric: "" - network: "10.10.2.0/30" + prefix: "10.10.2.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -143,7 +157,8 @@ parsed_sample: - as_path: "64102" local_pref: "" metric: "" - network: "10.10.2.4/30" + prefix: "10.10.2.4" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -153,7 +168,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "10.10.2.4/30" + prefix: "10.10.2.4" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: " " @@ -163,7 +179,8 @@ parsed_sample: - as_path: "64102 64201" local_pref: "" metric: "" - network: "10.10.101.0/30" + prefix: "10.10.101.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -173,7 +190,8 @@ parsed_sample: - as_path: "64101" local_pref: "" metric: "" - network: "10.10.101.0/30" + prefix: "10.10.101.0" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -183,7 +201,8 @@ parsed_sample: - as_path: "64102" local_pref: "" metric: "" - network: "10.10.101.4/30" + prefix: "10.10.101.4" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -193,7 +212,8 @@ parsed_sample: - as_path: "64101 64201" local_pref: "" metric: "" - network: "10.10.101.4/30" + prefix: "10.10.101.4" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: " " @@ -203,7 +223,8 @@ parsed_sample: - as_path: "64102 64202" local_pref: "" metric: "" - network: "10.10.102.0/30" + prefix: "10.10.102.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -213,7 +234,8 @@ parsed_sample: - as_path: "64101" local_pref: "" metric: "" - network: "10.10.102.0/30" + prefix: "10.10.102.0" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -223,7 +245,8 @@ parsed_sample: - as_path: "64102" local_pref: "" metric: "" - network: "10.10.102.4/30" + prefix: "10.10.102.4" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -233,7 +256,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.150.0/24" + prefix: "10.10.150.0" + prefix_length: "24" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -243,7 +267,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.151.0/24" + prefix: "10.10.151.0" + prefix_length: "24" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -253,7 +278,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "10.10.152.0/24" + prefix: "10.10.152.0" + prefix_length: "24" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -263,7 +289,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "10.10.160.0/24" + prefix: "10.10.160.0" + prefix_length: "24" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -273,7 +300,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "10.10.160.0/24" + prefix: "10.10.160.0" + prefix_length: "24" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -283,7 +311,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "10.10.161.0/24" + prefix: "10.10.161.0" + prefix_length: "24" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -293,7 +322,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "10.10.161.0/24" + prefix: "10.10.161.0" + prefix_length: "24" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -303,7 +333,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "10.10.162.0/24" + prefix: "10.10.162.0" + prefix_length: "24" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -313,7 +344,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "10.10.162.0/24" + prefix: "10.10.162.0" + prefix_length: "24" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -323,7 +355,8 @@ parsed_sample: - as_path: "64102 64201" local_pref: "" metric: "" - network: "10.10.201.0/30" + prefix: "10.10.201.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -333,7 +366,8 @@ parsed_sample: - as_path: "64101 64201" local_pref: "" metric: "" - network: "10.10.201.0/30" + prefix: "10.10.201.0" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: " " @@ -343,7 +377,8 @@ parsed_sample: - as_path: "64102 64202" local_pref: "" metric: "" - network: "10.10.202.0/30" + prefix: "10.10.202.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -353,7 +388,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "100.100.100.100/30" + prefix: "100.100.100.100" + prefix_length: "30" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -363,7 +399,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "100.100.100.104/30" + prefix: "100.100.100.104" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -373,7 +410,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "100.100.100.104/30" + prefix: "100.100.100.104" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -383,7 +421,8 @@ parsed_sample: - as_path: "64102 {64201 64202}" local_pref: "" metric: "" - network: "100.100.100.108/30" + prefix: "100.100.100.108" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -393,7 +432,8 @@ parsed_sample: - as_path: "64102 {64201 64202} 64203" local_pref: "" metric: "" - network: "100.100.100.112/30" + prefix: "100.100.100.112" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -403,7 +443,8 @@ parsed_sample: - as_path: "64102 {64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.114/30" + prefix: "100.100.100.114" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -413,7 +454,8 @@ parsed_sample: - as_path: "{64102 64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.116/30" + prefix: "100.100.100.116" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -423,7 +465,8 @@ parsed_sample: - as_path: "64102.444 {64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.118/30" + prefix: "100.100.100.118" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -433,7 +476,8 @@ parsed_sample: - as_path: "{64102.333 64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.120/30" + prefix: "100.100.100.120" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.raw similarity index 100% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.raw rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.raw diff --git a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.yml similarity index 78% rename from tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml rename to tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.yml index b4d30936ab..e2552fdfa2 100644 --- a/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors2.yml +++ b/tests/cisco_nxos/show_bgp_vrf_all_ipv4_unicast_neighbors_routes/cisco_nxos_show_bgp_vrf_all_ipv4_unicast_neighbors_routes2.yml @@ -3,7 +3,8 @@ parsed_sample: - as_path: "100 200" local_pref: "5000" metric: "" - network: "10.20.20.0/27" + prefix: "10.20.20.0" + prefix_length: "27" next_hop: "10.1.1.1" origin: "i" path_selection: ">" @@ -13,7 +14,8 @@ parsed_sample: - as_path: "64102 64202" local_pref: "" metric: "" - network: "10.10.202.0/30" + prefix: "10.10.202.0" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -23,7 +25,8 @@ parsed_sample: - as_path: "" local_pref: "100" metric: "" - network: "100.100.100.100/30" + prefix: "100.100.100.100" + prefix_length: "30" next_hop: "0.0.0.0" origin: "i" path_selection: ">" @@ -33,7 +36,8 @@ parsed_sample: - as_path: "64102 64002" local_pref: "" metric: "" - network: "100.100.100.104/30" + prefix: "100.100.100.104" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: " " @@ -43,7 +47,8 @@ parsed_sample: - as_path: "64101 64002" local_pref: "" metric: "" - network: "100.100.100.104/30" + prefix: "100.100.100.104" + prefix_length: "30" next_hop: "10.10.1.1" origin: "i" path_selection: ">" @@ -53,7 +58,8 @@ parsed_sample: - as_path: "64102 {64201 64202}" local_pref: "" metric: "" - network: "100.100.100.108/30" + prefix: "100.100.100.108" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -63,7 +69,8 @@ parsed_sample: - as_path: "64102 {64201 64202} 64203" local_pref: "" metric: "" - network: "100.100.100.112/30" + prefix: "100.100.100.112" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -73,7 +80,8 @@ parsed_sample: - as_path: "64102 {64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.114/30" + prefix: "100.100.100.114" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -83,7 +91,8 @@ parsed_sample: - as_path: "{64102 64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.116/30" + prefix: "100.100.100.116" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -93,7 +102,8 @@ parsed_sample: - as_path: "64102.444 {64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.118/30" + prefix: "100.100.100.118" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" @@ -103,7 +113,8 @@ parsed_sample: - as_path: "{64102.333 64201 64202} 64203 64500.2345" local_pref: "" metric: "" - network: "100.100.100.120/30" + prefix: "100.100.100.120" + prefix_length: "30" next_hop: "10.10.2.1" origin: "i" path_selection: ">" diff --git a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.raw b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.raw index b472bffeea..a8643908e7 100644 --- a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.raw +++ b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.raw @@ -3408,3 +3408,64 @@ BGP neighbor is 13.187.14.99, remote AS 65273.435, local AS 4355, ebgp link, P Local host: 12.22.65.52, Local port: 42267 Foreign host: 83.26.83.25, Foreign port: 179 fd = 91 +BGP neighbor is 19.13.1.12, remote AS 65273.3334, local AS 2202, ebgp link, Peer index 3 + Inherits peer configuration from peer-template Standard-Leg + Description: TEST + BGP version 4, remote router ID 11.22.33.44 + BGP state = Established, up for 71w2d + Neighbor vrf: CLOUD + Using loopback0 as update source for this peer + Last read 00:00:19, hold time = 180, keepalive interval is 60 seconds + Last written 00:00:02, keepalive timer expiry due 00:00:20 + Received 33431221 messages, 0 notifications, 0 bytes in queue + Sent 33285112 messages, 2 notifications, 0 bytes in queue + Connections established 3, dropped 2 + Last reset by us 71w2d, due to holdtimer expired error + Last reset by peer never, due to No error + + Neighbor capabilities: + Dynamic capability: advertised (mp, refresh, gr) received (mp, refresh, gr) + Dynamic capability (old): advertised received + Route refresh capability (new): advertised received + Route refresh capability (old): advertised received + 4-Byte AS capability: advertised received + Address family IPv4 Unicast: advertised received + Address family IPv6 Unicast: advertised received + Address family L2VPN EVPN: advertised received + Graceful Restart capability: advertised received + + Graceful Restart Parameters: + Address families advertised to peer: + IPv4 Unicast + Address families received from peer: + IPv4 Unicast + Forwarding state preserved by peer for: + Restart time advertised to peer: 120 seconds + Stale time for routes advertised by peer: 300 seconds + Restart time advertised by peer: 120 seconds + Extended Next Hop Encoding Capability: advertised received + Receive IPv6 next hop encoding Capability for AF: + IPv4 Unicast + + Message statistics: + Sent Rcvd + Opens: 1 6 + Notifications: 2 0 + Updates: 120032 3333 + Keepalives: 342020 111845 + Route Refresh: 3 0 + Capability: 9 9 + Total: 62481 25117 + Total bytes: 1212221 38154 + Bytes in queue: 0 0 + + For address family: IPv4 Unicast + BGP table version 220, neighbor version 227 + 31 accepted paths consume 3968 bytes of memory + 7 sent paths + Third-party Nexthop will not be computed. + Last End-of-RIB received 00:00:19 after session start + + Local host: 23.55.61.2, Local port: 42267 + Foreign host: 86.11.82.26, Foreign port: 179 + fd = 91 diff --git a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.yml b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.yml index 39e99fb72a..03148f2baa 100644 --- a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.yml +++ b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors.yml @@ -61,6 +61,7 @@ parsed_sample: updates_count_rcvd: "743363" updates_count_sent: "8514" uptime: "1d01h" + vrf: "" - accepted_paths: "8458" addr_fam_adv: "IPv4 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -122,6 +123,7 @@ parsed_sample: updates_count_rcvd: "697776" updates_count_sent: "8559" uptime: "1w0d" + vrf: "" - accepted_paths: "8458" addr_fam_adv: "IPv4 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -183,6 +185,7 @@ parsed_sample: updates_count_rcvd: "744278" updates_count_sent: "8558" uptime: "3d21h" + vrf: "" - accepted_paths: "8458" addr_fam_adv: "IPv4 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -244,6 +247,7 @@ parsed_sample: updates_count_rcvd: "744351" updates_count_sent: "8566" uptime: "3d15h" + vrf: "" - accepted_paths: "0" addr_fam_adv: "IPv4 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -302,6 +306,7 @@ parsed_sample: updates_count_rcvd: "1" updates_count_sent: "1" uptime: "3d15h" + vrf: "" - accepted_paths: "0" addr_fam_adv: "IPv4 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -360,6 +365,7 @@ parsed_sample: updates_count_rcvd: "1" updates_count_sent: "1" uptime: "3d15h" + vrf: "" - accepted_paths: "0" addr_fam_adv: "" addr_fam_rcv: "" @@ -418,6 +424,7 @@ parsed_sample: updates_count_rcvd: "0" updates_count_sent: "0" uptime: "3d16h" + vrf: "" - accepted_paths: "0" addr_fam_adv: "" addr_fam_rcv: "" @@ -476,6 +483,7 @@ parsed_sample: updates_count_rcvd: "0" updates_count_sent: "0" uptime: "3d16h" + vrf: "" - accepted_paths: "51195" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -534,6 +542,7 @@ parsed_sample: updates_count_rcvd: "857498" updates_count_sent: "938868" uptime: "13w2d" + vrf: "" - accepted_paths: "51195" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -592,6 +601,7 @@ parsed_sample: updates_count_rcvd: "875258" updates_count_sent: "937989" uptime: "13w2d" + vrf: "" - accepted_paths: "117" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -650,6 +660,7 @@ parsed_sample: updates_count_rcvd: "633313" updates_count_sent: "1534229" uptime: "13w2d" + vrf: "" - accepted_paths: "2" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -708,6 +719,7 @@ parsed_sample: updates_count_rcvd: "529532" updates_count_sent: "1534343" uptime: "13w2d" + vrf: "" - accepted_paths: "2" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -766,6 +778,7 @@ parsed_sample: updates_count_rcvd: "536991" updates_count_sent: "1533678" uptime: "13w2d" + vrf: "" - accepted_paths: "12" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -824,6 +837,7 @@ parsed_sample: updates_count_rcvd: "653827" updates_count_sent: "1533676" uptime: "13w2d" + vrf: "" - accepted_paths: "9" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -882,6 +896,7 @@ parsed_sample: updates_count_rcvd: "635238" updates_count_sent: "1533414" uptime: "13w2d" + vrf: "" - accepted_paths: "12" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -940,6 +955,7 @@ parsed_sample: updates_count_rcvd: "635285" updates_count_sent: "1533446" uptime: "13w2d" + vrf: "" - accepted_paths: "10" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -998,6 +1014,7 @@ parsed_sample: updates_count_rcvd: "657289" updates_count_sent: "1534639" uptime: "13w2d" + vrf: "" - accepted_paths: "3" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1056,6 +1073,7 @@ parsed_sample: updates_count_rcvd: "676579" updates_count_sent: "1532707" uptime: "13w2d" + vrf: "" - accepted_paths: "1" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1114,6 +1132,7 @@ parsed_sample: updates_count_rcvd: "673811" updates_count_sent: "1532747" uptime: "13w2d" + vrf: "" - accepted_paths: "247" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1172,6 +1191,7 @@ parsed_sample: updates_count_rcvd: "645646" updates_count_sent: "1532440" uptime: "13w2d" + vrf: "" - accepted_paths: "61" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1230,6 +1250,7 @@ parsed_sample: updates_count_rcvd: "651138" updates_count_sent: "1531755" uptime: "13w2d" + vrf: "" - accepted_paths: "324" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -1288,6 +1309,7 @@ parsed_sample: updates_count_rcvd: "4645" updates_count_sent: "1529417" uptime: "13w2d" + vrf: "" - accepted_paths: "258" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1346,6 +1368,7 @@ parsed_sample: updates_count_rcvd: "634933" updates_count_sent: "1534379" uptime: "13w2d" + vrf: "" - accepted_paths: "265" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1404,6 +1427,7 @@ parsed_sample: updates_count_rcvd: "650489" updates_count_sent: "1532715" uptime: "13w2d" + vrf: "" - accepted_paths: "33" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1462,6 +1486,7 @@ parsed_sample: updates_count_rcvd: "664426" updates_count_sent: "1532601" uptime: "13w2d" + vrf: "" - accepted_paths: "7" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1520,6 +1545,7 @@ parsed_sample: updates_count_rcvd: "654504" updates_count_sent: "1533067" uptime: "13w2d" + vrf: "" - accepted_paths: "0" addr_fam_adv: "" addr_fam_rcv: "" @@ -1578,6 +1604,7 @@ parsed_sample: updates_count_rcvd: "0" updates_count_sent: "0" uptime: "13w2d" + vrf: "" - accepted_paths: "6" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1636,6 +1663,7 @@ parsed_sample: updates_count_rcvd: "277837" updates_count_sent: "1531531" uptime: "13w2d" + vrf: "" - accepted_paths: "54" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1694,6 +1722,7 @@ parsed_sample: updates_count_rcvd: "85" updates_count_sent: "1531655" uptime: "13w2d" + vrf: "" - accepted_paths: "94" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1752,6 +1781,7 @@ parsed_sample: updates_count_rcvd: "618470" updates_count_sent: "1533153" uptime: "13w2d" + vrf: "" - accepted_paths: "155" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1810,6 +1840,7 @@ parsed_sample: updates_count_rcvd: "157" updates_count_sent: "1530946" uptime: "13w2d" + vrf: "" - accepted_paths: "358" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1868,6 +1899,7 @@ parsed_sample: updates_count_rcvd: "675340" updates_count_sent: "1530832" uptime: "13w2d" + vrf: "" - accepted_paths: "5" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1926,6 +1958,7 @@ parsed_sample: updates_count_rcvd: "643578" updates_count_sent: "1532184" uptime: "13w2d" + vrf: "" - accepted_paths: "3" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -1984,6 +2017,7 @@ parsed_sample: updates_count_rcvd: "645340" updates_count_sent: "1533949" uptime: "13w2d" + vrf: "" - accepted_paths: "5" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2042,6 +2076,7 @@ parsed_sample: updates_count_rcvd: "3" updates_count_sent: "1531502" uptime: "13w2d" + vrf: "" - accepted_paths: "5" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2100,6 +2135,7 @@ parsed_sample: updates_count_rcvd: "648401" updates_count_sent: "1533275" uptime: "13w2d" + vrf: "" - accepted_paths: "3" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2158,6 +2194,7 @@ parsed_sample: updates_count_rcvd: "2" updates_count_sent: "1531346" uptime: "13w2d" + vrf: "" - accepted_paths: "0" addr_fam_adv: "" addr_fam_rcv: "" @@ -2216,6 +2253,7 @@ parsed_sample: updates_count_rcvd: "0" updates_count_sent: "0" uptime: "13w2d" + vrf: "" - accepted_paths: "21" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2274,6 +2312,7 @@ parsed_sample: updates_count_rcvd: "2" updates_count_sent: "1" uptime: "13w2d" + vrf: "" - accepted_paths: "6" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2332,6 +2371,7 @@ parsed_sample: updates_count_rcvd: "2683" updates_count_sent: "1531827" uptime: "13w2d" + vrf: "" - accepted_paths: "32" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2390,6 +2430,7 @@ parsed_sample: updates_count_rcvd: "253" updates_count_sent: "1533270" uptime: "13w2d" + vrf: "" - accepted_paths: "6" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2448,6 +2489,7 @@ parsed_sample: updates_count_rcvd: "9" updates_count_sent: "1549371" uptime: "9w4d" + vrf: "" - accepted_paths: "110" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2506,6 +2548,7 @@ parsed_sample: updates_count_rcvd: "79" updates_count_sent: "1578342" uptime: "1d06h" + vrf: "" - accepted_paths: "0" addr_fam_adv: "" addr_fam_rcv: "" @@ -2564,6 +2607,7 @@ parsed_sample: updates_count_rcvd: "0" updates_count_sent: "0" uptime: "13w2d" + vrf: "" - accepted_paths: "55" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2622,6 +2666,7 @@ parsed_sample: updates_count_rcvd: "223" updates_count_sent: "1547924" uptime: "10w5d" + vrf: "" - accepted_paths: "642" addr_fam_adv: "Sent Rcvd" addr_fam_rcv: "" @@ -2680,6 +2725,7 @@ parsed_sample: updates_count_rcvd: "226933" updates_count_sent: "1527603" uptime: "13w2d" + vrf: "" - accepted_paths: "11" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2738,6 +2784,7 @@ parsed_sample: updates_count_rcvd: "3" updates_count_sent: "1535502" uptime: "13w2d" + vrf: "" - accepted_paths: "1" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2796,6 +2843,7 @@ parsed_sample: updates_count_rcvd: "2" updates_count_sent: "1533672" uptime: "13w2d" + vrf: "" - accepted_paths: "26" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2854,6 +2902,7 @@ parsed_sample: updates_count_rcvd: "18" updates_count_sent: "1533539" uptime: "13w2d" + vrf: "" - accepted_paths: "4" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2912,6 +2961,7 @@ parsed_sample: updates_count_rcvd: "15" updates_count_sent: "1563738" uptime: "10w5d" + vrf: "" - accepted_paths: "5" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -2970,6 +3020,7 @@ parsed_sample: updates_count_rcvd: "7" updates_count_sent: "1533546" uptime: "13w2d" + vrf: "" - accepted_paths: "1" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -3028,6 +3079,7 @@ parsed_sample: updates_count_rcvd: "2" updates_count_sent: "1534921" uptime: "13w2d" + vrf: "" - accepted_paths: "51100" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -3086,6 +3138,7 @@ parsed_sample: updates_count_rcvd: "1000017" updates_count_sent: "913861" uptime: "12w6d" + vrf: "" - accepted_paths: "51100" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -3144,6 +3197,7 @@ parsed_sample: updates_count_rcvd: "1108031" updates_count_sent: "955014" uptime: "11w4d" + vrf: "" - accepted_paths: "52809" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -3202,6 +3256,7 @@ parsed_sample: updates_count_rcvd: "1334218" updates_count_sent: "1321374" uptime: "11w5d" + vrf: "" - accepted_paths: "12901" addr_fam_adv: "IPv4 Unicast" addr_fam_rcv: "" @@ -3260,6 +3315,7 @@ parsed_sample: updates_count_rcvd: "1067023" updates_count_sent: "1506061" uptime: "13w2d" + vrf: "" - accepted_paths: "2159" addr_fam_adv: "IPv4 Unicast IPv6 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -3324,6 +3380,7 @@ parsed_sample: updates_count_rcvd: "21260" updates_count_sent: "4200" uptime: "3w5d" + vrf: "" - accepted_paths: "21" addr_fam_adv: "IPv4 Unicast IPv6 Unicast L2VPN EVPN" addr_fam_rcv: "" @@ -3388,3 +3445,63 @@ parsed_sample: updates_count_rcvd: "230" updates_count_sent: "1200" uptime: "7w1d" + vrf: "" + - accepted_paths: "31" + addr_fam_adv: "IPv4 Unicast" + addr_fam_rcv: "" + addr_family: + - "IPv4 Unicast" + asn: "65273.3334" + bgp_state: "Established" + capability_count_rcvd: "9" + capability_count_sent: "9" + conn_dropped: "2" + conn_estab: "3" + consumed_mem: "3968" + description: "TEST" + ext_nh_cap: "advertised received" + fourbyte_cap: "advertised received" + graceful_cap: "advertised received" + inbound_routemap: "" + keepalives_count_rcvd: "111845" + keepalives_count_sent: "342020" + last_peer_reset: "never" + last_peer_reset_reason: "No error" + last_reset: "71w2d" + last_reset_reason: "holdtimer expired error" + local_asn: "2202" + localhost_ip: "23.55.61.2" + localhost_port: "42267" + nei_table_version: + - "227" + neighbor: "19.13.1.12" + notifications_count_rcvd: "0" + notifications_count_sent: "2" + opens_count_rcvd: "6" + opens_count_sent: "1" + outbound_routemap: "" + peer_group: "Standard-Leg" + remote_asn: "65273.3334" + remote_ip: "86.11.82.26" + remote_port: "179" + restart_time_adv: "120" + restart_time_rcv: "120" + route_refresh_count_rcvd: "0" + route_refresh_count_sent: "3" + rr_new_cap: "advertised received" + rr_old_cap: "advertised received" + sent_paths: "7" + source_iface: "loopback0" + stale_time: "300" + table_version: + - "220" + total_bytes_count_rcvd: "38154" + total_bytes_count_sent: "1212221" + total_bytes_rcvd_queue: "0" + total_bytes_send_queue: "0" + total_mess_count_rcvd: "25117" + total_mess_count_sent: "62481" + updates_count_rcvd: "3333" + updates_count_sent: "120032" + uptime: "71w2d" + vrf: "CLOUD" diff --git a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_with_policy_names.yml b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_with_policy_names.yml index c4324c15aa..4b86e7413e 100644 --- a/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_with_policy_names.yml +++ b/tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_with_policy_names.yml @@ -58,3 +58,4 @@ parsed_sample: updates_count_rcvd: "58" updates_count_sent: "576" uptime: "2d00h" + vrf: "" From 83df6ec588468b301d73b34414d60195af946337 Mon Sep 17 00:00:00 2001 From: Guillaume Bauer <11538064+TheTeapot418@users.noreply.github.com> Date: Fri, 3 Nov 2023 01:17:15 +0100 Subject: [PATCH 15/19] Added Cisco IOS show ap cdp neighbors template (#1555) * Added Cisco IOS show ap cdp neighbors template --- .../cisco_ios_show_ap_cdp_neighbors.textfsm | 13 +++++++++++ ntc_templates/templates/index | 1 + .../cisco_ios_show_ap_cdp_neighbors.raw | 8 +++++++ .../cisco_ios_show_ap_cdp_neighbors.yml | 22 +++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_ap_cdp_neighbors.textfsm create mode 100644 tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.raw create mode 100644 tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.yml diff --git a/ntc_templates/templates/cisco_ios_show_ap_cdp_neighbors.textfsm b/ntc_templates/templates/cisco_ios_show_ap_cdp_neighbors.textfsm new file mode 100644 index 0000000000..e90d161de3 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_ap_cdp_neighbors.textfsm @@ -0,0 +1,13 @@ +Value AP_NAME (\S+) +Value AP_IP ([a-fA-F0-9:\.]+) +Value NEIGHBOR_NAME (\S+) +Value NEIGHBOR_IP ([a-fA-F0-9:\.]+) +Value NEIGHBOR_PORT ([a-zA-Z0-9\/\.]+) + +Start + ^[a-zA-Z]+\s[a-z]+\s[a-zA-z]+:\s\d+$$ + ^AP\sName\s+AP\sIP\s+Neighbor\sName\s+Neighbor\sIP\s+Neighbor\sPort\s*$$ + ^-+\s*$$ + ^${AP_NAME}\s+${AP_IP}\s+${NEIGHBOR_NAME}\s+${NEIGHBOR_IP}\s+${NEIGHBOR_PORT}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index fff4c2703d..3bded766c8 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -239,6 +239,7 @@ cisco_ios_show_ip_source_binding.textfsm, .*, cisco_ios, sh[[ow]] ip sou[[rce]] cisco_ios_show_ip_vrf_interfaces.textfsm, .*, cisco_ios, sh[[ow]] ip vr[[f]] in[[terfaces]] cisco_ios_show_ipv6_access-lists.textfsm, .*, cisco_ios, sh[[ow]] ipv6 acce[[ss-lists]] cisco_ios_show_mac-address-table.textfsm, .*, cisco_ios, sh[[ow]] mac[[-address-table]] +cisco_ios_show_ap_cdp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ap c[[dp]] n[[eighbors]] cisco_ios_show_ip_bgp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp nei[[ghbors]] cisco_ios_show_ip_ospf_database.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] cisco_ios_show_ip_ospf_neighbor.textfsm, .*, cisco_ios, sh[[ow]] ip ospf nei[[ghbor]] diff --git a/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.raw b/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.raw new file mode 100644 index 0000000000..35ec5caaef --- /dev/null +++ b/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.raw @@ -0,0 +1,8 @@ +Number of neighbors: 4 + +AP Name AP IP Neighbor Name Neighbor IP Neighbor Port +------------------------------------------------------------------------------------------------------------------------------------------------------------- +AP-INDOOR-01 192.0.2.1 sw-test-123.local.lan 192.0.2.101 GigabitEthernet1/0/1 +AP-INDOOR-02 192.0.2.2 sw_test 192.0.2.103 Ethernet1/1 +AP-OUTDOOR-01 192.0.2.3 sw456.example.lan 192.2.0.67 TenGigabitEthernet1/0/10.45 +AP-OUTDOOR-02 2001:db8:abc:def::1234 sw456.example.lan 192.2.0.67 TenGigabitEthernet1/0/10.45 diff --git a/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.yml b/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.yml new file mode 100644 index 0000000000..157a497fa8 --- /dev/null +++ b/tests/cisco_ios/show_ap_cdp_neighbors/cisco_ios_show_ap_cdp_neighbors.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - ap_ip: "192.0.2.1" + ap_name: "AP-INDOOR-01" + neighbor_ip: "192.0.2.101" + neighbor_name: "sw-test-123.local.lan" + neighbor_port: "GigabitEthernet1/0/1" + - ap_ip: "192.0.2.2" + ap_name: "AP-INDOOR-02" + neighbor_ip: "192.0.2.103" + neighbor_name: "sw_test" + neighbor_port: "Ethernet1/1" + - ap_ip: "192.0.2.3" + ap_name: "AP-OUTDOOR-01" + neighbor_ip: "192.2.0.67" + neighbor_name: "sw456.example.lan" + neighbor_port: "TenGigabitEthernet1/0/10.45" + - ap_ip: "2001:db8:abc:def::1234" + ap_name: "AP-OUTDOOR-02" + neighbor_ip: "192.2.0.67" + neighbor_name: "sw456.example.lan" + neighbor_port: "TenGigabitEthernet1/0/10.45" From 8a8a533483e7303a0f94bc5b765c77006e0bc1fd Mon Sep 17 00:00:00 2001 From: Zak Lantz Date: Thu, 2 Nov 2023 20:21:44 -0400 Subject: [PATCH 16/19] Added a template for cisco_ftd_show_vpn-sessiondb_anyconnect (#1552) --- ..._ftd_show_vpn-sessiondb_anyconnect.textfsm | 55 +++++++++++++++++++ ntc_templates/templates/index | 2 + ...isco_ftd_show_vpn-sessiondb_anyconnect.raw | 16 ++++++ ...isco_ftd_show_vpn-sessiondb_anyconnect.yml | 30 ++++++++++ 4 files changed, 103 insertions(+) create mode 100644 ntc_templates/templates/cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm create mode 100644 tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.raw create mode 100644 tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.yml diff --git a/ntc_templates/templates/cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm b/ntc_templates/templates/cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm new file mode 100644 index 0000000000..484517fd26 --- /dev/null +++ b/ntc_templates/templates/cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm @@ -0,0 +1,55 @@ +Value Filldown,Required SESSION_TYPE (\S+) +Value USERNAME (\S+) +Value Required INDEX (\d+) +Value ASSIGNED_IP (\d+\.\d+\.\d+\.\d+) +Value PUBLIC_IP (\S+) +Value ASSIGNED_IPV6 (\S+) +Value PROTOCOL (.+?) +Value LICENSE (.+?) +Value ENCRYPTION (.+?) +Value HASHING (.+?) +Value BYTES_TX (\d+) +Value BYTES_RX (\d+) +Value GROUP_POLICY (\S+) +Value TUNNEL_GROUP (\S+) +Value LOGIN_TIME (\d+:\d+:\d+) +Value LOGIN_TIME_ZONE (\S+) +Value LOGIN_WEEKDAY (\w+) +Value LOGIN_MONTH (\w+) +Value LOGIN_DAY (\d+) +Value LOGIN_YEAR (\d+) +Value DURATION (.+?) +Value INACTIVITY (.+?) +Value VLAN_MAPPING (\S+) +Value VLAN_ID (.+?) +Value AUDT_SESS_ID (.+?) +Value SECURITY_GRP (\S+) +Value TUNNEL_ZONE (\d+) + +Start + ^Session\s+Type:\s+${SESSION_TYPE}$$ -> Connection + +Connection + ^\s*Username\s*:\s+${USERNAME}\s+Index\s+:\s*${INDEX}$$ + ^\s*Username\s*:\s+${USERNAME}$$ + ^\s*Index\s*:\s+${INDEX}$$ + ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}\s+Public\s*IP\s*:\s*${PUBLIC_IP}$$ + ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}$$ + ^\s*Assigned\s+IPv6\s*:\s+${ASSIGNED_IPV6}$$ + ^\s*Public\s+IP\s*:\s+${PUBLIC_IP}$$ + ^\s*Protocol\s+:\s+${PROTOCOL}$$ + ^\s*License\s+:\s*${LICENSE}$$ + ^\s*Encryption\s+:\s*${ENCRYPTION}$$ + ^\s*Hashing\s+:\s*${HASHING}$$ + ^\s*Bytes\s+Tx\s+:\s+${BYTES_TX}\s+Bytes\s+Rx\s+:\s+${BYTES_RX}$$ + ^\s*Group\s+Policy\s+:\s+${GROUP_POLICY}\s+Tunnel\s+Group\s+:\s+${TUNNEL_GROUP}$$ + ^\s*Group\s+Policy\s+:\s+${GROUP_POLICY}$$ + ^\s*Tunnel\s+Group\s+:\s+${TUNNEL_GROUP}$$ + ^\s*Login\s+Time\s+:\s+${LOGIN_TIME}\s+${LOGIN_TIME_ZONE}\s+${LOGIN_WEEKDAY}\s+${LOGIN_MONTH}\s+${LOGIN_DAY}\s+${LOGIN_YEAR}$$ + ^\s*Duration\s+:\s+${DURATION}$$ + ^\s*Inactivity\s+:\s+${INACTIVITY}$$ + ^\s*VLAN\s+Mapping\s+:\s+${VLAN_MAPPING}\s+VLAN\s+:\s+${VLAN_ID}$$ + ^\s*Audt\s+Sess\s+ID\s+:\s+${AUDT_SESS_ID}$$ + ^\s*Security\s+Grp\s+:\s+${SECURITY_GRP}\s+Tunnel\s+Zone\s+:\s+${TUNNEL_ZONE}$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 3bded766c8..3c3a9b6d8f 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -200,6 +200,8 @@ cisco_asa_show_nat.textfsm, .*, cisco_asa, sh[[ow]] nat cisco_asa_ping.textfsm, .*, cisco_(asa|ftd), ping cisco_asa_dir.textfsm, .*, cisco_asa, dir +cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm, .*, cisco_ftd, sh[[ow]] vpn-[[sessiondb]] a[[nyconnect]] + cisco_ios_show_module.textfsm:cisco_ios_show_module_status.textfsm:cisco_ios_show_module_submodule.textfsm:cisco_ios_show_module_online_diag.textfsm, .*, cisco_ios, sh[[ow]] mod[[ule]] cisco_ios_show_switch_detail.textfsm:cisco_ios_show_switch_detail_stack_ports.textfsm, .*, cisco_ios, sh[[ow]] sw[[itch]] d[[etail]] cisco_ios_show_running-config_partition_access-list.textfsm, .*, cisco_ios, sh[[ow]] ru[[nning-config]] p[[artition]] a[[ccess-list]] diff --git a/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.raw b/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.raw new file mode 100644 index 0000000000..76eab97c5a --- /dev/null +++ b/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.raw @@ -0,0 +1,16 @@ +Session Type: AnyConnect + +Username : USER Index : 7033 +Assigned IP : 10.0.0.1 Public IP : 1.1.1.1 +Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel +License : AnyConnect Premium +Encryption : AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES-GCM-256 +Hashing : AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA384 +Bytes Tx : 67583000 Bytes Rx : 20229428 +Group Policy : ABC_GRP_POL Tunnel Group : DefaultWEBVPNGroup +Login Time : 05:06:11 UTC Fri Oct 20 2023 +Duration : 12h:51m:51s +Inactivity : 0h:00m:00s +VLAN Mapping : N/A VLAN : none +Audt Sess ID : d05f30eb01b7900065320ac3 +Security Grp : none Tunnel Zone : 0 diff --git a/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.yml b/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.yml new file mode 100644 index 0000000000..5769838428 --- /dev/null +++ b/tests/cisco_ftd/show_vpn-sessiondb_anyconnect/cisco_ftd_show_vpn-sessiondb_anyconnect.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - assigned_ip: "10.0.0.1" + assigned_ipv6: "" + audt_sess_id: "d05f30eb01b7900065320ac3" + bytes_rx: "20229428" + bytes_tx: "67583000" + duration: "12h:51m:51s" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES-GCM-256" + group_policy: "ABC_GRP_POL" + hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA384" + inactivity: "0h:00m:00s" + index: "7033" + license: "AnyConnect Premium" + login_day: "20" + login_month: "Oct" + login_time: "05:06:11" + login_time_zone: "UTC" + login_weekday: "Fri" + login_year: "2023" + protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" + public_ip: "1.1.1.1" + security_grp: "none" + session_type: "AnyConnect" + tunnel_group: "DefaultWEBVPNGroup" + tunnel_zone: "0" + username: "USER" + vlan_id: "none" + vlan_mapping: "N/A" From 2e6bfd7d9035b3b74c756d84532218b2806c274b Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:41:42 +0400 Subject: [PATCH 17/19] Add Extreme platform with 6 templates (#1526) * Add new platform 'extreme' + 6 templates (without tests) --- .gitignore | 1 + .../templates/extreme_show_ipconfig.textfsm | 63 ++ .../extreme_show_ports_description.textfsm | 18 + .../extreme_show_ports_information.textfsm | 41 ++ ...reme_show_ports_information_detail.textfsm | 26 + .../templates/extreme_show_sharing.textfsm | 29 + .../extreme_show_vlan_description.textfsm | 17 + ntc_templates/templates/index | 7 + .../show_ipconfig/extreme_show_ipconfig.raw | 33 + .../show_ipconfig/extreme_show_ipconfig.yml | 34 ++ .../extreme_show_ports_description.raw | 51 ++ .../extreme_show_ports_description.yml | 146 +++++ .../extreme_show_ports_information.raw | 69 +++ .../extreme_show_ports_information.yml | 578 ++++++++++++++++++ .../extreme_show_ports_information_brief.raw | 135 ++++ .../extreme_show_ports_information_brief.yml | 30 + .../show_sharing/extreme_show_sharing.raw | 21 + .../show_sharing/extreme_show_sharing.yml | 84 +++ .../extreme_show_vlan_description.raw | 48 ++ .../extreme_show_vlan_description.yml | 122 ++++ 20 files changed, 1553 insertions(+) create mode 100644 ntc_templates/templates/extreme_show_ipconfig.textfsm create mode 100644 ntc_templates/templates/extreme_show_ports_description.textfsm create mode 100644 ntc_templates/templates/extreme_show_ports_information.textfsm create mode 100644 ntc_templates/templates/extreme_show_ports_information_detail.textfsm create mode 100644 ntc_templates/templates/extreme_show_sharing.textfsm create mode 100644 ntc_templates/templates/extreme_show_vlan_description.textfsm create mode 100644 tests/extreme/show_ipconfig/extreme_show_ipconfig.raw create mode 100644 tests/extreme/show_ipconfig/extreme_show_ipconfig.yml create mode 100644 tests/extreme/show_ports_description/extreme_show_ports_description.raw create mode 100644 tests/extreme/show_ports_description/extreme_show_ports_description.yml create mode 100644 tests/extreme/show_ports_information/extreme_show_ports_information.raw create mode 100644 tests/extreme/show_ports_information/extreme_show_ports_information.yml create mode 100644 tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.raw create mode 100644 tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml create mode 100644 tests/extreme/show_sharing/extreme_show_sharing.raw create mode 100644 tests/extreme/show_sharing/extreme_show_sharing.yml create mode 100644 tests/extreme/show_vlan_description/extreme_show_vlan_description.raw create mode 100644 tests/extreme/show_vlan_description/extreme_show_vlan_description.yml diff --git a/.gitignore b/.gitignore index 1b1e55d7e5..c71f040f97 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ +tox.ini .nox/ .coverage .coverage.* diff --git a/ntc_templates/templates/extreme_show_ipconfig.textfsm b/ntc_templates/templates/extreme_show_ipconfig.textfsm new file mode 100644 index 0000000000..ca32f58eeb --- /dev/null +++ b/ntc_templates/templates/extreme_show_ipconfig.textfsm @@ -0,0 +1,63 @@ +Value USE_REDIRECTS (.*) +Value IP_OPTION_LSRR (.*) +Value IP_OPTION_SSRR (.*) +Value IP_OPTION_RR (.*) +Value IP_OPTION_TS (.*) +Value IP_OPTION_RA (.*) +Value ROUTE_SHARING (.*) +Value ROUTE_COMPRESSION (.*) +Value ORIGINATED_PACKETS (.*) +Value MAX_SHARED_GATEWAYS_CURRENT (\d+) +Value MAX_SHARED_GATEWAYS_CONFIGURED (\d+) +Value ROUTE_SHARING_HASH (.*) +Value IRDP_ADVERTISEMENT_ADDRESS (\S+) +Value IRDP_MAX_INTERVAL (\d+) +Value IRDP_MIN_INTERVAL (\d+) +Value IRDP_LIFETIME (\d+) +Value IRDP_PREFERENCE (\d+) +Value List INTERFACE (\S+) +Value List IP (\S+) +Value List SUBNET (/\d+) +Value List FLAGS (\S+) +Value List NSIA (\d+) + +Start + ^\s*Use\s+Redirects\s*:\s*${USE_REDIRECTS}\s*$$ + ^\s*IpOption\s+LSRR\s*:\s*${IP_OPTION_LSRR}\s*$$ + ^\s*IpOption\s+SSRR\s*:\s*${IP_OPTION_SSRR}\s*$$ + ^\s*IpOption\s+RR\s*:\s*${IP_OPTION_RR}\s*$$ + ^\s*IpOption\s+TS\s*:\s*${IP_OPTION_TS}\s*$$ + ^\s*IpOption\s+RA\s*:\s*${IP_OPTION_RA}\s*$$ + ^\s*Route\s+Sharing\s*:\s*${ROUTE_SHARING}\s*$$ + ^\s*Route\s+Compression\s*:\s*${ROUTE_COMPRESSION}\s*$$ + ^\s*Originated\s+Packets\s*:\s*${ORIGINATED_PACKETS}\s*$$ + ^\s*Max\s+Shared\s+Gateways\s*:\s*Current:\s*${MAX_SHARED_GATEWAYS_CURRENT}\s+Configured:\s*${MAX_SHARED_GATEWAYS_CONFIGURED}\s*$$ + ^\s*Route\s+Sharing\s+Hash\s*:\s*${ROUTE_SHARING_HASH}\s*$$ + ^\s*IRDP:\s*$$ -> Irdp + ^\s*Interface\s+IP\s+Address\s+Flags\s+nSIA\s*$$ -> IpAdresses + ^\s*Flags:\s+\(A\)\s+Address\s+Mask\s+Reply\s+Enabled\s+\(B\)\s+BOOTP\s+Enabled\s*$$ + ^\s*\(b\)\s+Broadcast\s+Forwarding\s+Enabled\s*$$ + ^\s*\(D\)\s+Duplicate\s+address\s+detected\s+on\s+VLAN,\s+\(E\)\s+Interface\s+Enabled\s*$$ + ^\s*\(f\)\s+Forwarding\s+Enabled\s+\(g\)\s+Ignore\s+IP\s+Broadcast\s+Enabled\s*$$ + ^\s*\(h\)\s+Directed\s+Broadcast\s+Forwarding\s+by\s+Hardware\s+Enabled\s*$$ + ^\s*\(I\)\s+IRDP\s+Advertisement\s+Enabled,\s+\(M\)\s+Send\s+Parameter\s+Problem\s+Enabled\s*$$ + ^\s*\(m\)\s+Multicast\s+forwarding\s+Enabled,\s+\(n\)\s+Multinetted\s+VLAN\s*$$ + ^\s*\(nSIA\s+\)\s+Number\s+of\s+Secondary\s+IP\s+Addresses\s*$$ + ^\s*\(P\)\s+Send\s+Port\s+Unreachables\s+Enabled,\s+\(R\)\s+Send\s+Redirects\s+Enabled\s*$$ + ^\s*\(r\)\s+Unicast\s+Reverse\s+Path\s+Enabled\s+on\s+at\s+least\s+one\s+port\s+of\s+the\s+VLAN\s*$$ + ^\s*\(t\)\s+Tentative\s+address,\s+\(T\)\s+Time\s+Stamp\s+Reply\s+Enabled\s*$$ + ^\s*\(u\)\s+Send\s+Unreachables\s+Enabled,\s+\(U\)\s+Interface\s+Up\s*$$ + ^\s*\(v\)\s+VRRP\s+Enabled,\s+\(X\)\s+Send\s+Time\s+Exceeded\s+Enabled\s*$$ + ^\s* + ^. -> Error + +Irdp + ^\s*Advertisement\s+Address:\s+${IRDP_ADVERTISEMENT_ADDRESS}\s+Maximum\s+Interval:\s+${IRDP_MAX_INTERVAL}\s*$$ + ^\s*Minimum\s+Interval:\s+${IRDP_MIN_INTERVAL}\s+Lifetime:\s+${IRDP_LIFETIME}\s+Preference:\s+${IRDP_PREFERENCE}\s*$$ + ^\s* -> Start + ^. -> Error + +IpAdresses + ^\s*${INTERFACE}\s+${IP}\s+${SUBNET}\s+${FLAGS}\s+${NSIA}\s*$$ + ^\s* -> Start + ^. -> Error diff --git a/ntc_templates/templates/extreme_show_ports_description.textfsm b/ntc_templates/templates/extreme_show_ports_description.textfsm new file mode 100644 index 0000000000..3c54caf12e --- /dev/null +++ b/ntc_templates/templates/extreme_show_ports_description.textfsm @@ -0,0 +1,18 @@ +Value INTERFACE (\d+) +Value DISPLAY_STRING (\S+) +Value DESCRIPTION (.*) + +# Broken. There is no good way to differ 'Display String' and 'Description' since +# both columns can be anything and empty. Since 'Display String' is empty often, +# just skip it. + +Start + ^\s*Port\s+Display\s+String\s+Description\s+String\s*$$ -> Ports + ^\s* + ^. -> Error + +Ports + ^(\s*=+)+\s*$$ + ^\s*${PORT}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s* + ^. -> Error diff --git a/ntc_templates/templates/extreme_show_ports_information.textfsm b/ntc_templates/templates/extreme_show_ports_information.textfsm new file mode 100644 index 0000000000..9e416db001 --- /dev/null +++ b/ntc_templates/templates/extreme_show_ports_information.textfsm @@ -0,0 +1,41 @@ +Value INTERFACE (\d+) +Value FLAGS (\S+) +Value LINK_STATE (\S+) +Value ELSM (\S+) +Value OAM (\S+) +Value LINK_UPS (\d+) +Value NUM_STP (\d+) +Value NUM_VLAN (\d+) +Value NUM_PROTO (\d+) +Value JUMBO_SIZE (\d+) +Value QOS_PROFILE (\S+) +Value LOAD_MASTER (.*) + +Start + ^\s*Port\s+Flags\s+Link\s+ELSM\s+Link\s+Num\s+Num\s+Num\s+Jumbo\s+QOS\s+Load\s*$$ -> Ports + ^\s* + ^. -> Error + +Ports + ^State\s+/OAM\s+UPS\s+STP\s+VLAN\s+Proto\s+Size\s+profile\s+Master\*$$ + ^(\s*=+)+\s*$$ + ^\s*${PORT}\s+${FLAGS}\s+${LINK_STATE}\s+${ELSM}\s*/\s*${OAM}\s+${LINK_UPS}\s+${NUM_STP}\s+${NUM_VLAN}\s+${NUM_PROTO}\s+${JUMBO_SIZE}\s+${QOS_PROFILE}(?:\s+${LOAD_MASTER})?\s*$$ -> Record + ^\s*>\s+indicates\s+Port\s+Display\s+Name\s+truncated\s+past\s+8\s+characters\s*$$ + ^\s*Flags\s+:\s+a\s+-\s+Load\s+Sharing\s+Algorithm\s+address-based,\s+D\s+-\s+Port\s+Disabled,\s*$$ + ^\s*e\s+-\s+Extreme\s+Discovery\s+Protocol\s+Enabled,\s+E\s+-\s+Port\s+Enabled,\s*$$ + ^\s*g\s+-\s+Egress\s+TOS\s+Enabled,\s+i\s+-\s+Isolation,\s+j\s+-\s+Jumbo\s+Frame\s+Enabled,\s*$$ + ^\s*l\s+-\s+Load\s+Sharing\s+Enabled,\s+m\s+-\s+MACLearning\s+Enabled,\s*$$ + ^\s*n\s+-\s+Ingress\s+TOS\s+Enabled,\s+o\s+-\s+Dot1p\s+Replacement\s+Enabled,\s*$$ + ^\s*P\s+-\s+Software\s+redundant\s+port\(Primary\),\s*$$ + ^\s*R\s+-\s+Software\s+redundant\s+port\(Redundant\),\s*$$ + ^\s*q\s+-\s+Background\s+QOS\s+Monitoring\s+Enabled,\s*$$ + ^\s*s\s+-\s+diffserv\s+Replacement\s+Enabled,\s*$$ + ^\s*v\s+-\s+Vman\s+Enabled,\s+f\s+-\s+Unicast\s+Flooding\s+Enabled,\s*$$ + ^\s*M\s+-\s+Multicast\s+Flooding\s+Enabled,\s+B\s+-\s+Broadcast\s+Flooding\s+Enabled\s*$$ + ^\s*L\s+-\s+Extreme\s+Link\s+Status\s+Monitoring\s+Enabled\s*$$ + ^\s*O\s+-\s+Ethernet\s+OAM\s+Enabled\s*$$ + ^\s*w\s+-\s+MACLearning\s+Disabled\s+with\s+Forwarding\s*$$ + ^\s*b\s+-\s+Rx\s+and\s+Tx\s+Flow\s+Control\s+Enabled,\s+x\s+-\s+Rx\s+Flow\s+Control\s+Enabled\s*$$ + ^\s*p\s+-\s+Priority\s+Flow\s+Control\s+Enabled\s*$$ + ^\s* + ^. -> Error diff --git a/ntc_templates/templates/extreme_show_ports_information_detail.textfsm b/ntc_templates/templates/extreme_show_ports_information_detail.textfsm new file mode 100644 index 0000000000..71a20fda1b --- /dev/null +++ b/ntc_templates/templates/extreme_show_ports_information_detail.textfsm @@ -0,0 +1,26 @@ +Value INTERFACE (\d+) +Value DESCRIPTION (.*) +Value VIRTUAL_ROUTER (.*) +Value TYPE (.*) +Value RANDOM_EARLY_DROP (.*) +Value ADMIN_STATE (.*) +Value LINK_STATE (\S+) +Value LINK_UPS_NUM (\d+) +Value LINK_UPS_LAST (.*) +Value LINK_DOWNS_NUM (\d+) +Value LINK_DOWNS_LAST (.*) +Value List VLAN_ID (\d+) + +Start + ^\s*Port:.*$$ -> Continue.Record + ^\s*Port:\s*${PORT}\s*$$ + ^\s*Description\s+String:\s*\"${DESCRIPTION}\"\s*$$ + ^\s*Virtual-router:\s*${VIRTUAL_ROUTER}\s*$$ + ^\s*Type:\s*${TYPE}\s*$$ + ^\s*Random\s+Early\s+drop:\s*${RANDOM_EARLY_DROP}\s*$$ + ^\s*Admin\s+state:\s*${ADMIN_STATE} + ^\s*Link\s+State:\s*${LINK_STATE}(,)?(\s)?.*$$ + ^\s*Link\s+Ups:\s*${LINK_UPS_NUM}\s+Last:\s*${LINK_UPS_LAST}\s*$$ + ^\s*Link\s+Downs:\s*${LINK_DOWNS_NUM}\s+Last:\s*${LINK_DOWNS_LAST}\s*$$ + ^\s*VLAN\s+cfg:\s*$$ + ^.*VLAN\s+ID:\s*${VLAN_ID}\s*$$ diff --git a/ntc_templates/templates/extreme_show_sharing.textfsm b/ntc_templates/templates/extreme_show_sharing.textfsm new file mode 100644 index 0000000000..bc9497776d --- /dev/null +++ b/ntc_templates/templates/extreme_show_sharing.textfsm @@ -0,0 +1,29 @@ +Value Filldown CONFIG_MASTER (\d+) +Value Filldown CURRENT_MASTER (\d+) +Value Filldown AGG_CONTROL (\S+) +Value List LD_SHARE_ALGORITHM (L2|L3|L3_L4|custom) +Value List LD_SHARE_GROUP (\d+) +Value List AGG_MBR (\S+) +Value List LINK_STATE (A|D|R|NP|L) +Value List LINK_UP_TRANSITIONS (\d+) + +Start + ^\s*Load\s+Sharing\s+Monitor\s*$$ + ^\s*Config\s+Current\s+Agg\s+Ld\s+Share\s+Ld\s+Share\s+Agg\s+Link\s+Link\s+Up\s*$$ -> SharingTable + ^\s* + ^. -> Error + +SharingTable + ^\s*Master\s+Master\s+Control\s+Algorithm\s+Group\s+Mbr\s+State\s+Transitions\s*$$ + ^(\s*=+)+\s*$$ + ^\s*\d.*$$ -> Continue.Record + ^\s+${CONFIG_MASTER}(?:\s+${CURRENT_MASTER})?\s+${AGG_CONTROL}\s+${LD_SHARE_ALGORITHM}\s+${LD_SHARE_GROUP}\s+${AGG_MBR}\s+${LINK_STATE}\s+${LINK_UP_TRANSITIONS}\s*$$ + ^\s+${LD_SHARE_ALGORITHM}\s+${LD_SHARE_GROUP}\s+${AGG_MBR}\s+${LINK_STATE}\s+${LINK_UP_TRANSITIONS}\s*$$ + ^\s*Link\s+State:\s+A-Active,\s+D-Disabled,\s+R-Ready,\s+NP-Port\s+not\s+present,\s+L-Loopback\s*$$ + ^\s*Load\s+Sharing\s+Algorithm:\s+\(L2\)\s+Layer\s+2\s+address\s+based,\s+\(L3\)\s+Layer\s+3\s+address\s+based\s*$$ + ^\s*\(L3_L4\)\s+Layer\s+3\s+address\s+and\s+Layer\s+4\s+port\s+based\s*$$ + ^\s*\(custom\)\s+User-selected\s+address-based\s+configuration\s*$$ + ^\s*Custom\s+Algorithm\s+Configuration:\s+.*\s*$$ + ^\s*Number\s+of\s+load\s+sharing\s+trunks:\s+\d+\s*$$ + ^\s* + ^. -> Error diff --git a/ntc_templates/templates/extreme_show_vlan_description.textfsm b/ntc_templates/templates/extreme_show_vlan_description.textfsm new file mode 100644 index 0000000000..efbe0d7b47 --- /dev/null +++ b/ntc_templates/templates/extreme_show_vlan_description.textfsm @@ -0,0 +1,17 @@ +Value VLAN_NAME (\S+) +Value VLAN_ID (\d+) +Value DESCRIPTION (.*) + +Start + ^(\s*=+)+\s*$$ + ^\s*Name\s+VID\s+Description\s*$$ -> VlanTable + ^\s* + ^. -> Error + +VlanTable + ^(\s*=+)+\s*$$ + ^\s*${NAME}\s+${ID}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*>\s+Indicates\s+description\s+string\s+truncated\s+past\s+\d+\s+characters\s*$$ + ^\s*Total\s+number\s+of\s+VLAN\(s\)\s*:\s*\d+\s*$$ + ^\s* + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 3c3a9b6d8f..da1bfd6461 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -485,6 +485,13 @@ ericsson_ipos_show_isis_adjacency.textfsm, .*, ericsson_ipos, sh[[ow]] isis adja ericsson_ipos_show_version.textfsm, .*, ericsson_ipos, sh[[ow]] ver[[sion]] ericsson_ipos_show_arp.textfsm, .*, ericsson_ipos, sh[[ow]] ar[[p]] +extreme_show_ports_information_detail.textfsm, .*, extreme, show ports information detail +extreme_show_ports_description.textfsm, .*, extreme, show ports description +extreme_show_ports_information.textfsm, .*, extreme, show ports information +extreme_show_vlan_description.textfsm, .*, extreme, show vlan description +extreme_show_ipconfig.textfsm, .*, extreme, show ipconfig +extreme_show_sharing.textfsm, .*, extreme, show sharing + fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] p[[hysical]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] diff --git a/tests/extreme/show_ipconfig/extreme_show_ipconfig.raw b/tests/extreme/show_ipconfig/extreme_show_ipconfig.raw new file mode 100644 index 0000000000..092cc01e4b --- /dev/null +++ b/tests/extreme/show_ipconfig/extreme_show_ipconfig.raw @@ -0,0 +1,33 @@ + Use Redirects : Disabled + IpOption LSRR : Enabled + IpOption SSRR : Enabled + IpOption RR : Enabled + IpOption TS : Enabled + IpOption RA : Enabled + Route Sharing : Disabled + Route Compression : Disabled + Originated Packets : Don't require ipforwarding + Max Shared Gateways : Current: 4 Configured: 4 + Route Sharing Hash : CRC Lower + + IRDP: + Advertisement Address: 255.255.255.255 Maximum Interval: 600 + Minimum Interval: 450 Lifetime: 1800 Preference: 0 + +Interface IP Address Flags nSIA +VLAN0255 10.255.254.3 /16 EU----MPuRX--------- 0 +VLAN2222 10.1.222.3 /24 EUf---MPuRX--------- 0 + +Flags: (A) Address Mask Reply Enabled (B) BOOTP Enabled + (b) Broadcast Forwarding Enabled + (D) Duplicate address detected on VLAN, (E) Interface Enabled + (f) Forwarding Enabled (g) Ignore IP Broadcast Enabled + (h) Directed Broadcast Forwarding by Hardware Enabled + (I) IRDP Advertisement Enabled, (M) Send Parameter Problem Enabled + (m) Multicast forwarding Enabled, (n) Multinetted VLAN + (nSIA ) Number of Secondary IP Addresses + (P) Send Port Unreachables Enabled, (R) Send Redirects Enabled + (r) Unicast Reverse Path Enabled on at least one port of the VLAN + (t) Tentative address, (T) Time Stamp Reply Enabled + (u) Send Unreachables Enabled, (U) Interface Up + (v) VRRP Enabled, (X) Send Time Exceeded Enabled diff --git a/tests/extreme/show_ipconfig/extreme_show_ipconfig.yml b/tests/extreme/show_ipconfig/extreme_show_ipconfig.yml new file mode 100644 index 0000000000..bff0b29ba6 --- /dev/null +++ b/tests/extreme/show_ipconfig/extreme_show_ipconfig.yml @@ -0,0 +1,34 @@ +--- +parsed_sample: + - flags: + - "EU----MPuRX---------" + - "EUf---MPuRX---------" + interface: + - "VLAN0255" + - "VLAN2222" + ip: + - "10.255.254.3" + - "10.1.222.3" + ip_option_lsrr: "Enabled" + ip_option_ra: "Enabled" + ip_option_rr: "Enabled" + ip_option_ssrr: "Enabled" + ip_option_ts: "Enabled" + irdp_advertisement_address: "255.255.255.255" + irdp_lifetime: "1800" + irdp_max_interval: "600" + irdp_min_interval: "450" + irdp_preference: "0" + max_shared_gateways_configured: "4" + max_shared_gateways_current: "4" + nsia: + - "0" + - "0" + originated_packets: "Don't require ipforwarding" + route_compression: "Disabled" + route_sharing: "Disabled" + route_sharing_hash: "CRC Lower" + subnet: + - "/16" + - "/24" + use_redirects: "Disabled" diff --git a/tests/extreme/show_ports_description/extreme_show_ports_description.raw b/tests/extreme/show_ports_description/extreme_show_ports_description.raw new file mode 100644 index 0000000000..e504a1542e --- /dev/null +++ b/tests/extreme/show_ports_description/extreme_show_ports_description.raw @@ -0,0 +1,51 @@ +Port Display String Description String +===== ==================== ================================================== +1 AggregateLink +2 +3 +4 +5 MX5-2 - xe0/0/3 +6 BLADE-3 - VC1-4 +7 BLADE-3 - VC2-4 +8 BGW-R1 - xe0/1/1 (LAG7) +9 FREE +10 SRV-R1 - xe-0/0/1 (LAG6) +11 3COM - Gi1/0/26 Link for PIM +12 C4948-1 - te1/49 +13 Eltex3124-7 - te1/0/1 +14 Eltex3124-6 - te1/0/1 +15 Eltex3124-5 - te1/0/1 +16 Eltex3124-4 - te1/0/1 +17 MX5-1 - xe-0/0/3 +18 MX5-1 - xe-0/0/1 +19 CCR1036 - sfp1 +20 +21 +22 RS-CORE-1 - Gi0/1 +23 +24 Uplink-GARS +25 CRM-139204 +26 FREE +27 FREE +28 FREE +29 N3K-2 - eth1/1 (LAG29) +30 3COM - Te1/1/1 +31 FREE +32 +33 N9K-1 - eth1/46 (LAG33) +34 N3K-2 - eth1/2 (LAG29) +35 N9K-1 - eth1/47 (LAG33) +36 Carbon-Reductor-NetXtreme-1 MIRROR +37 VoipMonitor_Mirror +38 Eltex3324-1 - te1/0/1 (LAG38) +39 Eltex3324-1 - te1/0/2 (LAG38) +40 FREE +41 FREE +42 BLADE-2-VC2 - VC8 +43 Storage-SMicro - eth0 +44 SCST-SSD_Cache - eth1 +45 Eltex5248-1 - Te1/0/1 +46 VEEAM1 - eth1 +47 BLADE-1-VC2 - VC1 +48 BLADE-1-VC2 - VC8 +===== ==================== ================================================== diff --git a/tests/extreme/show_ports_description/extreme_show_ports_description.yml b/tests/extreme/show_ports_description/extreme_show_ports_description.yml new file mode 100644 index 0000000000..16e125c375 --- /dev/null +++ b/tests/extreme/show_ports_description/extreme_show_ports_description.yml @@ -0,0 +1,146 @@ +--- +parsed_sample: + - description: "AggregateLink" + display_string: "" + port: "1" + - description: "" + display_string: "" + port: "2" + - description: "" + display_string: "" + port: "3" + - description: "" + display_string: "" + port: "4" + - description: "MX5-2 - xe0/0/3" + display_string: "" + port: "5" + - description: "BLADE-3 - VC1-4" + display_string: "" + port: "6" + - description: "BLADE-3 - VC2-4" + display_string: "" + port: "7" + - description: "BGW-R1 - xe0/1/1 (LAG7)" + display_string: "" + port: "8" + - description: "FREE" + display_string: "" + port: "9" + - description: "SRV-R1 - xe-0/0/1 (LAG6)" + display_string: "" + port: "10" + - description: "3COM - Gi1/0/26 Link for PIM" + display_string: "" + port: "11" + - description: "C4948-1 - te1/49" + display_string: "" + port: "12" + - description: "Eltex3124-7 - te1/0/1" + display_string: "" + port: "13" + - description: "Eltex3124-6 - te1/0/1" + display_string: "" + port: "14" + - description: "Eltex3124-5 - te1/0/1" + display_string: "" + port: "15" + - description: "Eltex3124-4 - te1/0/1" + display_string: "" + port: "16" + - description: "MX5-1 - xe-0/0/3" + display_string: "" + port: "17" + - description: "MX5-1 - xe-0/0/1" + display_string: "" + port: "18" + - description: "CCR1036 - sfp1" + display_string: "" + port: "19" + - description: "" + display_string: "" + port: "20" + - description: "" + display_string: "" + port: "21" + - description: "RS-CORE-1 - Gi0/1" + display_string: "" + port: "22" + - description: "" + display_string: "" + port: "23" + - description: "Uplink-GARS" + display_string: "" + port: "24" + - description: "CRM-139204" + display_string: "" + port: "25" + - description: "FREE" + display_string: "" + port: "26" + - description: "FREE" + display_string: "" + port: "27" + - description: "FREE" + display_string: "" + port: "28" + - description: "N3K-2 - eth1/1 (LAG29)" + display_string: "" + port: "29" + - description: "3COM - Te1/1/1" + display_string: "" + port: "30" + - description: "FREE" + display_string: "" + port: "31" + - description: "" + display_string: "" + port: "32" + - description: "N9K-1 - eth1/46 (LAG33)" + display_string: "" + port: "33" + - description: "N3K-2 - eth1/2 (LAG29)" + display_string: "" + port: "34" + - description: "N9K-1 - eth1/47 (LAG33)" + display_string: "" + port: "35" + - description: "Carbon-Reductor-NetXtreme-1 MIRROR" + display_string: "" + port: "36" + - description: "VoipMonitor_Mirror" + display_string: "" + port: "37" + - description: "Eltex3324-1 - te1/0/1 (LAG38)" + display_string: "" + port: "38" + - description: "Eltex3324-1 - te1/0/2 (LAG38)" + display_string: "" + port: "39" + - description: "FREE" + display_string: "" + port: "40" + - description: "FREE" + display_string: "" + port: "41" + - description: "BLADE-2-VC2 - VC8" + display_string: "" + port: "42" + - description: "Storage-SMicro - eth0" + display_string: "" + port: "43" + - description: "SCST-SSD_Cache - eth1" + display_string: "" + port: "44" + - description: "Eltex5248-1 - Te1/0/1" + display_string: "" + port: "45" + - description: "VEEAM1 - eth1" + display_string: "" + port: "46" + - description: "BLADE-1-VC2 - VC1" + display_string: "" + port: "47" + - description: "BLADE-1-VC2 - VC8" + display_string: "" + port: "48" diff --git a/tests/extreme/show_ports_information/extreme_show_ports_information.raw b/tests/extreme/show_ports_information/extreme_show_ports_information.raw new file mode 100644 index 0000000000..b63bc93600 --- /dev/null +++ b/tests/extreme/show_ports_information/extreme_show_ports_information.raw @@ -0,0 +1,69 @@ +Port Flags Link ELSM Link Num Num Num Jumbo QOS Load + State /OAM UPS STP VLAN Proto Size profile Master +===================================================================================== +1 Dmjla---e--fMB---x- ready - / - 0 1 3288 1 9216 none 1 a +2 Dmjla---e--fMB---x- ready - / - 1 1 3288 1 9216 none 1 a +3 Dmjla---e--fMB---x- ready - / - 7 1 3288 1 9216 none 1 a +4 Dmjla---e--fMB---x- ready - / - 0 1 3288 1 9216 none 1 a +5 Emj-----e--fMB---x- active - / - 1 0 1 0 9216 none +6 Emj-----e--fMB---x- active - / - 2 0 74 0 9216 none +7 Emj-----e--fMB---x- active - / - 2 0 74 0 9216 none +8 Emj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +9 Dmj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +10 Emj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +11 Emj-----e--fMB---x- ready - / - 0 0 1 1 9216 none +12 Emj-----e--fMB---x- active - / - 0 0 97 0 9216 none +13 Emj-----e--fMB---x- active - / - 1 1 55 1 9216 none +14 Emj-----e--fMB---x- active - / - 10 1 130 1 9216 none +15 Emj-----e--fMB---x- active - / - 0 1 191 1 9216 none +16 Emj-----e--fMB---x- active - / - 1 1 312 1 9216 none +17 Emj-----e--fMB---x- ready - / - 0 0 3289 0 9216 none +18 Emj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +19 Emj-----e--fMB---x- active - / - 22 0 176 0 9216 none +20 Emj-----e--fMB---x- ready - / - 0 1 7 1 9216 none +21 Dmj-----e--fMB---x- ready - / - 4 0 1 1 9216 none +22 Emj-----e--fMB---x- ready - / - 0 1 11 1 9216 none +23 Emj-----e--fMB---x- active - / - 2 1 3324 1 9216 none +24 Emj-----e--fMB---x- ready - / - 2 0 1 0 9216 none +25 Dmj-----e--fMB---x- ready - / - 3 0 5 0 9216 none +26 Emj-----e--fMB---x- ready - / - 4 0 5 0 9216 none +27 Emj-----e--fMB---x- ready - / - 11 0 5 0 9216 none +28 Emj-----e--fMB---x- ready - / - 0 0 5 0 9216 none +29 Emjla---e--fMB---x- ready - / - 12 0 72 0 9216 none 29 a +30 Dmj-----e--fMB---x- ready - / - 2 1 532 1 9216 none +31 Emj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +32 Emj-----e--fMB---x- ready - / - 0 0 0 0 9216 none +33 Emjla---e--fMB---x- active - / - 2 0 856 0 9216 none 33 a +34 Emjla---e--fMB---x- ready - / - 7 0 72 0 9216 none 29 a +35 Emjla---e--fMB---x- active - / - 1 0 856 0 9216 none 33 a +36 Emj-----e--fMB---x- active - / - 10 0 0 0 9216 none +37 Emj-----e--fMB---x- active - / - 0 0 0 0 9216 none +38 Emjla---e--fMB---x- ready - / - 0 0 26 0 9216 none 38 a +39 Emjla---e--fMB---x- ready - / - 0 0 26 0 9216 none 38 a +40 Emj-----e--fMB---x- ready - / - 0 0 7 0 9216 none +41 Emj-----e--fMB---x- ready - / - 0 1 118 1 9216 none +42 Emj-----e--fMB---x- ready - / - 0 1 317 1 9216 none +43 Emj-----e--fMB---x- ready - / - 5 1 2 1 9216 none +44 Emj-----e--fMB---x- active - / - 2 0 1 1 9216 none +45 Emj-----e--fMB----- active - / - 1 0 388 0 9216 none +46 Emj-----e--fMB----- active - / - 17 0 6 0 9216 none +47 Emj-----e--fMB----- active - / - 0 0 261 0 9216 none +48 Emj-----e--fMB----- active - / - 0 0 265 0 9216 none +===================================================================================== +> indicates Port Display Name truncated past 8 characters +Flags : a - Load Sharing Algorithm address-based, D - Port Disabled, + e - Extreme Discovery Protocol Enabled, E - Port Enabled, + g - Egress TOS Enabled, i - Isolation, j - Jumbo Frame Enabled, + l - Load Sharing Enabled, m - MACLearning Enabled, + n - Ingress TOS Enabled, o - Dot1p Replacement Enabled, + P - Software redundant port(Primary), + R - Software redundant port(Redundant), + q - Background QOS Monitoring Enabled, + s - diffserv Replacement Enabled, + v - Vman Enabled, f - Unicast Flooding Enabled, + M - Multicast Flooding Enabled, B - Broadcast Flooding Enabled + L - Extreme Link Status Monitoring Enabled + O - Ethernet OAM Enabled + w - MACLearning Disabled with Forwarding + b - Rx and Tx Flow Control Enabled, x - Rx Flow Control Enabled + p - Priority Flow Control Enabled diff --git a/tests/extreme/show_ports_information/extreme_show_ports_information.yml b/tests/extreme/show_ports_information/extreme_show_ports_information.yml new file mode 100644 index 0000000000..1e1b229e41 --- /dev/null +++ b/tests/extreme/show_ports_information/extreme_show_ports_information.yml @@ -0,0 +1,578 @@ +--- +parsed_sample: + - elsm: "-" + flags: "Dmjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "1 a" + num_proto: "1" + num_stp: "1" + num_vlan: "3288" + oam: "-" + port: "1" + qos_profile: "none" + - elsm: "-" + flags: "Dmjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "1" + load_master: "1 a" + num_proto: "1" + num_stp: "1" + num_vlan: "3288" + oam: "-" + port: "2" + qos_profile: "none" + - elsm: "-" + flags: "Dmjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "7" + load_master: "1 a" + num_proto: "1" + num_stp: "1" + num_vlan: "3288" + oam: "-" + port: "3" + qos_profile: "none" + - elsm: "-" + flags: "Dmjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "1 a" + num_proto: "1" + num_stp: "1" + num_vlan: "3288" + oam: "-" + port: "4" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "1" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "1" + oam: "-" + port: "5" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "2" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "74" + oam: "-" + port: "6" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "2" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "74" + oam: "-" + port: "7" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "8" + qos_profile: "none" + - elsm: "-" + flags: "Dmj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "9" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "10" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "0" + num_vlan: "1" + oam: "-" + port: "11" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "97" + oam: "-" + port: "12" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "1" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "55" + oam: "-" + port: "13" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "10" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "130" + oam: "-" + port: "14" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "191" + oam: "-" + port: "15" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "1" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "312" + oam: "-" + port: "16" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "3289" + oam: "-" + port: "17" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "18" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "22" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "176" + oam: "-" + port: "19" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "7" + oam: "-" + port: "20" + qos_profile: "none" + - elsm: "-" + flags: "Dmj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "4" + load_master: "" + num_proto: "1" + num_stp: "0" + num_vlan: "1" + oam: "-" + port: "21" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "11" + oam: "-" + port: "22" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "2" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "3324" + oam: "-" + port: "23" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "2" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "1" + oam: "-" + port: "24" + qos_profile: "none" + - elsm: "-" + flags: "Dmj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "3" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "5" + oam: "-" + port: "25" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "4" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "5" + oam: "-" + port: "26" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "11" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "5" + oam: "-" + port: "27" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "5" + oam: "-" + port: "28" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "12" + load_master: "29 a" + num_proto: "0" + num_stp: "0" + num_vlan: "72" + oam: "-" + port: "29" + qos_profile: "none" + - elsm: "-" + flags: "Dmj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "2" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "532" + oam: "-" + port: "30" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "31" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "32" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "2" + load_master: "33 a" + num_proto: "0" + num_stp: "0" + num_vlan: "856" + oam: "-" + port: "33" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "7" + load_master: "29 a" + num_proto: "0" + num_stp: "0" + num_vlan: "72" + oam: "-" + port: "34" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "1" + load_master: "33 a" + num_proto: "0" + num_stp: "0" + num_vlan: "856" + oam: "-" + port: "35" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "10" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "36" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "0" + oam: "-" + port: "37" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "38 a" + num_proto: "0" + num_stp: "0" + num_vlan: "26" + oam: "-" + port: "38" + qos_profile: "none" + - elsm: "-" + flags: "Emjla---e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "38 a" + num_proto: "0" + num_stp: "0" + num_vlan: "26" + oam: "-" + port: "39" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "7" + oam: "-" + port: "40" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "118" + oam: "-" + port: "41" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "0" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "317" + oam: "-" + port: "42" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "ready" + link_ups: "5" + load_master: "" + num_proto: "1" + num_stp: "1" + num_vlan: "2" + oam: "-" + port: "43" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB---x-" + jumbo_size: "9216" + link_state: "active" + link_ups: "2" + load_master: "" + num_proto: "1" + num_stp: "0" + num_vlan: "1" + oam: "-" + port: "44" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB-----" + jumbo_size: "9216" + link_state: "active" + link_ups: "1" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "388" + oam: "-" + port: "45" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB-----" + jumbo_size: "9216" + link_state: "active" + link_ups: "17" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "6" + oam: "-" + port: "46" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB-----" + jumbo_size: "9216" + link_state: "active" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "261" + oam: "-" + port: "47" + qos_profile: "none" + - elsm: "-" + flags: "Emj-----e--fMB-----" + jumbo_size: "9216" + link_state: "active" + link_ups: "0" + load_master: "" + num_proto: "0" + num_stp: "0" + num_vlan: "265" + oam: "-" + port: "48" + qos_profile: "none" diff --git a/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.raw b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.raw new file mode 100644 index 0000000000..deca51171c --- /dev/null +++ b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.raw @@ -0,0 +1,135 @@ +Port: 1 + Description String: "AggregateLink" + Virtual-router: VR-Default + Type: NONE + Random Early drop: Unsupported + Admin state: Disabled with 10G full-duplex + Link State: Ready (local fault) + Link Ups: 0 Last: Mon Apr 12 12:30:24 2021 + Link Downs: 1 Last: Thu Jun 23 12:41:45 2022 + + VLAN cfg: + Name: Default, Internal Tag = 1, MAC-limit = No-limit, Virtual router: VR-Default + Name: VLAN2222, 802.1Q Tag = 2222, MAC-limit = No-limit, Virtual router: VR-Default + Port-specific VLAN ID: 2222 + Name: VLAN1801, 802.1Q Tag = 1801, MAC-limit = No-limit, Virtual router: VR-Default + Port-specific VLAN ID: 1801 + + STP cfg: + s1(enable), Tag=(none), Mode=802.1D, State=DISABLED + + Protocol: + Name: Default Protocol: ANY Match all protocols. + Trunking: Master port with 4 members using algorithm address based - L3_L4 +algorithm + Members: 1-4 + + EDP: Enabled + + ELSM: Disabled + Ethernet OAM: Disabled + Learning: Enabled + Unicast Flooding: Enabled + Multicast Flooding: Enabled + Broadcast Flooding: Enabled + Jumbo: Enabled, MTU= 9216 + Flow Control: Rx-Pause: Enabled Tx-Pause: Disabled + Priority Flow Control: Disabled + Reflective Relay: Disabled + Link up/down SNMP trap filter setting: Enabled + Egress Port Rate: No-limit + Broadcast Rate: No-limit + Multicast Rate: No-limit + Unknown Dest Mac Rate: No-limit + QoS Profile: None configured + Ingress Rate Shaping : Unsupported + Ingress IPTOS Examination: Disabled + Ingress 802.1p Examination: Enabled + Ingress 802.1p Inner Exam: Disabled + Egress IPTOS Replacement: Disabled + Egress 802.1p Replacement: Disabled + NetLogin: Disabled + NetLogin port mode: Port based VLANs + Smart redundancy: Enabled + Software redundant port: Disabled + IPFIX: Disabled Metering: Ingress, All Packets, All Traffic + IPv4 Flow Key Mask: SIP: 255.255.255.255 DIP: 255.255.255.255 + IPv6 Flow Key Mask: SIP: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + DIP: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + + Far-End-Fault-Indication: Disabled + Shared packet buffer: default + VMAN CEP egress filtering: Disabled + Isolation: Off + PTP Configured: Disabled + Time-Stamping Mode: None + Synchronous Ethernet: Unsupported + Dynamic VLAN Uplink: Disabled + VM Tracking Dynamic VLANs: Disabled +Port: 2 + Virtual-router: VR-Default + Type: NONE + Random Early drop: Unsupported + Admin state: Disabled with 10G full-duplex + Link State: Ready (local fault) + Link Ups: 1 Last: Mon Jun 13 19:21:19 2022 + Link Downs: 2 Last: Thu Jun 23 12:41:37 2022 + + VLAN cfg: + Name: Default, Internal Tag = 1, MAC-limit = No-limit, Virtual router: VR-Default + Name: VLAN2222, 802.1Q Tag = 2222, MAC-limit = No-limit, Virtual router: VR-Default + Port-specific VLAN ID: 2222 + Name: VLAN1802, 802.1Q Tag = 1802, MAC-limit = No-limit, Virtual router: VR-Default + Port-specific VLAN ID: 1802 + + STP cfg: + s1(enable), Tag=(none), Mode=802.1D, State=DISABLED + + Protocol: + Name: Default Protocol: ANY Match all protocols. + Trunking: Master port with 4 members using algorithm address based - L3_L4 +algorithm + Members: 1-4 + + EDP: Enabled + + ELSM: Disabled + Ethernet OAM: Disabled + Learning: Enabled + Unicast Flooding: Enabled + Multicast Flooding: Enabled + Broadcast Flooding: Enabled + Jumbo: Enabled, MTU= 9216 + Flow Control: Rx-Pause: Enabled Tx-Pause: Disabled + Priority Flow Control: Disabled + Reflective Relay: Disabled + Link up/down SNMP trap filter setting: Enabled + Egress Port Rate: No-limit + Broadcast Rate: No-limit + Multicast Rate: No-limit + Unknown Dest Mac Rate: No-limit + QoS Profile: None configured + Ingress Rate Shaping : Unsupported + Ingress IPTOS Examination: Disabled + Ingress 802.1p Examination: Enabled + Ingress 802.1p Inner Exam: Disabled + Egress IPTOS Replacement: Disabled + Egress 802.1p Replacement: Disabled + NetLogin: Disabled + NetLogin port mode: Port based VLANs + Smart redundancy: Enabled + Software redundant port: Disabled + IPFIX: Disabled Metering: Ingress, All Packets, All Traffic + IPv4 Flow Key Mask: SIP: 255.255.255.255 DIP: 255.255.255.255 + IPv6 Flow Key Mask: SIP: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + DIP: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + + Far-End-Fault-Indication: Disabled + Shared packet buffer: default + VMAN CEP egress filtering: Disabled + Isolation: Off + PTP Configured: Disabled + Time-Stamping Mode: None + Synchronous Ethernet: Unsupported + Dynamic VLAN Uplink: Disabled + VM Tracking Dynamic VLANs: Disabled diff --git a/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml new file mode 100644 index 0000000000..92bdc9929c --- /dev/null +++ b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - admin_state: "Disabled with 10G full-duplex" + description: "AggregateLink" + link_downs_last: "Thu Jun 23 12:41:45 2022" + link_downs_num: "1" + link_state: "Ready" + link_ups_last: "Mon Apr 12 12:30:24 2021" + link_ups_num: "0" + port: "1" + random_early_drop: "Unsupported" + type: "NONE" + virtual_router: "VR-Default" + vlan_id: + - "2222" + - "1801" + - admin_state: "Disabled with 10G full-duplex" + description: "" + link_downs_last: "Thu Jun 23 12:41:37 2022" + link_downs_num: "2" + link_state: "Ready" + link_ups_last: "Mon Jun 13 19:21:19 2022" + link_ups_num: "1" + port: "2" + random_early_drop: "Unsupported" + type: "NONE" + virtual_router: "VR-Default" + vlan_id: + - "2222" + - "1802" diff --git a/tests/extreme/show_sharing/extreme_show_sharing.raw b/tests/extreme/show_sharing/extreme_show_sharing.raw new file mode 100644 index 0000000000..33b9de1bae --- /dev/null +++ b/tests/extreme/show_sharing/extreme_show_sharing.raw @@ -0,0 +1,21 @@ +Load Sharing Monitor +Config Current Agg Ld Share Ld Share Agg Link Link Up +Master Master Control Algorithm Group Mbr State Transitions +============================================================================== + 1 LACP L3_L4 1 - R 0 + L3_L4 2 - R 1 + L3_L4 3 - R 7 + L3_L4 4 - R 0 + 29 LACP L3_L4 29 - R 12 + L3_L4 34 - R 7 + 33 33 LACP L2 33 Y A 2 + L2 35 Y A 1 + 38 LACP L3_L4 38 - R 0 + L3_L4 39 - R 0 +============================================================================== +Link State: A-Active, D-Disabled, R-Ready, NP-Port not present, L-Loopback +Load Sharing Algorithm: (L2) Layer 2 address based, (L3) Layer 3 address based + (L3_L4) Layer 3 address and Layer 4 port based + (custom) User-selected address-based configuration +Custom Algorithm Configuration: ipv4 L3-and-L4, xor +Number of load sharing trunks: 4 diff --git a/tests/extreme/show_sharing/extreme_show_sharing.yml b/tests/extreme/show_sharing/extreme_show_sharing.yml new file mode 100644 index 0000000000..b0569e60df --- /dev/null +++ b/tests/extreme/show_sharing/extreme_show_sharing.yml @@ -0,0 +1,84 @@ +--- +parsed_sample: + - agg_control: "LACP" + agg_mbr: + - "-" + - "-" + - "-" + - "-" + config_master: "1" + current_master: "" + ld_share_algorithm: + - "L3_L4" + - "L3_L4" + - "L3_L4" + - "L3_L4" + ld_share_group: + - "1" + - "2" + - "3" + - "4" + link_state: + - "R" + - "R" + - "R" + - "R" + link_up_transitions: + - "0" + - "1" + - "7" + - "0" + - agg_control: "LACP" + agg_mbr: + - "-" + - "-" + config_master: "29" + current_master: "" + ld_share_algorithm: + - "L3_L4" + - "L3_L4" + ld_share_group: + - "29" + - "34" + link_state: + - "R" + - "R" + link_up_transitions: + - "12" + - "7" + - agg_control: "LACP" + agg_mbr: + - "Y" + - "Y" + config_master: "33" + current_master: "33" + ld_share_algorithm: + - "L2" + - "L2" + ld_share_group: + - "33" + - "35" + link_state: + - "A" + - "A" + link_up_transitions: + - "2" + - "1" + - agg_control: "LACP" + agg_mbr: + - "-" + - "-" + config_master: "38" + current_master: "" + ld_share_algorithm: + - "L3_L4" + - "L3_L4" + ld_share_group: + - "38" + - "39" + link_state: + - "R" + - "R" + link_up_transitions: + - "0" + - "0" diff --git a/tests/extreme/show_vlan_description/extreme_show_vlan_description.raw b/tests/extreme/show_vlan_description/extreme_show_vlan_description.raw new file mode 100644 index 0000000000..61041d31d3 --- /dev/null +++ b/tests/extreme/show_vlan_description/extreme_show_vlan_description.raw @@ -0,0 +1,48 @@ +------------------------------------------------------------------------------- +Name VID Description +------------------------------------------------------------------------------- +Default 1 +Mgmt 4095 Management VLAN +VLAN0002 2 sw-3 +VLAN0003 3 VLAN0003 +VLAN0004 4 VLAN0004 +VLAN0005 5 tech +VLAN0006 6 zr +VLAN0007 7 +VLAN0008 8 VLAN0008 +VLAN0009 9 VGWsubnet1 +VLAN0010 10 LAN +VLAN0011 11 dsl-Internet +VLAN0012 12 VLAN0012 +VLAN0013 13 VLAN0013 +VLAN0014 14 VLAN0014 +VLAN0015 15 l3-sw-3 +VLAN0016 16 l3sw-2-6 +VLAN0017 17 VLAN0017 +VLAN0018 18 VLAN0018 +VLAN0019 19 VLAN0019 +VLAN0020 20 NNI-TEST-QnQ +VLAN0021 21 VLAN0021 +VLAN0022 22 VLAN0022 +VLAN0023 23 TEST_EXFO +VLAN0024 24 VLAN0024 +VLAN0025 25 VLAN0025 +VLAN0026 26 VLAN0026 +VLAN0027 27 VLAN0027 +VLAN0028 28 VLAN0028 +VLAN0029 29 VLAN0029 +VLAN0030 30 VLAN0030 +VLAN0031 31 VLAN0031 +VLAN0032 32 user VOIP +VLAN0033 33 VLAN0033 +VLAN0034 34 VLAN0034 +VLAN0035 35 VLAN0035 +VLAN0036 36 VLAN0036 +VLAN0037 37 VLAN0037 +VLAN0038 38 SS_voip +VLAN0248 248 +------------------------------------------------------------------------------- + +> Indicates description string truncated past 57 characters + +Total number of VLAN(s) : 3469 diff --git a/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml b/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml new file mode 100644 index 0000000000..2b28c4b650 --- /dev/null +++ b/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml @@ -0,0 +1,122 @@ +--- +parsed_sample: + - description: "" + id: "1" + name: "Default" + - description: "Management VLAN" + id: "4095" + name: "Mgmt" + - description: "sw-3" + id: "2" + name: "VLAN0002" + - description: "VLAN0003" + id: "3" + name: "VLAN0003" + - description: "VLAN0004" + id: "4" + name: "VLAN0004" + - description: "tech" + id: "5" + name: "VLAN0005" + - description: "zr" + id: "6" + name: "VLAN0006" + - description: "" + id: "7" + name: "VLAN0007" + - description: "VLAN0008" + id: "8" + name: "VLAN0008" + - description: "VGWsubnet1" + id: "9" + name: "VLAN0009" + - description: "LAN" + id: "10" + name: "VLAN0010" + - description: "dsl-Internet" + id: "11" + name: "VLAN0011" + - description: "VLAN0012" + id: "12" + name: "VLAN0012" + - description: "VLAN0013" + id: "13" + name: "VLAN0013" + - description: "VLAN0014" + id: "14" + name: "VLAN0014" + - description: "l3-sw-3" + id: "15" + name: "VLAN0015" + - description: "l3sw-2-6" + id: "16" + name: "VLAN0016" + - description: "VLAN0017" + id: "17" + name: "VLAN0017" + - description: "VLAN0018" + id: "18" + name: "VLAN0018" + - description: "VLAN0019" + id: "19" + name: "VLAN0019" + - description: "NNI-TEST-QnQ" + id: "20" + name: "VLAN0020" + - description: "VLAN0021" + id: "21" + name: "VLAN0021" + - description: "VLAN0022" + id: "22" + name: "VLAN0022" + - description: "TEST_EXFO" + id: "23" + name: "VLAN0023" + - description: "VLAN0024" + id: "24" + name: "VLAN0024" + - description: "VLAN0025" + id: "25" + name: "VLAN0025" + - description: "VLAN0026" + id: "26" + name: "VLAN0026" + - description: "VLAN0027" + id: "27" + name: "VLAN0027" + - description: "VLAN0028" + id: "28" + name: "VLAN0028" + - description: "VLAN0029" + id: "29" + name: "VLAN0029" + - description: "VLAN0030" + id: "30" + name: "VLAN0030" + - description: "VLAN0031" + id: "31" + name: "VLAN0031" + - description: "user VOIP" + id: "32" + name: "VLAN0032" + - description: "VLAN0033" + id: "33" + name: "VLAN0033" + - description: "VLAN0034" + id: "34" + name: "VLAN0034" + - description: "VLAN0035" + id: "35" + name: "VLAN0035" + - description: "VLAN0036" + id: "36" + name: "VLAN0036" + - description: "VLAN0037" + id: "37" + name: "VLAN0037" + - description: "SS_voip" + id: "38" + name: "VLAN0038" + - description: "" + id: "248" + name: "VLAN0248" From d2961342147603150bd81ab94c503e4bfe073921 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:34:46 +0400 Subject: [PATCH 18/19] Extreme value names fix (#1557) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add new platform 'extreme' + 6 templates (without tests) * Fix template for 'show ipconfig' and add tests * Fix template for 'show ports description' and add tests * Fix template for 'show ports information' and add tests * rebase show ports description * Fix template for 'show sharing' and add tests * Fix template for 'show vlan description' and add tests * Fix template for 'show ports information detail' and add tests * Update ntc_templates/templates/extreme_show_ports_description.textfsm Co-authored-by: Josh VanDeraa * Update ntc_templates/templates/extreme_show_ports_information.textfsm Co-authored-by: Josh VanDeraa * Update ntc_templates/templates/extreme_show_vlan_description.textfsm Co-authored-by: Josh VanDeraa * Update ntc_templates/templates/extreme_show_ports_information_detail.textfsm Co-authored-by: Josh VanDeraa * Fix value names --------- Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Maxim Shpak Co-authored-by: Josh VanDeraa --- .../extreme_show_ports_description.textfsm | 2 +- .../extreme_show_ports_information.textfsm | 2 +- ...reme_show_ports_information_detail.textfsm | 2 +- .../extreme_show_vlan_description.textfsm | 2 +- .../extreme_show_ports_description.yml | 96 +++++------ .../extreme_show_ports_information.yml | 96 +++++------ .../extreme_show_ports_information_brief.yml | 4 +- .../extreme_show_vlan_description.yml | 160 +++++++++--------- 8 files changed, 182 insertions(+), 182 deletions(-) diff --git a/ntc_templates/templates/extreme_show_ports_description.textfsm b/ntc_templates/templates/extreme_show_ports_description.textfsm index 3c54caf12e..044b577cab 100644 --- a/ntc_templates/templates/extreme_show_ports_description.textfsm +++ b/ntc_templates/templates/extreme_show_ports_description.textfsm @@ -13,6 +13,6 @@ Start Ports ^(\s*=+)+\s*$$ - ^\s*${PORT}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*${INTERFACE}(?:\s+${DESCRIPTION})?\s*$$ -> Record ^\s* ^. -> Error diff --git a/ntc_templates/templates/extreme_show_ports_information.textfsm b/ntc_templates/templates/extreme_show_ports_information.textfsm index 9e416db001..7084204c6e 100644 --- a/ntc_templates/templates/extreme_show_ports_information.textfsm +++ b/ntc_templates/templates/extreme_show_ports_information.textfsm @@ -19,7 +19,7 @@ Start Ports ^State\s+/OAM\s+UPS\s+STP\s+VLAN\s+Proto\s+Size\s+profile\s+Master\*$$ ^(\s*=+)+\s*$$ - ^\s*${PORT}\s+${FLAGS}\s+${LINK_STATE}\s+${ELSM}\s*/\s*${OAM}\s+${LINK_UPS}\s+${NUM_STP}\s+${NUM_VLAN}\s+${NUM_PROTO}\s+${JUMBO_SIZE}\s+${QOS_PROFILE}(?:\s+${LOAD_MASTER})?\s*$$ -> Record + ^\s*${INTERFACE}\s+${FLAGS}\s+${LINK_STATE}\s+${ELSM}\s*/\s*${OAM}\s+${LINK_UPS}\s+${NUM_STP}\s+${NUM_VLAN}\s+${NUM_PROTO}\s+${JUMBO_SIZE}\s+${QOS_PROFILE}(?:\s+${LOAD_MASTER})?\s*$$ -> Record ^\s*>\s+indicates\s+Port\s+Display\s+Name\s+truncated\s+past\s+8\s+characters\s*$$ ^\s*Flags\s+:\s+a\s+-\s+Load\s+Sharing\s+Algorithm\s+address-based,\s+D\s+-\s+Port\s+Disabled,\s*$$ ^\s*e\s+-\s+Extreme\s+Discovery\s+Protocol\s+Enabled,\s+E\s+-\s+Port\s+Enabled,\s*$$ diff --git a/ntc_templates/templates/extreme_show_ports_information_detail.textfsm b/ntc_templates/templates/extreme_show_ports_information_detail.textfsm index 71a20fda1b..4fd514c7e6 100644 --- a/ntc_templates/templates/extreme_show_ports_information_detail.textfsm +++ b/ntc_templates/templates/extreme_show_ports_information_detail.textfsm @@ -13,7 +13,7 @@ Value List VLAN_ID (\d+) Start ^\s*Port:.*$$ -> Continue.Record - ^\s*Port:\s*${PORT}\s*$$ + ^\s*Port:\s*${INTERFACE}\s*$$ ^\s*Description\s+String:\s*\"${DESCRIPTION}\"\s*$$ ^\s*Virtual-router:\s*${VIRTUAL_ROUTER}\s*$$ ^\s*Type:\s*${TYPE}\s*$$ diff --git a/ntc_templates/templates/extreme_show_vlan_description.textfsm b/ntc_templates/templates/extreme_show_vlan_description.textfsm index efbe0d7b47..b40bebbce4 100644 --- a/ntc_templates/templates/extreme_show_vlan_description.textfsm +++ b/ntc_templates/templates/extreme_show_vlan_description.textfsm @@ -10,7 +10,7 @@ Start VlanTable ^(\s*=+)+\s*$$ - ^\s*${NAME}\s+${ID}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*${VLAN_NAME}\s+${VLAN_ID}(?:\s+${DESCRIPTION})?\s*$$ -> Record ^\s*>\s+Indicates\s+description\s+string\s+truncated\s+past\s+\d+\s+characters\s*$$ ^\s*Total\s+number\s+of\s+VLAN\(s\)\s*:\s*\d+\s*$$ ^\s* diff --git a/tests/extreme/show_ports_description/extreme_show_ports_description.yml b/tests/extreme/show_ports_description/extreme_show_ports_description.yml index 16e125c375..e805ff65b3 100644 --- a/tests/extreme/show_ports_description/extreme_show_ports_description.yml +++ b/tests/extreme/show_ports_description/extreme_show_ports_description.yml @@ -2,145 +2,145 @@ parsed_sample: - description: "AggregateLink" display_string: "" - port: "1" + interface: "1" - description: "" display_string: "" - port: "2" + interface: "2" - description: "" display_string: "" - port: "3" + interface: "3" - description: "" display_string: "" - port: "4" + interface: "4" - description: "MX5-2 - xe0/0/3" display_string: "" - port: "5" + interface: "5" - description: "BLADE-3 - VC1-4" display_string: "" - port: "6" + interface: "6" - description: "BLADE-3 - VC2-4" display_string: "" - port: "7" + interface: "7" - description: "BGW-R1 - xe0/1/1 (LAG7)" display_string: "" - port: "8" + interface: "8" - description: "FREE" display_string: "" - port: "9" + interface: "9" - description: "SRV-R1 - xe-0/0/1 (LAG6)" display_string: "" - port: "10" + interface: "10" - description: "3COM - Gi1/0/26 Link for PIM" display_string: "" - port: "11" + interface: "11" - description: "C4948-1 - te1/49" display_string: "" - port: "12" + interface: "12" - description: "Eltex3124-7 - te1/0/1" display_string: "" - port: "13" + interface: "13" - description: "Eltex3124-6 - te1/0/1" display_string: "" - port: "14" + interface: "14" - description: "Eltex3124-5 - te1/0/1" display_string: "" - port: "15" + interface: "15" - description: "Eltex3124-4 - te1/0/1" display_string: "" - port: "16" + interface: "16" - description: "MX5-1 - xe-0/0/3" display_string: "" - port: "17" + interface: "17" - description: "MX5-1 - xe-0/0/1" display_string: "" - port: "18" + interface: "18" - description: "CCR1036 - sfp1" display_string: "" - port: "19" + interface: "19" - description: "" display_string: "" - port: "20" + interface: "20" - description: "" display_string: "" - port: "21" + interface: "21" - description: "RS-CORE-1 - Gi0/1" display_string: "" - port: "22" + interface: "22" - description: "" display_string: "" - port: "23" + interface: "23" - description: "Uplink-GARS" display_string: "" - port: "24" + interface: "24" - description: "CRM-139204" display_string: "" - port: "25" + interface: "25" - description: "FREE" display_string: "" - port: "26" + interface: "26" - description: "FREE" display_string: "" - port: "27" + interface: "27" - description: "FREE" display_string: "" - port: "28" + interface: "28" - description: "N3K-2 - eth1/1 (LAG29)" display_string: "" - port: "29" + interface: "29" - description: "3COM - Te1/1/1" display_string: "" - port: "30" + interface: "30" - description: "FREE" display_string: "" - port: "31" + interface: "31" - description: "" display_string: "" - port: "32" + interface: "32" - description: "N9K-1 - eth1/46 (LAG33)" display_string: "" - port: "33" + interface: "33" - description: "N3K-2 - eth1/2 (LAG29)" display_string: "" - port: "34" + interface: "34" - description: "N9K-1 - eth1/47 (LAG33)" display_string: "" - port: "35" + interface: "35" - description: "Carbon-Reductor-NetXtreme-1 MIRROR" display_string: "" - port: "36" + interface: "36" - description: "VoipMonitor_Mirror" display_string: "" - port: "37" + interface: "37" - description: "Eltex3324-1 - te1/0/1 (LAG38)" display_string: "" - port: "38" + interface: "38" - description: "Eltex3324-1 - te1/0/2 (LAG38)" display_string: "" - port: "39" + interface: "39" - description: "FREE" display_string: "" - port: "40" + interface: "40" - description: "FREE" display_string: "" - port: "41" + interface: "41" - description: "BLADE-2-VC2 - VC8" display_string: "" - port: "42" + interface: "42" - description: "Storage-SMicro - eth0" display_string: "" - port: "43" + interface: "43" - description: "SCST-SSD_Cache - eth1" display_string: "" - port: "44" + interface: "44" - description: "Eltex5248-1 - Te1/0/1" display_string: "" - port: "45" + interface: "45" - description: "VEEAM1 - eth1" display_string: "" - port: "46" + interface: "46" - description: "BLADE-1-VC2 - VC1" display_string: "" - port: "47" + interface: "47" - description: "BLADE-1-VC2 - VC8" display_string: "" - port: "48" + interface: "48" diff --git a/tests/extreme/show_ports_information/extreme_show_ports_information.yml b/tests/extreme/show_ports_information/extreme_show_ports_information.yml index 1e1b229e41..650d2f5993 100644 --- a/tests/extreme/show_ports_information/extreme_show_ports_information.yml +++ b/tests/extreme/show_ports_information/extreme_show_ports_information.yml @@ -10,7 +10,7 @@ parsed_sample: num_stp: "1" num_vlan: "3288" oam: "-" - port: "1" + interface: "1" qos_profile: "none" - elsm: "-" flags: "Dmjla---e--fMB---x-" @@ -22,7 +22,7 @@ parsed_sample: num_stp: "1" num_vlan: "3288" oam: "-" - port: "2" + interface: "2" qos_profile: "none" - elsm: "-" flags: "Dmjla---e--fMB---x-" @@ -34,7 +34,7 @@ parsed_sample: num_stp: "1" num_vlan: "3288" oam: "-" - port: "3" + interface: "3" qos_profile: "none" - elsm: "-" flags: "Dmjla---e--fMB---x-" @@ -46,7 +46,7 @@ parsed_sample: num_stp: "1" num_vlan: "3288" oam: "-" - port: "4" + interface: "4" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -58,7 +58,7 @@ parsed_sample: num_stp: "0" num_vlan: "1" oam: "-" - port: "5" + interface: "5" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -70,7 +70,7 @@ parsed_sample: num_stp: "0" num_vlan: "74" oam: "-" - port: "6" + interface: "6" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -82,7 +82,7 @@ parsed_sample: num_stp: "0" num_vlan: "74" oam: "-" - port: "7" + interface: "7" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -94,7 +94,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "8" + interface: "8" qos_profile: "none" - elsm: "-" flags: "Dmj-----e--fMB---x-" @@ -106,7 +106,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "9" + interface: "9" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -118,7 +118,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "10" + interface: "10" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -130,7 +130,7 @@ parsed_sample: num_stp: "0" num_vlan: "1" oam: "-" - port: "11" + interface: "11" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -142,7 +142,7 @@ parsed_sample: num_stp: "0" num_vlan: "97" oam: "-" - port: "12" + interface: "12" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -154,7 +154,7 @@ parsed_sample: num_stp: "1" num_vlan: "55" oam: "-" - port: "13" + interface: "13" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -166,7 +166,7 @@ parsed_sample: num_stp: "1" num_vlan: "130" oam: "-" - port: "14" + interface: "14" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -178,7 +178,7 @@ parsed_sample: num_stp: "1" num_vlan: "191" oam: "-" - port: "15" + interface: "15" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -190,7 +190,7 @@ parsed_sample: num_stp: "1" num_vlan: "312" oam: "-" - port: "16" + interface: "16" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -202,7 +202,7 @@ parsed_sample: num_stp: "0" num_vlan: "3289" oam: "-" - port: "17" + interface: "17" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -214,7 +214,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "18" + interface: "18" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -226,7 +226,7 @@ parsed_sample: num_stp: "0" num_vlan: "176" oam: "-" - port: "19" + interface: "19" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -238,7 +238,7 @@ parsed_sample: num_stp: "1" num_vlan: "7" oam: "-" - port: "20" + interface: "20" qos_profile: "none" - elsm: "-" flags: "Dmj-----e--fMB---x-" @@ -250,7 +250,7 @@ parsed_sample: num_stp: "0" num_vlan: "1" oam: "-" - port: "21" + interface: "21" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -262,7 +262,7 @@ parsed_sample: num_stp: "1" num_vlan: "11" oam: "-" - port: "22" + interface: "22" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -274,7 +274,7 @@ parsed_sample: num_stp: "1" num_vlan: "3324" oam: "-" - port: "23" + interface: "23" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -286,7 +286,7 @@ parsed_sample: num_stp: "0" num_vlan: "1" oam: "-" - port: "24" + interface: "24" qos_profile: "none" - elsm: "-" flags: "Dmj-----e--fMB---x-" @@ -298,7 +298,7 @@ parsed_sample: num_stp: "0" num_vlan: "5" oam: "-" - port: "25" + interface: "25" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -310,7 +310,7 @@ parsed_sample: num_stp: "0" num_vlan: "5" oam: "-" - port: "26" + interface: "26" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -322,7 +322,7 @@ parsed_sample: num_stp: "0" num_vlan: "5" oam: "-" - port: "27" + interface: "27" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -334,7 +334,7 @@ parsed_sample: num_stp: "0" num_vlan: "5" oam: "-" - port: "28" + interface: "28" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -346,7 +346,7 @@ parsed_sample: num_stp: "0" num_vlan: "72" oam: "-" - port: "29" + interface: "29" qos_profile: "none" - elsm: "-" flags: "Dmj-----e--fMB---x-" @@ -358,7 +358,7 @@ parsed_sample: num_stp: "1" num_vlan: "532" oam: "-" - port: "30" + interface: "30" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -370,7 +370,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "31" + interface: "31" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -382,7 +382,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "32" + interface: "32" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -394,7 +394,7 @@ parsed_sample: num_stp: "0" num_vlan: "856" oam: "-" - port: "33" + interface: "33" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -406,7 +406,7 @@ parsed_sample: num_stp: "0" num_vlan: "72" oam: "-" - port: "34" + interface: "34" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -418,7 +418,7 @@ parsed_sample: num_stp: "0" num_vlan: "856" oam: "-" - port: "35" + interface: "35" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -430,7 +430,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "36" + interface: "36" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -442,7 +442,7 @@ parsed_sample: num_stp: "0" num_vlan: "0" oam: "-" - port: "37" + interface: "37" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -454,7 +454,7 @@ parsed_sample: num_stp: "0" num_vlan: "26" oam: "-" - port: "38" + interface: "38" qos_profile: "none" - elsm: "-" flags: "Emjla---e--fMB---x-" @@ -466,7 +466,7 @@ parsed_sample: num_stp: "0" num_vlan: "26" oam: "-" - port: "39" + interface: "39" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -478,7 +478,7 @@ parsed_sample: num_stp: "0" num_vlan: "7" oam: "-" - port: "40" + interface: "40" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -490,7 +490,7 @@ parsed_sample: num_stp: "1" num_vlan: "118" oam: "-" - port: "41" + interface: "41" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -502,7 +502,7 @@ parsed_sample: num_stp: "1" num_vlan: "317" oam: "-" - port: "42" + interface: "42" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -514,7 +514,7 @@ parsed_sample: num_stp: "1" num_vlan: "2" oam: "-" - port: "43" + interface: "43" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB---x-" @@ -526,7 +526,7 @@ parsed_sample: num_stp: "0" num_vlan: "1" oam: "-" - port: "44" + interface: "44" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB-----" @@ -538,7 +538,7 @@ parsed_sample: num_stp: "0" num_vlan: "388" oam: "-" - port: "45" + interface: "45" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB-----" @@ -550,7 +550,7 @@ parsed_sample: num_stp: "0" num_vlan: "6" oam: "-" - port: "46" + interface: "46" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB-----" @@ -562,7 +562,7 @@ parsed_sample: num_stp: "0" num_vlan: "261" oam: "-" - port: "47" + interface: "47" qos_profile: "none" - elsm: "-" flags: "Emj-----e--fMB-----" @@ -574,5 +574,5 @@ parsed_sample: num_stp: "0" num_vlan: "265" oam: "-" - port: "48" + interface: "48" qos_profile: "none" diff --git a/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml index 92bdc9929c..49938c024a 100644 --- a/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml +++ b/tests/extreme/show_ports_information_detail/extreme_show_ports_information_brief.yml @@ -7,7 +7,7 @@ parsed_sample: link_state: "Ready" link_ups_last: "Mon Apr 12 12:30:24 2021" link_ups_num: "0" - port: "1" + interface: "1" random_early_drop: "Unsupported" type: "NONE" virtual_router: "VR-Default" @@ -21,7 +21,7 @@ parsed_sample: link_state: "Ready" link_ups_last: "Mon Jun 13 19:21:19 2022" link_ups_num: "1" - port: "2" + interface: "2" random_early_drop: "Unsupported" type: "NONE" virtual_router: "VR-Default" diff --git a/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml b/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml index 2b28c4b650..c586a3b701 100644 --- a/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml +++ b/tests/extreme/show_vlan_description/extreme_show_vlan_description.yml @@ -1,122 +1,122 @@ --- parsed_sample: - description: "" - id: "1" - name: "Default" + vlan_id: "1" + vlan_name: "Default" - description: "Management VLAN" - id: "4095" - name: "Mgmt" + vlan_id: "4095" + vlan_name: "Mgmt" - description: "sw-3" - id: "2" - name: "VLAN0002" + vlan_id: "2" + vlan_name: "VLAN0002" - description: "VLAN0003" - id: "3" - name: "VLAN0003" + vlan_id: "3" + vlan_name: "VLAN0003" - description: "VLAN0004" - id: "4" - name: "VLAN0004" + vlan_id: "4" + vlan_name: "VLAN0004" - description: "tech" - id: "5" - name: "VLAN0005" + vlan_id: "5" + vlan_name: "VLAN0005" - description: "zr" - id: "6" - name: "VLAN0006" + vlan_id: "6" + vlan_name: "VLAN0006" - description: "" - id: "7" - name: "VLAN0007" + vlan_id: "7" + vlan_name: "VLAN0007" - description: "VLAN0008" - id: "8" - name: "VLAN0008" + vlan_id: "8" + vlan_name: "VLAN0008" - description: "VGWsubnet1" - id: "9" - name: "VLAN0009" + vlan_id: "9" + vlan_name: "VLAN0009" - description: "LAN" - id: "10" - name: "VLAN0010" + vlan_id: "10" + vlan_name: "VLAN0010" - description: "dsl-Internet" - id: "11" - name: "VLAN0011" + vlan_id: "11" + vlan_name: "VLAN0011" - description: "VLAN0012" - id: "12" - name: "VLAN0012" + vlan_id: "12" + vlan_name: "VLAN0012" - description: "VLAN0013" - id: "13" - name: "VLAN0013" + vlan_id: "13" + vlan_name: "VLAN0013" - description: "VLAN0014" - id: "14" - name: "VLAN0014" + vlan_id: "14" + vlan_name: "VLAN0014" - description: "l3-sw-3" - id: "15" - name: "VLAN0015" + vlan_id: "15" + vlan_name: "VLAN0015" - description: "l3sw-2-6" - id: "16" - name: "VLAN0016" + vlan_id: "16" + vlan_name: "VLAN0016" - description: "VLAN0017" - id: "17" - name: "VLAN0017" + vlan_id: "17" + vlan_name: "VLAN0017" - description: "VLAN0018" - id: "18" - name: "VLAN0018" + vlan_id: "18" + vlan_name: "VLAN0018" - description: "VLAN0019" - id: "19" - name: "VLAN0019" + vlan_id: "19" + vlan_name: "VLAN0019" - description: "NNI-TEST-QnQ" - id: "20" - name: "VLAN0020" + vlan_id: "20" + vlan_name: "VLAN0020" - description: "VLAN0021" - id: "21" - name: "VLAN0021" + vlan_id: "21" + vlan_name: "VLAN0021" - description: "VLAN0022" - id: "22" - name: "VLAN0022" + vlan_id: "22" + vlan_name: "VLAN0022" - description: "TEST_EXFO" - id: "23" - name: "VLAN0023" + vlan_id: "23" + vlan_name: "VLAN0023" - description: "VLAN0024" - id: "24" - name: "VLAN0024" + vlan_id: "24" + vlan_name: "VLAN0024" - description: "VLAN0025" - id: "25" - name: "VLAN0025" + vlan_id: "25" + vlan_name: "VLAN0025" - description: "VLAN0026" - id: "26" - name: "VLAN0026" + vlan_id: "26" + vlan_name: "VLAN0026" - description: "VLAN0027" - id: "27" - name: "VLAN0027" + vlan_id: "27" + vlan_name: "VLAN0027" - description: "VLAN0028" - id: "28" - name: "VLAN0028" + vlan_id: "28" + vlan_name: "VLAN0028" - description: "VLAN0029" - id: "29" - name: "VLAN0029" + vlan_id: "29" + vlan_name: "VLAN0029" - description: "VLAN0030" - id: "30" - name: "VLAN0030" + vlan_id: "30" + vlan_name: "VLAN0030" - description: "VLAN0031" - id: "31" - name: "VLAN0031" + vlan_id: "31" + vlan_name: "VLAN0031" - description: "user VOIP" - id: "32" - name: "VLAN0032" + vlan_id: "32" + vlan_name: "VLAN0032" - description: "VLAN0033" - id: "33" - name: "VLAN0033" + vlan_id: "33" + vlan_name: "VLAN0033" - description: "VLAN0034" - id: "34" - name: "VLAN0034" + vlan_id: "34" + vlan_name: "VLAN0034" - description: "VLAN0035" - id: "35" - name: "VLAN0035" + vlan_id: "35" + vlan_name: "VLAN0035" - description: "VLAN0036" - id: "36" - name: "VLAN0036" + vlan_id: "36" + vlan_name: "VLAN0036" - description: "VLAN0037" - id: "37" - name: "VLAN0037" + vlan_id: "37" + vlan_name: "VLAN0037" - description: "SS_voip" - id: "38" - name: "VLAN0038" + vlan_id: "38" + vlan_name: "VLAN0038" - description: "" - id: "248" - name: "VLAN0248" + vlan_id: "248" + vlan_name: "VLAN0248" From 1af05079c96477066f7113d42b84a77409d17a6c Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:12:15 +0400 Subject: [PATCH 19/19] HP Comware 'display interface' template fix (#1528) * Add untagged vlan parsing * Change untagged vlan value name --- ntc_templates/templates/hp_comware_display_interface.textfsm | 2 ++ .../display_interface/hp_comware_display_interface.yml | 4 ++++ .../display_interface/hp_comware_display_interface1.yml | 1 + .../display_interface/hp_comware_display_interface2.yml | 3 +++ .../display_interface/hp_comware_display_interface3.yml | 1 + .../display_interface/hp_comware_display_interface4.yml | 2 ++ .../display_interface/hp_comware_display_interface5.yml | 1 + .../display_interface/hp_comware_display_interface6.yml | 1 + .../display_interface/hp_comware_display_interface7.yml | 1 + .../display_interface/hp_comware_display_interface8.yml | 3 +++ .../display_interface/hp_comware_display_interface9.yml | 2 ++ 11 files changed, 21 insertions(+) diff --git a/ntc_templates/templates/hp_comware_display_interface.textfsm b/ntc_templates/templates/hp_comware_display_interface.textfsm index accc734a78..6a06f3273e 100644 --- a/ntc_templates/templates/hp_comware_display_interface.textfsm +++ b/ntc_templates/templates/hp_comware_display_interface.textfsm @@ -10,6 +10,7 @@ Value BANDWIDTH (.*) Value DUPLEX (\S+) Value SPEED (\S+) Value PORT_LINK_TYPE (\S+) +Value UNTAGGED_VLAN_ID (\d+) Value VLAN_NATIVE (\d+) Value List VLAN_PASSING ([^,]+) Value List VLAN_PERMITTED ([^,]+) @@ -37,6 +38,7 @@ Start ^\s*${SPEED},\s+${DUPLEX},\s+link\s+type ^\s*PVID:\s+${VLAN_NATIVE} ^\s*Port\s+link-type:\s+${PORT_LINK_TYPE} + ^\s*Un[Tt]agged\s+VLAN\s+ID\s*:\s*${UNTAGGED_VLAN_ID} # Trunk - Passing VLANs (parsing multiple times with Continue) ^\s+VLAN\s+[Pp]assing\s*:\s+${VLAN_PASSING},* -> Continue # Skip initial VLANs and read the Nth + 1 diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface.yml b/tests/hp_comware/display_interface/hp_comware_display_interface.yml index 265ec1391a..d524930322 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface.yml @@ -15,6 +15,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] @@ -31,6 +32,7 @@ parsed_sample: port_link_type: "Trunk" protocol_status: "UP" speed: "40Gbps-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: - "1(default vlan)" @@ -53,6 +55,7 @@ parsed_sample: port_link_type: "Trunk" protocol_status: "DOWN" speed: "Unknown-speed" + untagged_vlan_id: "" vlan_native: "2190" vlan_passing: - "2000" @@ -74,6 +77,7 @@ parsed_sample: port_link_type: "Access" protocol_status: "DOWN" speed: "Unknown-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface1.yml b/tests/hp_comware/display_interface/hp_comware_display_interface1.yml index 64d8a4dae6..de09338d8e 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface1.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface1.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "Trunk" protocol_status: "" speed: "160Gbps-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: - "2-21" diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface2.yml b/tests/hp_comware/display_interface/hp_comware_display_interface2.yml index c5978dd26d..57c051e05f 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface2.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface2.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "Access" protocol_status: "DOWN" speed: "Unknown-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: [] vlan_permitted: [] @@ -28,6 +29,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP(spoofing)" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] @@ -45,6 +47,7 @@ parsed_sample: port_link_type: "" protocol_status: "DOWN" speed: "Unknown-speed" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface3.yml b/tests/hp_comware/display_interface/hp_comware_display_interface3.yml index 385ccf066a..04fae527d5 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface3.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface3.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "Trunk" protocol_status: "" speed: "20Gbps-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: - "1(default vlan)" diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface4.yml b/tests/hp_comware/display_interface/hp_comware_display_interface4.yml index 95d99743a0..3aaeccc961 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface4.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface4.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "trunk" protocol_status: "" speed: "20Gbps-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: - "1(default vlan)" @@ -36,6 +37,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface5.yml b/tests/hp_comware/display_interface/hp_comware_display_interface5.yml index be413c145d..acec875d20 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface5.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface5.yml @@ -14,6 +14,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "1000Mb/s" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface6.yml b/tests/hp_comware/display_interface/hp_comware_display_interface6.yml index 016563431e..12c464b637 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface6.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface6.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "access" protocol_status: "" speed: "10Gbps-speed" + untagged_vlan_id: "1" vlan_native: "1" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface7.yml b/tests/hp_comware/display_interface/hp_comware_display_interface7.yml index 8237423155..beddd75f41 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface7.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface7.yml @@ -13,6 +13,7 @@ parsed_sample: port_link_type: "Trunk" protocol_status: "UP" speed: "1000Mbps-speed" + untagged_vlan_id: "" vlan_native: "1" vlan_passing: - "4050" diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface8.yml b/tests/hp_comware/display_interface/hp_comware_display_interface8.yml index fbf3d26575..baf98008e2 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface8.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface8.yml @@ -12,6 +12,7 @@ parsed_sample: port_link_type: "" protocol_status: "" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] @@ -30,6 +31,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "1000Mbps-speed" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] @@ -46,6 +48,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] diff --git a/tests/hp_comware/display_interface/hp_comware_display_interface9.yml b/tests/hp_comware/display_interface/hp_comware_display_interface9.yml index 03a18d0dad..cb36174850 100644 --- a/tests/hp_comware/display_interface/hp_comware_display_interface9.yml +++ b/tests/hp_comware/display_interface/hp_comware_display_interface9.yml @@ -14,6 +14,7 @@ parsed_sample: port_link_type: "" protocol_status: "DOWN" speed: "1000M" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: [] @@ -30,6 +31,7 @@ parsed_sample: port_link_type: "" protocol_status: "UP" speed: "" + untagged_vlan_id: "" vlan_native: "" vlan_passing: [] vlan_permitted: []