Skip to content

Commit

Permalink
New Template: alcatel_sros_show_router_mpls_lsp.textfsm (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ndzdatm0ld authored Mar 16, 2021
1 parent 07efe9a commit c47d469
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ntc_templates/templates/alcatel_sros_show_router_mpls_lsp.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Value Required LSP_NAME (\S+)
Value Required TO (\d+.\d+.\d+.\d+)
Value Required TUNNEL_ID (\d+)
Value Required FASTFAIL_CONFIG (\S+)
Value Required ADMIN_STATE (Up|Dwn)
Value Required OPER_STATE (Up|Dwn)

Start
^=+
^MPLS\s+LSPs
^LSP\s+Name\s+Tun\s+Fastfail\s+Adm\s+Opr\s*$$ -> LSP
^\s*$$
^. -> Error

LSP
^\s+To\s+Id\s+Config
^-+
^${LSP_NAME}\s+${TUNNEL_ID}\s+${FASTFAIL_CONFIG}\s+${ADMIN_STATE}\s+${OPER_STATE}
^\s+${TO} -> Record
^-+ -> Done
^LSPs\s+:
^=+
^\s*$$
^. -> Error

Done
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] route
alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]]
alcatel_sros_show_service_sap-using.textfsm, .*, alcatel_sros, sh[[ow]] service sap-u[[sing]]
alcatel_sros_show_service_sdp-using.textfsm, .*, alcatel_sros, sh[[ow]] service sdp-using
alcatel_sros_show_router_mpls_lsp.textfsm, .*, alcatel_sros, sh[[ow]] router mpls lsp
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]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
===============================================================================
MPLS LSPs (Originating)
===============================================================================
LSP Name Tun Fastfail Adm Opr
To Id Config
-------------------------------------------------------------------------------
TO_IOSXR 1 Yes Up Up
10.10.10.8
TO_R1 2 Yes Up Up
10.10.10.1
TO_R2 3 Yes Up Dwn
10.10.10.2
TO_R4 4 Yes Up Dwn
10.10.10.4
Full-Mesh-10.10.10.8-61441 61441 Yes Up Up
10.10.10.8
Full-Mesh-10.10.10.1-65240 65240 Yes Up Up
10.10.10.1
-------------------------------------------------------------------------------
LSPs : 6
===============================================================================
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
parsed_sample:
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "TO_IOSXR"
oper_state: "Up"
to: "10.10.10.8"
tunnel_id: "1"
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "TO_R1"
oper_state: "Up"
to: "10.10.10.1"
tunnel_id: "2"
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "TO_R2"
oper_state: "Dwn"
to: "10.10.10.2"
tunnel_id: "3"
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "TO_R4"
oper_state: "Dwn"
to: "10.10.10.4"
tunnel_id: "4"
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "Full-Mesh-10.10.10.8-61441"
oper_state: "Up"
to: "10.10.10.8"
tunnel_id: "61441"
- admin_state: "Up"
fastfail_config: "Yes"
lsp_name: "Full-Mesh-10.10.10.1-65240"
oper_state: "Up"
to: "10.10.10.1"
tunnel_id: "65240"

0 comments on commit c47d469

Please sign in to comment.