Skip to content

Commit 9c3c7ff

Browse files
authored
Merge pull request #2306 from mjbear/alc_sros_sh_port_desc_issue2305
Add SROS show port description multiline support
2 parents 04b4a08 + 9b9c581 commit 9c3c7ff

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

ntc_templates/templates/alcatel_sros_show_port_description.textfsm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ Value DESCRIPTION (.+)
44
Start
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
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
===============================================================================
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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"

0 commit comments

Comments
 (0)