diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 63b36a9b84..16e050c26a 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -737,6 +737,13 @@ watchguard_firebox_show_arp.textfsm, .*, watchguard_firebox, sh[[ow]] arp yamaha_show_environment.textfsm, .*, yamaha, sh[[ow]] en[[vironment]] yamaha_show_ip_route.textfsm, .*, yamaha, sh[[ow]] ip ro[[ute]] +zte_zxros_show_mpls_traffic-eng_tunnels.textfsm, .*, zte_zxros, sh[[ow]] mpls traffic-eng tunnels +zte_zxros_show_interface_brief.textfsm, .*, zte_zxros, sh[[ow]] inter[[face]] br[[ief]] +zte_zxros_show_isis_adjacency.textfsm, .*, zte_zxros, sh[[ow]] is[[is]] ad[[jacency]] +zte_zxros_show_interface.textfsm, .*, zte_zxros, sh[[ow]] int[[erface]] +zte_zxros_show_version.textfsm, .*, zte_zxros, sh[[ow]] ver[[sion]] +zte_zxros_show_arp.textfsm, .*, zte_zxros, sh[[ow]] arp + zyxel_os_cfg_lan_get_--Name_name.textfsm, .*, zyxel_os, cfg lan get --Name .+ zyxel_os_zycli_Ethctl_media-type.textfsm, .*, zyxel_os, zycli Ethctl media-type(\s\w+)* zyxel_os_cfg_firewall_acl_get.textfsm, .*, zyxel_os, cfg firewall(\s|_)acl get diff --git a/ntc_templates/templates/zte_zxros_show_arp.textfsm b/ntc_templates/templates/zte_zxros_show_arp.textfsm new file mode 100644 index 0000000000..6194cde193 --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_arp.textfsm @@ -0,0 +1,21 @@ +Value ADDRESS (\d+\.\d+\.\d+\.\d+) +Value AGE (\S+) +Value MAC_ADDRESS (\S+) +Value List INTERFACE (\S+) +Value STATE (\S+) +Value EXTERNAL_VLAN (\d+|N/A) +Value INTERNAL_VLAN (\d+|N/A) +Value List SUB_INTERFACE (\S+) + +Start + ^\d+\.\d+\.\d+\.\d+ -> Continue.Record + ^${ADDRESS}\s+${AGE}\s+${MAC_ADDRESS}\s+${INTERFACE}\s+${EXTERNAL_VLAN}\s+${INTERNAL_VLAN}\s+${SUB_INTERFACE}\s*$$ + ^\s+${INTERFACE}\s*$$ + ^\s+${INTERFACE}(\s+${SUB_INTERFACE})?\s*$$ + ^Arp\s+protect + ^The\s+count\s+is\s+\d+ + ^IP\s+Hardware\s+Exter\s+Inter\s+Sub + ^Address\s+Age\s+Address\s+Interface\s+VlanID\s+VlanID\s+Interface + ^-+ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/zte_zxros_show_interface.textfsm b/ntc_templates/templates/zte_zxros_show_interface.textfsm new file mode 100644 index 0000000000..4f28c1b419 --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_interface.textfsm @@ -0,0 +1,58 @@ +Value Required INTERFACE (\S+) +Value LINK_STATUS (.+?) +Value INTERFACE_INDEX (\d+) +Value DESCRIPTION (.*?) +Value PROTOCOL_STATUS (.+?) +Value IPV4_PROTOCOL (.+?) +Value IPV6_PROTOCOL (.+?) +Value DETECT_STATUS (\S+) +Value UPTIME (.+?) +Value HARDWARE_TYPE (.+?) +Value MAC_ADDRESS (\S+) +Value IP_ADDRESS (\S+?) +Value MASK (\d*) +Value BANDWITH (.+?) +Value List MTU (\d+) + +Start + ^\S -> Continue.Record + ^${INTERFACE}\s+is\s+${LINK_STATUS},\s+ifindex:\s+${INTERFACE_INDEX}\s*$$ + ^\s+Description:\s+${DESCRIPTION}\s*$$ + ^\s+Line\s+protocol\s+is\s+${PROTOCOL_STATUS},\s+IPv4\s+protocol\s+is\s+${IPV4_PROTOCOL},\s+IPv6\s+protocol\s+is\s+${IPV6_PROTOCOL},\s*$$ + ^\s+detected\s+status\s+is\s+${DETECT_STATUS}\s*$$ + ^\s+Last\s+line\s+protocol\s+up\s+time\s+:\s+${UPTIME}\s*$$ + ^\s+Hardware\s+is\s+${HARDWARE_TYPE},\s+address\s+is\s+${MAC_ADDRESS}\s*$$ + ^\s+Internet\s+address\s+is\s+${IP_ADDRESS}/?${MASK}\s*$$ + ^\s+BW\s+${BANDWITH}\s*$$ + ^\s+IP\s+MTU\s+${MTU}\s+bytes + ^\s+MTU\s+${MTU}\s+bytes + ^\s+IPv6\s+MTU\s+${MTU}\s+bytes + ^\s+MPLS\s+MTU\s+${MTU}\s+bytes + ^\s+The\s+interface\s+is + ^\s+Fec-(eth|bypass)\s+: + ^\s+ARP\s+(type|Timeout) + ^\s+Last\s+Clear\s+Time + ^\s+Rate\s+period + ^\s+Input\s+: + ^\s+Output\s+: + ^\s+Peak\s+rate: + ^\s+Intf\s+utilization: + ^\s+HardwareCounters: + ^\s+In_Bytes + ^\s+In_Broadcasts + ^\s+In_Unicasts + ^\s+In_Fragments + ^\s+In_65_127B + ^\s+In_256_511B + ^\s+In_1024_1518B + ^\s+In_Undersize + ^\s+E_Bytes + ^\s+E_Broadcasts + ^\s+E_Unicasts + ^\s+E_64B + ^\s+E_128_255B + ^\s+E_512_1023B + ^\s+E_1519_MaxB + ^\s+StreamCounters + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/zte_zxros_show_interface_brief.textfsm b/ntc_templates/templates/zte_zxros_show_interface_brief.textfsm new file mode 100644 index 0000000000..cb31ccf41d --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_interface_brief.textfsm @@ -0,0 +1,14 @@ +Value INTERFACE (\S+) +Value ATTRIBUTE (\S+) +Value MODE (\S+) +Value BW (\S+) +Value ADMIN (up|down|administratively down) +Value PHYSICAL (up|down|administratively down) +Value PROTOCOL (up|down|administratively down) +Value DESCRIPTION (\S.*?) + +Start + ^Interface\s+Attribute\s+Mode\s+BW\s+Admin\s+Phy\s+Prot\s+Description + ^${INTERFACE}\s+${ATTRIBUTE}\s+${MODE}\s+${BW}\s+${ADMIN}\s+${PHYSICAL}\s+${PROTOCOL}(?:\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/zte_zxros_show_isis_adjacency.textfsm b/ntc_templates/templates/zte_zxros_show_isis_adjacency.textfsm new file mode 100644 index 0000000000..120af84216 --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_isis_adjacency.textfsm @@ -0,0 +1,18 @@ +Value Filldown CONTEXT (\d+) +Value Required INTERFACE (\S+) +Value SYSTEM_ID ((\d+.\d+.\d+)|\S+) +Value STATE (\S+) +Value LEV (\S+) +Value HOLD_TIME (\d+) +Value SNPA ((\d+.\d+.\d+)|\S+) +Value PRI (\S+) +Value MT (\S+) +Value NSF (\S+) +Value AF (\S+) + +Start + ^Process\s+ID:\s+${CONTEXT}\s*$$ + ^Interface\s+System\s+id\s+State\s+Lev\s+Holds\s+SNPA\S*\s+Pri\s+MT\s+NSF\s+AF\s*$$ + ^${INTERFACE}\s+${SYSTEM_ID}\s+${STATE}\s+${LEV}\s+${HOLD_TIME}\s+${SNPA}\s+${PRI}\s+${MT}?\s+${NSF}\s+${AF}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/zte_zxros_show_mpls_traffic-eng_tunnels.textfsm b/ntc_templates/templates/zte_zxros_show_mpls_traffic-eng_tunnels.textfsm new file mode 100644 index 0000000000..c359ceab88 --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_mpls_traffic-eng_tunnels.textfsm @@ -0,0 +1,108 @@ +Value Required NAME (\S+) +Value DESC (\S+) +Value DEST (\S+) +Value ADMIN (\S+) +Value OPER (\S+) +Value PATH (\S+) +Value SIGNAL (\S+) +Value INLABEL (\S+) +Value INLABEL_ID (\d+) +Value OUTLABEL (\S+) +Value OUTLABEL_ID (\d+) +Value SRC (\S+) +Value DST (\S+) +Value ID (\d+) +Value INSTANCE (\d+) +Value List IP_ROUTE (\d+\.\d+\.\d+\.\d+|NONE) + + +Start + ^Name: -> Continue.Record + ^Name:\s+${NAME}\s*$$ + ^\s+${DESC}\s+Destination:\s+${DEST}\s*$$ + ^\s+Admin:\s+${ADMIN}\s+Oper:\s+${OPER}\s+Path:\s+${PATH}\s+Signalling:\s+${SIGNAL}\s*$$ + ^\s+Signalling:\s+${SIGNAL}\s*$$ + ^\s+InLabel:\s+${INLABEL}(,\s+${INLABEL_ID})?\s*$$ + ^\s+OutLabel:\s+${OUTLABEL}(,\s+${OUTLABEL_ID})?\s*$$ + ^\s+Src\s+${SRC},\s+Dst\s+${DST},\s+Tun-ID\s+${ID},\s+Tun-Instance\s+${INSTANCE}\s*$$ + ^\s+Explicit\s+Route:\s+${IP_ROUTE},*\s*$$ + ^\s+Explicit\s+Route:\s+${IP_ROUTE},* -> Continue + ^\s+Explicit\s+(?:\S+\s+){2}${IP_ROUTE},*\s*$$ + ^\s+Explicit\s+(?:\S+\s+){2}${IP_ROUTE},* -> Continue + ^\s+Explicit\s+(?:\S+\s+){3}${IP_ROUTE},*\s*$$ + ^\s+Explicit\s+(?:\S+\s+){3}${IP_ROUTE},* -> Continue + ^\s+Explicit\s+(?:\S+\s+){4}${IP_ROUTE},*\s*$$ + ^\s+Explicit\s+(?:\S+\s+){4}${IP_ROUTE},* -> Continue + ^\s+Explicit\s+(?:\S+\s+){5}${IP_ROUTE},*\s*$$ + ^\s+${IP_ROUTE},*\s*$$ + ^\s+${IP_ROUTE},* -> Continue + ^\s+\d+\.\d+\.\d+\.\d+\s+${IP_ROUTE},*\s*$$ + ^\s+\d+\.\d+\.\d+\.\d+\s+${IP_ROUTE},* -> Continue + ^\s+(?:\d+\.\d+\.\d+\.\d+\s+){2}${IP_ROUTE},*\s*$$ + ^\s+(?:\d+\.\d+\.\d+\.\d+\s+){2}${IP_ROUTE},* -> Continue + ^\s+(?:\d+\.\d+\.\d+\.\d+\s+){3}${IP_ROUTE},*\s*$$ + ^\s+(?:\d+\.\d+\.\d+\.\d+\s+){3}${IP_ROUTE},* -> Continue + ^\s+(?:\d+\.\d+\.\d+\.\d+\s+){4}${IP_ROUTE},*\s*$$ + ^\s+Status: + ^\s+Path\s+option: + ^\s+Pre-setup\s+Path + ^\s+Actual\s+Bandwidth + ^\s+Hot-standby + ^\s+protect\s+option + ^\s+PCE + ^\s+Active-MPLS-binding-SID + ^\s+Config\s+Parameters: + ^\s+Resv-Style + ^\s+Metric\s+Type + ^\s+Hop\s+Prior + ^\s+Hot\s+Hop\s+Limit + ^\s+Record-Route + ^\s+(Facility|Detour)\s+Fast-reroute + ^\s+Protect\s+(Coexist|Nest) + ^\s+Main\s+LSP\s+Fast-reroute + ^\s+Bandwidth + ^\s+Hot-standby-lsp + ^\s+E2E + ^\s+BFD + ^\s+Policy\s+Class + ^\s+Track\s+Name + ^\s+Auto-reoptimize + ^\s+Reference + ^\s+Tunnel-Status + ^\s+CBS + ^\s+(Main|HSB|FRR)\s+affinity: + ^\s+Exclude-any + ^\s+Include-any + ^\s+Include-all + ^\s+AutoRoute + ^\s+AUTO-BW + ^\s+Forwarding-adjacency + ^\s+Co-routed\s+Bidirect + ^\s+Associated\s+Bidirect + ^\s+Rate-limit + ^\s+Crankback + ^\s+Soft\s+Preemption + ^\s+Addresses\s+of\s+preempting\s+links + ^\s+Graceful\s+shutdown + ^\s+Without-CSPF + ^\s+Ultralimit + ^\s+Advertise + ^\s+LSP\s+recoverd + ^\s+RSVP\s+(Signalling|Path|Resv) + ^\s+(Exclude|Record)\s+Route: -> IgnoreRouting + ^\s + ^\s+History: -> Logs + ^\s*$$ + ^. -> Error + +IgnoreRouting + ^\s+(Exclude|Record)\s+Route: + ^\s+(\d+\.){3}\d+(?:\s*\(\d+\))? + ^\s+(F|T)spec -> Start + ^\s*$$ + ^. -> Error + +Logs + # Log data is unpredictable, and we can be confident important data has been captured by this point + ^Name: -> Continue.Record + ^Name:\s+${NAME}\s*$$ -> Start diff --git a/ntc_templates/templates/zte_zxros_show_version.textfsm b/ntc_templates/templates/zte_zxros_show_version.textfsm new file mode 100644 index 0000000000..a43c7baae1 --- /dev/null +++ b/ntc_templates/templates/zte_zxros_show_version.textfsm @@ -0,0 +1,13 @@ +Value HARDWARE (.+) +Value VERSION (.+) +Value UPTIME (.+?) + + +Start + ^ZXCTN${HARDWARE} + ^ZTE.+Software,\s+Version:\s+${VERSION},\s+Release\s+software + ^.+uptime\s+is\s+${UPTIME}\s*$$ -> EOF + ^Copyright + ^System\s+image + ^\s*$$ + ^. -> Error diff --git a/tests/test_index_order.py b/tests/test_index_order.py index d56af453fb..aac35bf370 100755 --- a/tests/test_index_order.py +++ b/tests/test_index_order.py @@ -64,6 +64,7 @@ "vyos", "watchguard_firebox", "yamaha", + "zte_zxros", "zyxel_os", ] CHOICES_STRING = "|".join(OS_CHOICES) diff --git a/tests/zte_zxros/show_arp/zte_zxros_show_arp.raw b/tests/zte_zxros/show_arp/zte_zxros_show_arp.raw new file mode 100644 index 0000000000..9d7dd7da69 --- /dev/null +++ b/tests/zte_zxros/show_arp/zte_zxros_show_arp.raw @@ -0,0 +1,38 @@ +Arp protect whole is disabled +The count is 17 +IP Hardware Exter Inter Sub +Address Age Address Interface VlanID VlanID Interface +-------------------------------------------------------------------------------- +10.10.255.1 H 744a.a42b.2010 xgei-1/1/0/1 201 N/A N/A + .201 +10.10.255.2 00:14:17 0427.5873.0b65 xgei-1/1/0/1 201 N/A xgei-1/1/0/1. + .201 201 +10.10.10.249 H 744a.a42b.2010 xgei-1/1/0/1 301 N/A N/A + .301 +10.10.10.250 00:14:17 0427.5873.0b65 xgei-1/1/0/1 301 N/A xgei-1/1/0/1. + .301 301 +10.10.10.25 H 744a.a42b.2010 xgei-1/1/0/1 401 N/A N/A + .401 +10.10.10.26 00:14:17 0427.5873.0b65 xgei-1/1/0/1 401 N/A xgei-1/1/0/1. + .401 401 +10.10.10.253 H 744a.a42b.2010 xgei-1/1/0/1 1001 N/A N/A + .1001 +10.10.10.254 00:14:17 0427.5873.0b65 xgei-1/1/0/1 1001 N/A xgei-1/1/0/1. + .1001 1001 +10.102.195.181 H 744a.a42b.2010 xgei-1/1/0/2 3100 N/A N/A + .3100 +10.102.195.182 00:00:39 8cdf.9d27.35c0 xgei-1/1/0/2 3100 N/A xgei-1/1/0/2. + .3100 3100 +10.89.255.201 H 744a.a42b.2010 xgei-1/1/0/2 3901 N/A N/A + .3901 +10.89.255.202 00:15:00 0020.85f8.5d58 xgei-1/1/0/2 3901 N/A xgei-1/1/0/2. + .3901 3901 +10.10.184.255 H 744a.a42b.2010 xxvgei-1/1/0 N/A N/A N/A + /20 +10.10.184.254 01:20:43 744a.a42b.1fe8 xxvgei-1/1/0 N/A N/A xxvgei-1/1/0/ + /20 20 +10.10.185.2 H 744a.a42b.2010 xxvgei-1/1/0 N/A N/A N/A + /24 +10.10.185.3 03:09:39 744a.a42b.d358 xxvgei-1/1/0 N/A N/A xxvgei-1/1/0/ + /24 24 +192.168.1.11 H 744a.a42b.2011 mgmt_eth N/A N/A N/A diff --git a/tests/zte_zxros/show_arp/zte_zxros_show_arp.yml b/tests/zte_zxros/show_arp/zte_zxros_show_arp.yml new file mode 100644 index 0000000000..5b9ff75524 --- /dev/null +++ b/tests/zte_zxros/show_arp/zte_zxros_show_arp.yml @@ -0,0 +1,196 @@ +--- +parsed_sample: + - address: "10.10.255.1" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/1" + - ".201" + state: "" + external_vlan: "201" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.255.2" + age: "00:14:17" + mac_address: "0427.5873.0b65" + interface: + - "xgei-1/1/0/1" + - ".201" + state: "" + external_vlan: "201" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/1." + - "201" + - address: "10.10.10.249" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/1" + - ".301" + state: "" + external_vlan: "301" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.10.250" + age: "00:14:17" + mac_address: "0427.5873.0b65" + interface: + - "xgei-1/1/0/1" + - ".301" + state: "" + external_vlan: "301" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/1." + - "301" + - address: "10.10.10.25" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/1" + - ".401" + state: "" + external_vlan: "401" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.10.26" + age: "00:14:17" + mac_address: "0427.5873.0b65" + interface: + - "xgei-1/1/0/1" + - ".401" + state: "" + external_vlan: "401" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/1." + - "401" + - address: "10.10.10.253" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/1" + - ".1001" + state: "" + external_vlan: "1001" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.10.254" + age: "00:14:17" + mac_address: "0427.5873.0b65" + interface: + - "xgei-1/1/0/1" + - ".1001" + state: "" + external_vlan: "1001" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/1." + - "1001" + - address: "10.102.195.181" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/2" + - ".3100" + state: "" + external_vlan: "3100" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.102.195.182" + age: "00:00:39" + mac_address: "8cdf.9d27.35c0" + interface: + - "xgei-1/1/0/2" + - ".3100" + state: "" + external_vlan: "3100" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/2." + - "3100" + - address: "10.89.255.201" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xgei-1/1/0/2" + - ".3901" + state: "" + external_vlan: "3901" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.89.255.202" + age: "00:15:00" + mac_address: "0020.85f8.5d58" + interface: + - "xgei-1/1/0/2" + - ".3901" + state: "" + external_vlan: "3901" + internal_vlan: "N/A" + sub_interface: + - "xgei-1/1/0/2." + - "3901" + - address: "10.10.184.255" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xxvgei-1/1/0" + - "/20" + state: "" + external_vlan: "N/A" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.184.254" + age: "01:20:43" + mac_address: "744a.a42b.1fe8" + interface: + - "xxvgei-1/1/0" + - "/20" + state: "" + external_vlan: "N/A" + internal_vlan: "N/A" + sub_interface: + - "xxvgei-1/1/0/" + - "20" + - address: "10.10.185.2" + age: "H" + mac_address: "744a.a42b.2010" + interface: + - "xxvgei-1/1/0" + - "/24" + state: "" + external_vlan: "N/A" + internal_vlan: "N/A" + sub_interface: + - "N/A" + - address: "10.10.185.3" + age: "03:09:39" + mac_address: "744a.a42b.d358" + interface: + - "xxvgei-1/1/0" + - "/24" + state: "" + external_vlan: "N/A" + internal_vlan: "N/A" + sub_interface: + - "xxvgei-1/1/0/" + - "24" + - address: "192.168.1.11" + age: "H" + mac_address: "744a.a42b.2011" + interface: + - "mgmt_eth" + state: "" + external_vlan: "N/A" + internal_vlan: "N/A" + sub_interface: + - "N/A" diff --git a/tests/zte_zxros/show_interface/zte_zxros_show_interface.raw b/tests/zte_zxros/show_interface/zte_zxros_show_interface.raw new file mode 100644 index 0000000000..fb8e6578d0 --- /dev/null +++ b/tests/zte_zxros/show_interface/zte_zxros_show_interface.raw @@ -0,0 +1,132 @@ +xxvgei-1/1/0/24 is up, ifindex: 8225 + Description: R-xxxxx-01Z_xxvgei-1/1/0/24_to_R-xxxxx02-01Z_xxvgei-1/1/0/20;by:XXX;CID:XXXXXXX + Line protocol is up, IPv4 protocol is up, IPv6 protocol is down, + detected status is RX-OK/TX-OK + Last line protocol up time : 2023-04-02 15:42:13 + Hardware is XXVGigabit Ethernet, address is 744a.a42b.2010 + Internet address is 10.206.185.2/31 + BW 10 Gbit/s + IP MTU 9178 bytes + MTU 9192 bytes + MPLS MTU 9178 bytes + + Fec-eth : N/A + Fec-bypass : disable + ARP type ARP + ARP Timeout 04:00:00 + Last Clear Time : 2023-03-15 00:23:16 Last Refresh Time: 2023-04-07 11:17:50 + Rate period : 30 s + Input : 54070488 bit/s 17263 packet/s + Output : 181452736 bit/s 19848 packet/s + Peak rate: + Input : 193604816 bit/s peak time 2023-03-18 19:13:50 + Output : 1832230896 bit/s peak time 2023-03-18 20:36:40 + Intf utilization: input 0.54% output 1.81% + HardwareCounters: + In_Bytes 9284060783182 In_Packets 37909098091 + In_Broadcasts 3 In_Multicasts 1009767 + In_Unicasts 37908088321 In_CRC_ERROR 0 + In_Fragments 0 In_64B 39549 + In_65_127B 23801374871 In_128_255B 7867332105 + In_256_511B 1669025875 In_512_1023B 1998802757 + In_1024_1518B 2559890154 In_1519_MaxB 12632780 + In_Undersize 0 In_Oversize 0 + E_Bytes 91949543490869 E_Packets 79122043711 + E_Broadcasts 5 E_Multicasts 1086970 + E_Unicasts 79120956747 E_CRC_ERROR 0 + E_64B 20521174 E_65_127B 7788975586 + E_128_255B 5664052345 E_256_511B 1768390101 + E_512_1023B 1247046702 E_1024_1518B 62105204361 + E_1519_MaxB 527853452 E_Oversize 0 + StreamCounters : + In_Bytes 9284060783182 In_Packets 37909098091 + E_Bytes 91949543490869 E_Packets 79122043711 +xxvgei-1/1/0/32 is administratively down, ifindex: 8233 + The interface is configured shutdown + Line protocol is down, IPv4 protocol is down, IPv6 protocol is down, + detected status is RX-OK/TX-OK + Last line protocol up time : - + Hardware is XXVGigabit Ethernet, address is 744a.a42b.2010 + Internet address is unassigned + BW 25 Gbit/s + IP MTU 1500 bytes + MTU 1600 bytes + MPLS MTU 1550 bytes + + Fec-eth : enable + Fec-bypass : disable + ARP type ARP + ARP Timeout 04:00:00 + Last Clear Time : 2023-03-15 00:23:16 Last Refresh Time: 2023-03-15 00:23:16 + Rate period : 30 s + Input : 0 bit/s 0 packet/s + Output : 0 bit/s 0 packet/s + Peak rate: + Input : 0 bit/s peak time N/A + Output : 0 bit/s peak time N/A + Intf utilization: input 0% output 0% + HardwareCounters: + In_Bytes 0 In_Packets 0 + In_Broadcasts 0 In_Multicasts 0 + In_Unicasts 0 In_CRC_ERROR 0 + In_Fragments 0 In_64B 0 + In_65_127B 0 In_128_255B 0 + In_256_511B 0 In_512_1023B 0 + In_1024_1518B 0 In_1519_MaxB 0 + In_Undersize 0 In_Oversize 0 + E_Bytes 0 E_Packets 0 + E_Broadcasts 0 E_Multicasts 0 + E_Unicasts 0 E_CRC_ERROR 0 + E_64B 0 E_65_127B 0 + E_128_255B 0 E_256_511B 0 + E_512_1023B 0 E_1024_1518B 0 + E_1519_MaxB 0 E_Oversize 0 + StreamCounters : + In_Bytes 0 In_Packets 0 + E_Bytes 0 E_Packets 0 +mgmt_eth is down, ifindex: 262145 + Line protocol is down, IPv4 protocol is down, IPv6 protocol is down, + detected status is RX-OK/TX-OK + Last line protocol up time : 2023-03-15 00:21:14 + Hardware is Management Ethernet, address is 744a.a42b.2011 + Internet address is 192.168.1.11/24 + BW 100 Mbit/s + IP MTU 1500 bytes + MTU 1514 bytes + ARP type ARP + ARP Timeout 04:00:00 + Last Clear Time : 2023-03-15 00:21:14 Last Refresh Time: 2023-03-15 00:21:20 + Rate period : 30 s + Input : 0 bit/s 0 packet/s + Output : 0 bit/s 0 packet/s + Peak rate: + Input : 0 bit/s peak time N/A + Output : 0 bit/s peak time N/A + Intf utilization: input 0% output 0% + HardwareCounters: + In_Bytes 0 In_Packets 0 + In_Broadcasts N/A In_Multicasts 0 + In_Unicasts N/A In_CRC_ERROR N/A + In_Fragments N/A In_64B N/A + In_65_127B N/A In_128_255B N/A + In_256_511B N/A In_512_1023B N/A + In_1024_1518B N/A In_1519_MaxB N/A + In_Undersize N/A In_Oversize 0 + E_Bytes 836 E_Packets 11 + E_Broadcasts N/A E_Multicasts N/A + E_Unicasts N/A E_CRC_ERROR N/A + E_64B N/A E_65_127B N/A + E_128_255B N/A E_256_511B N/A + E_512_1023B N/A E_1024_1518B N/A + E_1519_MaxB N/A E_Oversize 0 +loopback0 is up, ifindex: 8234 + Description: Management&Traffic address + Line protocol is up, IPv4 protocol is up, IPv6 protocol is up, + detected status is RX-OK/TX-OK + Last line protocol up time : 2023-03-15 00:21:12 + Hardware is Loopback, address is 744a.a42b.2010 + Internet address is 10.10.10.108/32 + BW 8 Gbit/s + IP MTU 1500 bytes + IPv6 MTU 1500 bytes + MPLS MTU 1550 bytes diff --git a/tests/zte_zxros/show_interface/zte_zxros_show_interface.yml b/tests/zte_zxros/show_interface/zte_zxros_show_interface.yml new file mode 100644 index 0000000000..ace0c4acf9 --- /dev/null +++ b/tests/zte_zxros/show_interface/zte_zxros_show_interface.yml @@ -0,0 +1,73 @@ +--- +parsed_sample: + - interface: "xxvgei-1/1/0/24" + link_status: "up" + interface_index: "8225" + description: "R-xxxxx-01Z_xxvgei-1/1/0/24_to_R-xxxxx02-01Z_xxvgei-1/1/0/20;by:XXX;CID:XXXXXXX" + protocol_status: "up" + ipv4_protocol: "up" + ipv6_protocol: "down" + detect_status: "RX-OK/TX-OK" + uptime: "2023-04-02 15:42:13" + hardware_type: "XXVGigabit Ethernet" + mac_address: "744a.a42b.2010" + ip_address: "10.206.185.2" + mask: "31" + bandwith: "10 Gbit/s" + mtu: + - "9178" + - "9192" + - "9178" + - interface: "xxvgei-1/1/0/32" + link_status: "administratively down" + interface_index: "8233" + description: "" + protocol_status: "down" + ipv4_protocol: "down" + ipv6_protocol: "down" + detect_status: "RX-OK/TX-OK" + uptime: "-" + hardware_type: "XXVGigabit Ethernet" + mac_address: "744a.a42b.2010" + ip_address: "unassigned" + mask: "" + bandwith: "25 Gbit/s" + mtu: + - "1500" + - "1600" + - "1550" + - interface: "mgmt_eth" + link_status: "down" + interface_index: "262145" + description: "" + protocol_status: "down" + ipv4_protocol: "down" + ipv6_protocol: "down" + detect_status: "RX-OK/TX-OK" + uptime: "2023-03-15 00:21:14" + hardware_type: "Management Ethernet" + mac_address: "744a.a42b.2011" + ip_address: "192.168.1.11" + mask: "24" + bandwith: "100 Mbit/s" + mtu: + - "1500" + - "1514" + - interface: "loopback0" + link_status: "up" + interface_index: "8234" + description: "Management&Traffic address" + protocol_status: "up" + ipv4_protocol: "up" + ipv6_protocol: "up" + detect_status: "RX-OK/TX-OK" + uptime: "2023-03-15 00:21:12" + hardware_type: "Loopback" + mac_address: "744a.a42b.2010" + ip_address: "10.10.10.108" + mask: "32" + bandwith: "8 Gbit/s" + mtu: + - "1500" + - "1500" + - "1550" diff --git a/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.raw b/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.raw new file mode 100644 index 0000000000..8c781b1d71 --- /dev/null +++ b/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.raw @@ -0,0 +1,37 @@ +Interface Attribute Mode BW Admin Phy Prot Description +xgei-1/1/0/1 optical Duplex/full 1G up up up Link_to_XXXXXX +xgei-1/1/0/2 optical Duplex/full 1G up up up Link_to_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... +xgei-1/1/0/3 optical Duplex/full 1G down down down +xgei-1/1/0/4 optical Duplex/full 1G down down down +xgei-1/1/0/5 optical Duplex/full 10G down down down +xgei-1/1/0/6 optical Duplex/full 10G down down down +xgei-1/1/0/7 optical Duplex/full 10G down down down +xgei-1/1/0/8 optical Duplex/full 10G down down down +xgei-1/1/0/9 optical Duplex/full 10G down down down +xgei-1/1/0/10 optical Duplex/full 10G down down down +cgei-1/1/0/33 optical Duplex/full 100G down down down +cgei-1/1/0/34 optical Duplex/full 100G down down down +cgei-1/1/0/35 optical Duplex/full 100G down down down +cgei-1/1/0/36 optical Duplex/full 100G down down down +xxvgei-1/1/0/11 optical Duplex/full 25G down down down +xxvgei-1/1/0/12 optical Duplex/full 25G down down down +xxvgei-1/1/0/13 optical Duplex/full 25G down down down +xxvgei-1/1/0/14 optical Duplex/full 25G down down down +xxvgei-1/1/0/15 optical Duplex/full 25G down down down +xxvgei-1/1/0/16 optical Duplex/full 25G down down down +xxvgei-1/1/0/17 optical Duplex/full 25G down down down +xxvgei-1/1/0/18 optical Duplex/full 25G down down down +xxvgei-1/1/0/19 optical Duplex/full 25G down down down +xxvgei-1/1/0/20 optical Duplex/full 10G up up up R-xxxx-01Z_xxvgei-1/1/0/20_to_C-XXXXXX-02Z_... +xxvgei-1/1/0/21 optical Duplex/full 25G down down down +xxvgei-1/1/0/22 optical Duplex/full 25G down down down +xxvgei-1/1/0/23 optical Duplex/full 25G down down down +xxvgei-1/1/0/24 optical Duplex/full 10G up up up R-xxxx01-01Z_xxvgei-1/1/0/24_to_R-XXXXX02-01Z_x... +xxvgei-1/1/0/25 optical Duplex/full 25G down down down +xxvgei-1/1/0/26 optical Duplex/full 25G down down down +xxvgei-1/1/0/27 optical Duplex/full 25G down down down +xxvgei-1/1/0/28 optical Duplex/full 25G down down down +xxvgei-1/1/0/29 optical Duplex/full 25G down down down +xxvgei-1/1/0/30 optical Duplex/full 25G down down down +xxvgei-1/1/0/31 optical Duplex/full 25G down down down +xxvgei-1/1/0/32 optical Duplex/full 25G down down down diff --git a/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.yml b/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.yml new file mode 100644 index 0000000000..05b1648332 --- /dev/null +++ b/tests/zte_zxros/show_interface_brief/zte_zxros_show_interface_brief.yml @@ -0,0 +1,290 @@ +--- +parsed_sample: + - interface: "xgei-1/1/0/1" + attribute: "optical" + mode: "Duplex/full" + bw: "1G" + admin: "up" + physical: "up" + protocol: "up" + description: "Link_to_XXXXXX" + - interface: "xgei-1/1/0/2" + attribute: "optical" + mode: "Duplex/full" + bw: "1G" + admin: "up" + physical: "up" + protocol: "up" + description: "Link_to_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..." + - interface: "xgei-1/1/0/3" + attribute: "optical" + mode: "Duplex/full" + bw: "1G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/4" + attribute: "optical" + mode: "Duplex/full" + bw: "1G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/5" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/6" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/7" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/8" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/9" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xgei-1/1/0/10" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "cgei-1/1/0/33" + attribute: "optical" + mode: "Duplex/full" + bw: "100G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "cgei-1/1/0/34" + attribute: "optical" + mode: "Duplex/full" + bw: "100G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "cgei-1/1/0/35" + attribute: "optical" + mode: "Duplex/full" + bw: "100G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "cgei-1/1/0/36" + attribute: "optical" + mode: "Duplex/full" + bw: "100G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/11" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/12" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/13" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/14" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/15" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/16" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/17" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/18" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/19" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/20" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "up" + physical: "up" + protocol: "up" + description: "R-xxxx-01Z_xxvgei-1/1/0/20_to_C-XXXXXX-02Z_..." + - interface: "xxvgei-1/1/0/21" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/22" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/23" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/24" + attribute: "optical" + mode: "Duplex/full" + bw: "10G" + admin: "up" + physical: "up" + protocol: "up" + description: "R-xxxx01-01Z_xxvgei-1/1/0/24_to_R-XXXXX02-01Z_x..." + - interface: "xxvgei-1/1/0/25" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/26" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/27" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/28" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/29" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/30" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/31" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" + - interface: "xxvgei-1/1/0/32" + attribute: "optical" + mode: "Duplex/full" + bw: "25G" + admin: "down" + physical: "down" + protocol: "down" + description: "" diff --git a/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.raw b/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.raw new file mode 100644 index 0000000000..2fc983ce2a --- /dev/null +++ b/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.raw @@ -0,0 +1,9 @@ +Process ID: 0 +Interface System id State Lev Holds SNPA(802.2) Pri MT NSF AF +xxvgei-1/1/0/20 RAW-KSBJB0072... UP L2 28 PPP - Disable IPv4 +xxvgei-1/1/0/24 RR-KSMTP1445-01Z UP L2 22 PPP - Disable IPv4 + +Process ID: 1 +Interface System id State Lev Holds SNPA(802.2) Pri MT NSF AF +xxvgei-1/1/0/2... RAW-KSBJB0072... UP L2 30 PPP - M Disable IPv6 +xxvgei-1/1/0/2... RR-KSMTP1445-01Z UP L2 22 PPP - M Disable IPv6 diff --git a/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.yml b/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.yml new file mode 100644 index 0000000000..74fab8c2fb --- /dev/null +++ b/tests/zte_zxros/show_isis_adjacency/zte_zxros_show_isis_adjacency.yml @@ -0,0 +1,46 @@ +--- +parsed_sample: + - context: "0" + interface: "xxvgei-1/1/0/20" + system_id: "RAW-KSBJB0072..." + state: "UP" + lev: "L2" + hold_time: "28" + snpa: "PPP" + pri: "-" + mt: "" + nsf: "Disable" + af: "IPv4" + - context: "0" + interface: "xxvgei-1/1/0/24" + system_id: "RR-KSMTP1445-01Z" + state: "UP" + lev: "L2" + hold_time: "22" + snpa: "PPP" + pri: "-" + mt: "" + nsf: "Disable" + af: "IPv4" + - context: "1" + interface: "xxvgei-1/1/0/2..." + system_id: "RAW-KSBJB0072..." + state: "UP" + lev: "L2" + hold_time: "30" + snpa: "PPP" + pri: "-" + mt: "M" + nsf: "Disable" + af: "IPv6" + - context: "1" + interface: "xxvgei-1/1/0/2..." + system_id: "RR-KSMTP1445-01Z" + state: "UP" + lev: "L2" + hold_time: "22" + snpa: "PPP" + pri: "-" + mt: "M" + nsf: "Disable" + af: "IPv6" diff --git a/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.raw b/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.raw new file mode 100644 index 0000000000..ee839a3600 --- /dev/null +++ b/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.raw @@ -0,0 +1,495 @@ + +Name: tunnel_1 + (Tunnel1) Destination: 10.10.10.87 + Status: + Admin: up Oper: up Path: valid Signalling: connected + Path option: 1, type explicit name: Tunnel_RAW-XXXXX0056-01Z_to_R-PTABR-01 (Basis for Setup) + Path option: 2, type explicit name: Tunnel_RAW-XXXXX0056-01Z_to_R-PTABR-01-hsb + Pre-setup Path: none + Actual Bandwidth: N/A Tunnel Utilize: N/A + Actual Bandwidth In: N/A Tunnel Utilize In: N/A + Hot-standby protection: + protect option: 1, type dynamic (Basis for Setup) + PCE-authorized: NO + PCE-auto-init tunnel: NO + Active-MPLS-binding-SID: none + Config Parameters: + Resv-Style: SE + Metric Type: IGP (default) Upper Limit: 4294967295 + Hop Prior: disabled Upper Limit: - + Hot Hop Limit: - + Record-Route: enabled + Facility Fast-reroute: disabled + Detour Fast-reroute: disabled + Protect Coexist: disabled + Protect Nest: disabled + Main LSP Fast-reroute Block: disabled + Bandwidth Protection: disabled + Hot-standby-lsp Fast-reroute: disabled + E2E: disabled + BFD: disabled + Policy Class: N/A + Track Name: + Auto-reoptimize: enabled Time remaining:(3600/1198) + Hot-standby-lsp Auto-reoptimize: enabled Time remaining:(3600/1193) + Reference Hot-standby: enabled + Tunnel-Status: enabled + Bandwidth: 0 kbps (Global) Priority: 7 7 + CBS: 0 byte EIR: 0 kbps EBS: 0 byte + Main affinity: + Exclude-any: None + Include-any: None + Include-all: None + HSB affinity: + Exclude-any: None + Include-any: None + Include-all: None + FRR affinity: + Exclude-any: None + Include-any: None + Include-all: None + AutoRoute: disabled + AUTO-BW: disabled + Forwarding-adjacency: disabled + Co-routed Bidirect: disabled + Associated Bidirect: disabled + Rate-limit: disabled + Crankback: disabled + Soft Preemption: disabled + Soft Preemption Status: not pending + Addresses of preempting links: 0.0.0.0 + Graceful shutdown address: NULL + Without-CSPF: disabled + Ultralimit discard: disabled + PCEP slave name: + PCE-initiate: disabled + Advertise None-null: disabled + InLabel: - + OutLabel: smartgroup2, 282291 + LSP recoverd from GR: NO + RSVP Signalling Info : + Src 10.10.10.1, Dst 10.10.10.87, Tun-ID 1, Tun-Instance 335 + RSVP Path Info: + Explicit Route: 10.10.10.22 10.10.10.23 10.10.10.194 + 10.10.10.195 10.10.10.87 + Exclude Route: NULL + Record Route: NULL + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + RSVP Resv Info: + Record Route: 10.10.10.23(282291) 10.10.10.195(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 3 days, 17 hours, 21 minutes, 25 seconds + Time Since Up : 3 days, 17 hours, 18 minutes, 17 seconds + Prior LSP(main): path option 1 + Current LSP: Uptime:2 days, 1 hours, 49 minutes, 41 seconds + Last LSP Error Information: + Cspf failed(lspid:762,errcode:1,errvalue:44). + Cspf failed(lspid:761,errcode:1,errvalue:44). + Cspf failed(lspid:760,errcode:1,errvalue:44). + +Name: tunnel_1 + (hot)(Tunnel1) Destination: 10.10.10.87 + Status: + Signalling: up + Actual Bandwidth: N/A Tunnel Utilize: N/A + Actual Bandwidth In: N/A Tunnel Utilize In: N/A + Hot-standby protection: + PCE-authorized: NO + PCE-auto-init tunnel: NO + Active-MPLS-binding-SID: none + Config Parameters: + BFD: disabled + Hot-standby-lsp Fast-reroute: disabled + Hot-standby-lsp Auto-reoptimize: enabled Time remaining:(3600/1192) + Bandwidth: 0 kbps (Global) Priority: 7 7 + CBS: 0 byte EIR: 0 kbps EBS: 0 byte + Main affinity: + Exclude-any: None + Include-any: None + Include-all: None + HSB affinity: + Exclude-any: None + Include-any: None + Include-all: None + FRR affinity: + Exclude-any: None + Include-any: None + Include-all: None + AutoRoute: disabled + AUTO-BW: disabled + Forwarding-adjacency: disabled + Co-routed Bidirect: disabled + Associated Bidirect: disabled + Rate-limit: disabled + Crankback: disabled + Soft Preemption: disabled + Soft Preemption Status: not pending + Addresses of preempting links: 0.0.0.0 + Graceful shutdown address: NULL + Without-CSPF: disabled + Ultralimit discard: disabled + PCEP slave name: + PCE-initiate: disabled + Advertise None-null: disabled + InLabel: - + OutLabel: smartgroup1, 475765 + LSP recoverd from GR: NO + RSVP Signalling Info : + Src 10.10.10.1, Dst 10.10.10.87, Tun-ID 1, Tun-Instance 336 + RSVP Path Info: + Explicit Route: 10.10.10.21 10.10.10.20 10.10.10.24 + 10.10.10.25 10.10.10.87 + Exclude Route: NULL + Record Route: NULL + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + RSVP Resv Info: + Record Route: 10.10.10.10(475765) 10.10.10.20(475765) + 10.10.10.25(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 3 days, 17 hours, 21 minutes, 26 seconds + Time Since Up : 3 days, 17 hours, 18 minutes, 18 seconds + Prior LSP(HSB): path option 1 + Current LSP: Uptime:2 days, 1 hours, 49 minutes, 42 seconds + Last LSP Error Information: + Cspf failed(lspid:762,errcode:1,errvalue:44). + Cspf failed(lspid:761,errcode:1,errvalue:44). + Cspf failed(lspid:760,errcode:1,errvalue:44). + +Name: tunnel_2 + (Tunnel2) Destination: 10.10.10.117 + Status: + Admin: up Oper: up Path: valid Signalling: connected + Path option: 1, type explicit name: Tunnel_RAW-XXXXX0056-01Z_to_AG-PTPMK-01 (Basis for Setup) + Path option: 2, type explicit name: Tunnel_RAW-XXXXX0056-01Z_to_AG-PTPMK-01-hsb + Pre-setup Path: none + Actual Bandwidth: N/A Tunnel Utilize: N/A + Actual Bandwidth In: N/A Tunnel Utilize In: N/A + Hot-standby protection: + protect option: 1, type dynamic (Basis for Setup) + PCE-authorized: NO + PCE-auto-init tunnel: NO + Active-MPLS-binding-SID: none + Config Parameters: + Resv-Style: SE + Metric Type: IGP (default) Upper Limit: 4294967295 + Hop Prior: disabled Upper Limit: - + Hot Hop Limit: - + Record-Route: enabled + Facility Fast-reroute: disabled + Detour Fast-reroute: disabled + Protect Coexist: disabled + Protect Nest: disabled + Main LSP Fast-reroute Block: disabled + Bandwidth Protection: disabled + Hot-standby-lsp Fast-reroute: disabled + E2E: disabled + BFD: disabled + Policy Class: N/A + Track Name: + Auto-reoptimize: enabled Time remaining:(3600/1197) + Hot-standby-lsp Auto-reoptimize: enabled Time remaining:(3600/1192) + Reference Hot-standby: enabled + Tunnel-Status: enabled + Bandwidth: 0 kbps (Global) Priority: 7 7 + CBS: 0 byte EIR: 0 kbps EBS: 0 byte + Main affinity: + Exclude-any: None + Include-any: None + Include-all: None + HSB affinity: + Exclude-any: None + Include-any: None + Include-all: None + FRR affinity: + Exclude-any: None + Include-any: None + Include-all: None + AutoRoute: disabled + AUTO-BW: disabled + Forwarding-adjacency: disabled + Co-routed Bidirect: disabled + Associated Bidirect: disabled + Rate-limit: disabled + Crankback: disabled + Soft Preemption: disabled + Soft Preemption Status: not pending + Addresses of preempting links: 0.0.0.0 + Graceful shutdown address: NULL + Without-CSPF: disabled + Ultralimit discard: disabled + PCEP slave name: + PCE-initiate: disabled + Advertise None-null: disabled + InLabel: - + OutLabel: smartgroup2, 3 + LSP recoverd from GR: NO + RSVP Signalling Info : + Src 10.10.10.1, Dst 10.10.10.117, Tun-ID 2, Tun-Instance 336 + RSVP Path Info: + Explicit Route: 10.10.10.22 10.10.10.23 10.10.10.117 + Exclude Route: NULL + Record Route: NULL + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + RSVP Resv Info: + Record Route: 10.10.10.23(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 3 days, 17 hours, 21 minutes, 26 seconds + Time Since Up : 2 days, 1 hours, 52 minutes, 11 seconds + Prior LSP(main): path option 1 + Current LSP: Uptime:2 days, 1 hours, 50 minutes, 34 seconds + Last LSP Error Information: + Cspf failed(lspid:765,errcode:1,errvalue:44). + Cspf failed(lspid:764,errcode:1,errvalue:44). + Cspf failed(lspid:763,errcode:1,errvalue:44). + +Name: tunnel_2 + (hot)(Tunnel2) Destination: 10.10.10.117 + Status: + Signalling: up + Actual Bandwidth: N/A Tunnel Utilize: N/A + Actual Bandwidth In: N/A Tunnel Utilize In: N/A + Hot-standby protection: + PCE-authorized: NO + PCE-auto-init tunnel: NO + Active-MPLS-binding-SID: none + Config Parameters: + BFD: disabled + Hot-standby-lsp Fast-reroute: disabled + Hot-standby-lsp Auto-reoptimize: enabled Time remaining:(3600/1192) + Bandwidth: 0 kbps (Global) Priority: 7 7 + CBS: 0 byte EIR: 0 kbps EBS: 0 byte + Main affinity: + Exclude-any: None + Include-any: None + Include-all: None + HSB affinity: + Exclude-any: None + Include-any: None + Include-all: None + FRR affinity: + Exclude-any: None + Include-any: None + Include-all: None + AutoRoute: disabled + AUTO-BW: disabled + Forwarding-adjacency: disabled + Co-routed Bidirect: disabled + Associated Bidirect: disabled + Rate-limit: disabled + Crankback: disabled + Soft Preemption: disabled + Soft Preemption Status: not pending + Addresses of preempting links: 0.0.0.0 + Graceful shutdown address: NULL + Without-CSPF: disabled + Ultralimit discard: disabled + PCEP slave name: + PCE-initiate: disabled + Advertise None-null: disabled + InLabel: - + OutLabel: smartgroup1, 475764 + LSP recoverd from GR: NO + RSVP Signalling Info : + Src 10.10.10.1, Dst 10.10.10.117, Tun-ID 2, Tun-Instance 337 + RSVP Path Info: + Explicit Route: 10.10.10.21 10.10.10.20 10.10.10.24 + 10.10.10.25 10.10.10.195 10.10.10.194 + 10.10.10.117 + Exclude Route: NULL + Record Route: NULL + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + RSVP Resv Info: + Record Route: 10.10.10.10(475764) 10.10.10.20(475764) + 10.10.10.25(269025) 10.10.10.194(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 3 days, 17 hours, 21 minutes, 26 seconds + Time Since Up : 2 days, 1 hours, 52 minutes, 11 seconds + Prior LSP(HSB): path option 1 + Current LSP: Uptime:2 days, 1 hours, 50 minutes, 33 seconds + Last LSP Error Information: + Cspf failed(lspid:765,errcode:1,errvalue:44). + Cspf failed(lspid:764,errcode:1,errvalue:44). + Cspf failed(lspid:763,errcode:1,errvalue:44). + +Name: tunnel_1 + (remote)(Tunnel1) Destination: 10.10.10.87 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: smartgroup1, 205844 + OutLabel: smartgroup2, 282288 + LSP recoverd from GR: NO + Src 10.10.10.10, Dst 10.10.10.87, Tun-ID 1, Tun-Instance 35831 + RSVP Path Info: + Explicit Route: 10.10.10.21 10.10.10.22 10.10.10.23 + 10.10.10.194 10.10.10.195 10.10.10.87 + Exclude Route: NULL + Record Route: 10.10.10.10 10.10.10.20 + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: 10.10.10.23(282288) 10.10.10.195(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 2 days, 1 hours, 50 minutes, 45 seconds + Current LSP: Uptime:2 days, 1 hours, 50 minutes, 41 seconds + +Name: tunnel_2 + (remote)(Tunnel2) Destination: 10.10.10.117 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: smartgroup1, 205845 + OutLabel: smartgroup2, 3 + LSP recoverd from GR: NO + Src 10.10.10.10, Dst 10.10.10.117, Tun-ID 2, Tun-Instance 35956 + RSVP Path Info: + Explicit Route: 10.10.10.21 10.10.10.22 10.10.10.23 + 10.10.10.117 + Exclude Route: NULL + Record Route: 10.10.10.10 10.10.10.20 + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: 10.10.10.23(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 2 days, 1 hours, 49 minutes, 14 seconds + Current LSP: Uptime:2 days, 1 hours, 49 minutes, 13 seconds + +Name: tunnel_101 + (remote)(Tunnel101) Destination: 10.169.120.220 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: xxvgei-1/1/0/20, 205926 + OutLabel: smartgroup2, 283792 + LSP recoverd from GR: NO + Src 10.10.10.4, Dst 10.169.120.220, Tun-ID 101, Tun-Instance 24849 + RSVP Path Info: + Explicit Route: 10.10.10.2 10.10.10.22 10.10.10.23 + 10.10.10.194 10.10.10.195 10.10.10.57 + 10.10.10.56 10.169.120.220 + Exclude Route: NULL + Record Route: 10.10.10.2 10.10.10.3 10.10.10.3 + 10.10.10.5 10.10.10.4 10.10.10.7 + Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: 10.10.10.23(283792) 10.10.10.195(270881) + 10.10.10.56(3) + Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb + + History: + Tunnel: + Time Since Created: 0 days, 18 hours, 6 minutes, 44 seconds + Current LSP: Uptime:0 days, 18 hours, 6 minutes, 43 seconds + +Name: AG-PTPMK-01-to-RAW-XXXXX0056-01Z + (remote)(Tunnel8011) Destination: 10.10.10.1 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: smartgroup2, 3 + OutLabel: - + LSP recoverd from GR: NO + Src 10.10.10.117, Dst 10.10.10.1, Tun-ID 8011, Tun-Instance 103 + RSVP Path Info: + Explicit Route: NULL + Exclude Route: NULL + Record Route: 10.10.10.23 + Tspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: NULL + Fspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + + History: + Tunnel: + Time Since Created: 2 days, 1 hours, 40 minutes, 56 seconds + Current LSP: Uptime:2 days, 1 hours, 40 minutes, 56 seconds + +Name: Bypass->10.10.10.78->10.10.10.242 + (remote)(Tunnel14243) Destination: 10.10.10.73 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: smartgroup1, 205843 + OutLabel: smartgroup2, 282252 + LSP recoverd from GR: NO + Src 10.10.10.87, Dst 10.10.10.73, Tun-ID 14243, Tun-Instance 1 + RSVP Path Info: + Explicit Route: 10.10.10.21 10.10.10.22 10.10.10.23 + 10.10.10.246 10.10.10.249 + Exclude Route: NULL + Record Route: 10.10.10.10 10.10.10.20 10.10.10.25 + Tspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: 10.10.10.23(282252) 10.10.10.74(397) + 10.10.10.250(397) 10.10.10.73(3) + 10.10.10.249(3) + Fspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + + History: + Tunnel: + Time Since Created: 2 days, 1 hours, 51 minutes, 26 seconds + Current LSP: Uptime:2 days, 1 hours, 51 minutes, 23 seconds + +Name: R-PTABR-01-to-RAW-XXXXX0056-01Z + (remote)(Tunnel53991) Destination: 10.10.10.1 + Status: + Signalling: up + RSVP Signalling Info : + InLabel: smartgroup2, 3 + OutLabel: - + LSP recoverd from GR: NO + Src 10.10.10.87, Dst 10.10.10.1, Tun-ID 53991, Tun-Instance 80 + RSVP Path Info: + Explicit Route: NULL + Exclude Route: NULL + Record Route: 10.10.10.23 10.10.10.195 + Tspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + Affinity(Bit position): + Exclude-any: None + Include-any: None + Include-all: None + RSVP Resv Info: + Record Route: NULL + Fspec: ave rate= 0 kb, burst= 0 byte, peak rate= inf kb + + History: + Tunnel: + Time Since Created: 2 days, 1 hours, 51 minutes, 13 seconds + Current LSP: Uptime:2 days, 1 hours, 51 minutes, 13 seconds diff --git a/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.yml b/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.yml new file mode 100644 index 0000000000..21e5081cc9 --- /dev/null +++ b/tests/zte_zxros/show_mpls_traffic-eng_tunnels/zte_zxros_show_mpls_traffic-eng_tunnels.yml @@ -0,0 +1,205 @@ +--- +parsed_sample: + - name: "tunnel_1" + desc: "(Tunnel1)" + dest: "10.10.10.87" + admin: "up" + oper: "up" + path: "valid" + signal: "connected" + inlabel: "-" + inlabel_id: "" + outlabel: "smartgroup2" + outlabel_id: "282291" + src: "10.10.10.1" + dst: "10.10.10.87" + id: "1" + instance: "335" + ip_route: + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.194" + - "10.10.10.195" + - "10.10.10.87" + - name: "tunnel_1" + desc: "(hot)(Tunnel1)" + dest: "10.10.10.87" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "-" + inlabel_id: "" + outlabel: "smartgroup1" + outlabel_id: "475765" + src: "10.10.10.1" + dst: "10.10.10.87" + id: "1" + instance: "336" + ip_route: + - "10.10.10.21" + - "10.10.10.20" + - "10.10.10.24" + - "10.10.10.25" + - "10.10.10.87" + - name: "tunnel_2" + desc: "(Tunnel2)" + dest: "10.10.10.117" + admin: "up" + oper: "up" + path: "valid" + signal: "connected" + inlabel: "-" + inlabel_id: "" + outlabel: "smartgroup2" + outlabel_id: "3" + src: "10.10.10.1" + dst: "10.10.10.117" + id: "2" + instance: "336" + ip_route: + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.117" + - name: "tunnel_2" + desc: "(hot)(Tunnel2)" + dest: "10.10.10.117" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "-" + inlabel_id: "" + outlabel: "smartgroup1" + outlabel_id: "475764" + src: "10.10.10.1" + dst: "10.10.10.117" + id: "2" + instance: "337" + ip_route: + - "10.10.10.21" + - "10.10.10.20" + - "10.10.10.24" + - "10.10.10.25" + - "10.10.10.195" + - "10.10.10.194" + - "10.10.10.117" + - name: "tunnel_1" + desc: "(remote)(Tunnel1)" + dest: "10.10.10.87" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "smartgroup1" + inlabel_id: "205844" + outlabel: "smartgroup2" + outlabel_id: "282288" + src: "10.10.10.10" + dst: "10.10.10.87" + id: "1" + instance: "35831" + ip_route: + - "10.10.10.21" + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.194" + - "10.10.10.195" + - "10.10.10.87" + - name: "tunnel_2" + desc: "(remote)(Tunnel2)" + dest: "10.10.10.117" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "smartgroup1" + inlabel_id: "205845" + outlabel: "smartgroup2" + outlabel_id: "3" + src: "10.10.10.10" + dst: "10.10.10.117" + id: "2" + instance: "35956" + ip_route: + - "10.10.10.21" + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.117" + - name: "tunnel_101" + desc: "(remote)(Tunnel101)" + dest: "10.169.120.220" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "xxvgei-1/1/0/20" + inlabel_id: "205926" + outlabel: "smartgroup2" + outlabel_id: "283792" + src: "10.10.10.4" + dst: "10.169.120.220" + id: "101" + instance: "24849" + ip_route: + - "10.10.10.2" + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.194" + - "10.10.10.195" + - "10.10.10.57" + - "10.10.10.56" + - "10.169.120.220" + - name: "AG-PTPMK-01-to-RAW-XXXXX0056-01Z" + desc: "(remote)(Tunnel8011)" + dest: "10.10.10.1" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "smartgroup2" + inlabel_id: "3" + outlabel: "-" + outlabel_id: "" + src: "10.10.10.117" + dst: "10.10.10.1" + id: "8011" + instance: "103" + ip_route: [] + - name: "Bypass->10.10.10.78->10.10.10.242" + desc: "(remote)(Tunnel14243)" + dest: "10.10.10.73" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "smartgroup1" + inlabel_id: "205843" + outlabel: "smartgroup2" + outlabel_id: "282252" + src: "10.10.10.87" + dst: "10.10.10.73" + id: "14243" + instance: "1" + ip_route: + - "10.10.10.21" + - "10.10.10.22" + - "10.10.10.23" + - "10.10.10.246" + - "10.10.10.249" + - name: "R-PTABR-01-to-RAW-XXXXX0056-01Z" + desc: "(remote)(Tunnel53991)" + dest: "10.10.10.1" + admin: "" + oper: "" + path: "" + signal: "up" + inlabel: "smartgroup2" + inlabel_id: "3" + outlabel: "-" + outlabel_id: "" + src: "10.10.10.87" + dst: "10.10.10.1" + id: "53991" + instance: "80" + ip_route: [] diff --git a/tests/zte_zxros/show_version/zte_zxros_show_version.raw b/tests/zte_zxros/show_version/zte_zxros_show_version.raw new file mode 100644 index 0000000000..e58b4fbf51 --- /dev/null +++ b/tests/zte_zxros/show_version/zte_zxros_show_version.raw @@ -0,0 +1,59 @@ +ZXCTN 6120H-S +ZTE ZXCTN Software, Version: 6120H-S V5.10.00.50, Release software +Copyright (c) 2022 by ZTE Corporation +System image file is , file size is 629,753,128 Bytes +System image is loaded from local +System uptime is 23 day(s), 10 hour(s), 59 minute(s) + +[SMGD, shelf 1, slot 1]: +Board Name : SMGD +Description : 6120H-S System Main Board D +Board License : LCS +System BaudRate : 115,200 bps +MPU-1/1/0, MSC: +Bootrom Version : V5.10.00B21 +Soft Version : N/A +Creation Date : 2022/10/20 14:05:00 +System Nvram : 8,192 bytes +System Memory : 8,192 Mbytes +System Flash : 0 Mbytes +Uptime is 23 day(s), 10 hour(s), 59 minute(s) + +[FAN, shelf 1, slot 2]: +Board Name : FAN +Description : Fan Control Board +Board License : N/A +FCP-1/2/0: +Bootrom Version : N/A +Soft Version : N/A +Creation Date : N/A +System Nvram : 0 bytes +System Memory : 0 Mbytes +System Flash : 0 Mbytes +Uptime is N/A + +[PW1DC, shelf 1, slot 3]: +Board Name : PW1DC +Description : Integrated DC Power Board +Board License : N/A +PWR-1/3/0: +Bootrom Version : N/A +Soft Version : N/A +Creation Date : N/A +System Nvram : 0 bytes +System Memory : 0 Mbytes +System Flash : 0 Mbytes +Uptime is N/A + +[PW1DC, shelf 1, slot 4]: +Board Name : PW1DC +Description : Integrated DC Power Board +Board License : N/A +PWR-1/4/0: +Bootrom Version : N/A +Soft Version : N/A +Creation Date : N/A +System Nvram : 0 bytes +System Memory : 0 Mbytes +System Flash : 0 Mbytes +Uptime is N/A diff --git a/tests/zte_zxros/show_version/zte_zxros_show_version.yml b/tests/zte_zxros/show_version/zte_zxros_show_version.yml new file mode 100644 index 0000000000..5c6f5471a3 --- /dev/null +++ b/tests/zte_zxros/show_version/zte_zxros_show_version.yml @@ -0,0 +1,5 @@ +--- +parsed_sample: + - hardware: " 6120H-S" + version: "6120H-S V5.10.00.50" + uptime: "23 day(s), 10 hour(s), 59 minute(s)"