Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ntc_templates/templates/alcatel_sros_show_port.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Value C_QS_S_XFP_MDIMDX (.*)
Start
^${PORT_ID}\s+${ADMIN_STATE}\s+${PORT_STATE}\s+(?:conn|anchor)\s*${C_QS_S_XFP_MDIMDX} -> Record
^${PORT_ID}\s+${ADMIN_STATE}\s+${LINK}\s+${PORT_STATE}\s+${CFG_MTU}\s+${OPER_MTU}\s+${LAG}\s+${PORT_MODE}\s+${PORT_ENCP}\s+${PORT_TYPE}\s*${C_QS_S_XFP_MDIMDX} -> Record
^${PORT_ID}\s+${ADMIN_STATE}\s+${LINK}\s+${PORT_STATE}\s+${PORT_TYPE}\s*${C_QS_S_XFP_MDIMDX} -> Record
^\s*$$
^-----------
^===========
Expand Down
2 changes: 2 additions & 0 deletions tests/alcatel_sros/show_port/show_port.raw
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ Id State State MTU MTU Bndl Mode Encp Type MDIMDX
10/2/c22 Down Down conn
10/2/c23 Down Down conn
10/2/c24 Down Down conn
A/1 Up Yes Up 1514 1514 - netw null xcme MDI
A/gnss Down No Down gnss
===============================================================================
* indicates that the corresponding row element may have been truncated.

22 changes: 22 additions & 0 deletions tests/alcatel_sros/show_port/show_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2112,3 +2112,25 @@ parsed_sample:
port_mode: ""
port_state: "Down"
port_type: ""
- admin_state: "Up"
c_qs_s_xfp_mdimdx: "MDI"
cfg_mtu: "1514"
lag: "-"
link: "Yes"
oper_mtu: "1514"
port_encp: "null"
port_id: "A/1"
port_mode: "netw"
port_state: "Up"
port_type: "xcme"
- admin_state: "Down"
c_qs_s_xfp_mdimdx: ""
cfg_mtu: ""
lag: ""
link: "No"
oper_mtu: ""
port_encp: ""
port_id: "A/gnss"
port_mode: ""
port_state: "Down"
port_type: "gnss"
Loading