File tree Expand file tree Collapse file tree
tests/cisco_nxos/show_interface_status Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Value PORT (\S+)
22Value NAME (.*?)
3- Value STATUS (\S+ )
3+ Value STATUS (connected|notconnec|down|disabled|sfpAbsent|xcvrAbsen|channelDo|noOperMem )
44Value VLAN_ID (\d+|routed|trunk|f-path|--)
55Value DUPLEX (\S+)
66Value SPEED (\S+)
@@ -9,6 +9,9 @@ Value TYPE (\S+(\s\S+)*)
99Start
1010 ^${PORT}\s+${NAME}\s+${STATUS}\s+${VLAN_ID}\s+${DUPLEX}\s+${SPEED}(?:\s+${TYPE})?\s*$$ -> Record
1111 ^[Pp]ort\s+[Nn]ame\s+[Ss]tatus\s+[Vv]lan\s+[Dd]uplex\s+[Ss]peed\s+[Tt]ype\s*$$
12+ ^Interface\s+Name\s+Status\s+(Reason\s+){2}description\s*$$
13+ ^${PORT}\s+${NAME}\s+${STATUS}\s+admin\s+down\s+\S+\s+\S+\s*$$ -> Record
14+ ^${PORT}\s+${NAME}\s+${STATUS}\s+\S+(\s+\S+)?\s+.*?\s*$$ -> Record
1215 ^-+
1316 ^\s*$$
1417 ^. -> Error
Original file line number Diff line number Diff line change 1+
2+ --------------------------------------------------------------------------------
3+ Port Name Status Vlan Duplex Speed Type
4+ --------------------------------------------------------------------------------
5+ mgmt0 -- connected routed full a-1000 --
6+ Eth1/1 TEST1 connected routed full a-10G 10Gbase-SR
7+ Eth1/2 TEST2 connected trunk full a-10G 10Gbase-SR
8+ Eth1/3 TEST3 disabled routed auto auto 10Gbase-SR
9+
10+ -------------------------------------------------------------------------------
11+ Interface Name Status Reason Reason description
12+ -------------------------------------------------------------------------------
13+ Tunnel13 Test Tun13 connected none none
14+ Tunnel40 Test Tun40 down admin down Administratively down
15+ Tunnel41 Test Tun41 down sourceNotConfigure tunnel source is not configured
16+ Tunnel42 Test Tun42 down destinationNotConf tunnel destination is not configured
17+
Original file line number Diff line number Diff line change 1+ ---
2+ parsed_sample :
3+ - duplex : " full"
4+ name : " --"
5+ port : " mgmt0"
6+ speed : " a-1000"
7+ status : " connected"
8+ type : " --"
9+ vlan_id : " routed"
10+ - duplex : " full"
11+ name : " TEST1"
12+ port : " Eth1/1"
13+ speed : " a-10G"
14+ status : " connected"
15+ type : " 10Gbase-SR"
16+ vlan_id : " routed"
17+ - duplex : " full"
18+ name : " TEST2"
19+ port : " Eth1/2"
20+ speed : " a-10G"
21+ status : " connected"
22+ type : " 10Gbase-SR"
23+ vlan_id : " trunk"
24+ - duplex : " auto"
25+ name : " TEST3"
26+ port : " Eth1/3"
27+ speed : " auto"
28+ status : " disabled"
29+ type : " 10Gbase-SR"
30+ vlan_id : " routed"
31+ - duplex : " "
32+ name : " Test Tun13"
33+ port : " Tunnel13"
34+ speed : " "
35+ status : " connected"
36+ type : " "
37+ vlan_id : " "
38+ - duplex : " "
39+ name : " Test Tun40"
40+ port : " Tunnel40"
41+ speed : " "
42+ status : " down"
43+ type : " "
44+ vlan_id : " "
45+ - duplex : " "
46+ name : " Test Tun41"
47+ port : " Tunnel41"
48+ speed : " "
49+ status : " down"
50+ type : " "
51+ vlan_id : " "
52+ - duplex : " "
53+ name : " Test Tun42"
54+ port : " Tunnel42"
55+ speed : " "
56+ status : " down"
57+ type : " "
58+ vlan_id : " "
You can’t perform that action at this time.
0 commit comments