Skip to content

Commit 4e86b2e

Browse files
authored
fix: Also take into account satellite ports for show port description (#1929)
1 parent 602f6f2 commit 4e86b2e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ntc_templates/templates/alcatel_sros_show_port_description.textfsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Value DESCRIPTION (.+)
44
Start
55
^=+\s*$$
66
^\s*$$
7-
^Port\s+Descriptions\s+on\s+Slot\s+\S+\s*$$
7+
^Port\s+Descriptions\s+on\s\S+\s+\S+\s*$$
88
^Port\s+Id\s+Description\s*$$
99
^${PORT_ID}\s+${DESCRIPTION}\s*$$ -> Record
1010
^-+\s*$$

tests/alcatel_sros/show_port_description/show_port_description.raw

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,12 @@ Port Id Description
3333
-------------------------------------------------------------------------------
3434
A/1 10/100 Ethernet TX
3535
===============================================================================
36+
37+
===============================================================================
38+
Port Descriptions on Satellite esat-3
39+
===============================================================================
40+
Port Id Description
41+
-------------------------------------------------------------------------------
42+
esat-3/1/21 TNET_RAN_TEST9999
43+
===============================================================================
44+

tests/alcatel_sros/show_port_description/show_port_description.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ parsed_sample:
4646
port_id: "1/5/2"
4747
- description: "10/100 Ethernet TX"
4848
port_id: "A/1"
49+
- description: "TNET_RAN_TEST9999"
50+
port_id: "esat-3/1/21"

0 commit comments

Comments
 (0)