Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new alcatel_sros tmpl, 'show service sdp' #886

Merged
merged 6 commits into from
Mar 11, 2021
Merged
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
27 changes: 27 additions & 0 deletions templates/alcatel_sros_show_service_sdp.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Value Required SDP_ID (\d+)
Value Required ADM_MTU (\d+)
Value Required OPR_MTU (\d+)
Value FAR_END (\d+.\d+.\d+.\d+)
Value Required ADM (Up|Down)
Value Required OPR (Up|Down)
Value Required DEL (\S+)
Value Required LSP (\S+)
Value Required SIG (\S+)

Start
^=+
^Services:
^SdpId\s+AdmMTU\s+OprMTU\s+Far\s+End\s+Adm\s+Opr\s+Del\s+LSP\s+Sig\s*$$
^-+ -> SDP
^\s*$$
^. -> Error

SDP
^${SDP_ID}\s+${ADM_MTU}\s+${OPR_MTU}\s+${FAR_END}\s+${ADM}\s+${OPR}\s+${DEL}\s+${LSP}\s+${SIG} -> Record
^${SDP_ID}\s+${ADM_MTU}\s+${OPR_MTU}\s+${ADM}\s+${OPR}\s+${DEL}\s+${LSP}\s+${SIG} -> Record
^-+ -> Done
^\s*$$
^=+
^. -> Error
h4ndzdatm0ld marked this conversation as resolved.
Show resolved Hide resolved

Done
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ alcatel_sros_show_router_mpls_interface.textfsm, .*, alcatel_sros, sh[[ow]] rout
alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]]
alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]]
alcatel_sros_show_service_id_base.textfsm, .*, alcatel_sros, sh[[ow]] serv[[ice]] id ba[[se]]
alcatel_sros_show_service_sdp.textfsm, .*, alcatel_sros, sh[[ow]] service sdp
alcatel_sros_oam_mac-ping.textfsm, .*, alcatel_sros, oam mac-pi[[ng]]
alcatel_sros_show_port.textfsm, .*, alcatel_sros, show port
alcatel_sros_show_lag.textfsm, .*, alcatel_sros, show lag
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

============================================================================
Services: Service Destination Points
============================================================================
SdpId AdmMTU OprMTU Far End Adm Opr Del LSP Sig
----------------------------------------------------------------------------
1 0 9170 192.168.0.1 Down Down GRE n/a TLDP
31 0 0 10.10.10.1 Up Down MPLS R TLDP
32 0 0 10.10.10.2 Up Down MPLS R TLDP
34 0 0 10.10.10.4 Up Down MPLS R TLDP
38 0 492 10.10.10.8 Up Down MPLS R TLDP
2000 0 0 Down Down GRE n/a TLDP
----------------------------------------------------------------------------
Number of SDPs : 6
----------------------------------------------------------------------------
Legend: R = RSVP, L = LDP, B = BGP, M = MPLS-TP, n/a = Not Applicable
I = SR-ISIS, O = SR-OSPF, T = SR-TE, F = FPE
============================================================================
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
parsed_sample:
- adm: "Down"
adm_mtu: "0"
del: "GRE"
far_end: "192.168.0.1"
lsp: "n/a"
opr: "Down"
opr_mtu: "9170"
sdp_id: "1"
sig: "TLDP"
- adm: "Up"
adm_mtu: "0"
del: "MPLS"
far_end: "10.10.10.1"
lsp: "R"
opr: "Down"
opr_mtu: "0"
sdp_id: "31"
sig: "TLDP"
- adm: "Up"
adm_mtu: "0"
del: "MPLS"
far_end: "10.10.10.2"
lsp: "R"
opr: "Down"
opr_mtu: "0"
sdp_id: "32"
sig: "TLDP"
- adm: "Up"
adm_mtu: "0"
del: "MPLS"
far_end: "10.10.10.4"
lsp: "R"
opr: "Down"
opr_mtu: "0"
sdp_id: "34"
sig: "TLDP"
- adm: "Up"
adm_mtu: "0"
del: "MPLS"
far_end: "10.10.10.8"
lsp: "R"
opr: "Down"
opr_mtu: "492"
sdp_id: "38"
sig: "TLDP"
- adm: "Down"
adm_mtu: "0"
del: "GRE"
far_end: ""
lsp: "n/a"
opr: "Down"
opr_mtu: "0"
sdp_id: "2000"
sig: "TLDP"