File tree Expand file tree Collapse file tree
tests/alcatel_sros/show_port_description Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ Value DESCRIPTION (.+)
44Start
55 ^=+\s*$$
66 ^\s*$$
7- ^Port\s+Descriptions\s+on\s\S+\s+\S+\s*$$
7+ ^Port\s+Descriptions\s+on
88 ^Port\s+Id\s+Description\s*$$
99 ^${PORT_ID}\s+${DESCRIPTION}\s*$$ -> Record
10+ ^${PORT_ID}$$
11+ ^\s+${DESCRIPTION}$$ -> Record
1012 ^-+\s*$$
1113 ^. -> Error
Original file line number Diff line number Diff line change 1+
2+ ===============================================================================
3+ Port Descriptions on Satellite esat-11
4+ ===============================================================================
5+ Port Id Description
6+ -------------------------------------------------------------------------------
7+ esat-11/1/1 OC_YOOI_yQRJZCQUYJ-RY-65-OFL5
8+ esat-11/1/4 YOOI-SL0566-65-lep0
9+ esat-11/1/14 1-Gig/10-Gig Ethernet
10+ esat-11/1/64 1-Gig/10-Gig Ethernet
11+ esat-11/1/c65 QSFP28 Connector
12+ esat-11/1/c65/u1
13+ 100-Gig Ethernet
14+ esat-11/1/c66 QSFP28 Connector
15+ esat-11/1/c66/u1
16+ 100-Gig Ethernet
17+ ===============================================================================
18+
19+ ===============================================================================
20+ Port Descriptions on Port Cross Connect 1
21+ ===============================================================================
22+ Port Id Description
23+ -------------------------------------------------------------------------------
24+ pxc-1.a Port cross-connect
25+ ===============================================================================
Original file line number Diff line number Diff line change 1+ ---
2+ parsed_sample :
3+ - description : " OC_YOOI_yQRJZCQUYJ-RY-65-OFL5"
4+ port_id : " esat-11/1/1"
5+ - description : " YOOI-SL0566-65-lep0"
6+ port_id : " esat-11/1/4"
7+ - description : " 1-Gig/10-Gig Ethernet "
8+ port_id : " esat-11/1/14"
9+ - description : " 1-Gig/10-Gig Ethernet"
10+ port_id : " esat-11/1/64"
11+ - description : " QSFP28 Connector"
12+ port_id : " esat-11/1/c65"
13+ - description : " 100-Gig Ethernet"
14+ port_id : " esat-11/1/c65/u1"
15+ - description : " QSFP28 Connector"
16+ port_id : " esat-11/1/c66"
17+ - description : " 100-Gig Ethernet"
18+ port_id : " esat-11/1/c66/u1"
19+ - description : " Port cross-connect"
20+ port_id : " pxc-1.a"
You can’t perform that action at this time.
0 commit comments