Skip to content

Commit

Permalink
fix: Also take into account satellite ports for show port description (
Browse files Browse the repository at this point in the history
  • Loading branch information
bennnnnnnn authored Dec 9, 2024
1 parent 602f6f2 commit 4e86b2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Value DESCRIPTION (.+)
Start
^=+\s*$$
^\s*$$
^Port\s+Descriptions\s+on\s+Slot\s+\S+\s*$$
^Port\s+Descriptions\s+on\s\S+\s+\S+\s*$$
^Port\s+Id\s+Description\s*$$
^${PORT_ID}\s+${DESCRIPTION}\s*$$ -> Record
^-+\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ Port Id Description
-------------------------------------------------------------------------------
A/1 10/100 Ethernet TX
===============================================================================

===============================================================================
Port Descriptions on Satellite esat-3
===============================================================================
Port Id Description
-------------------------------------------------------------------------------
esat-3/1/21 TNET_RAN_TEST9999
===============================================================================

Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ parsed_sample:
port_id: "1/5/2"
- description: "10/100 Ethernet TX"
port_id: "A/1"
- description: "TNET_RAN_TEST9999"
port_id: "esat-3/1/21"

0 comments on commit 4e86b2e

Please sign in to comment.