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 Template: alcatel_sros, sh router mpls lsp #893

Merged
merged 9 commits into from
Mar 16, 2021
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
h4ndzdatm0ld marked this conversation as resolved.
Show resolved Hide resolved
^=+
^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"