Skip to content

Commit

Permalink
new alcatel_sros tmpl, 'show service sdp' (networktocode#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ndzdatm0ld authored and cppmonkey committed Oct 25, 2023
1 parent 1a910a7 commit 9f89dd8
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
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

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"

0 comments on commit 9f89dd8

Please sign in to comment.