forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: alcatel_sros_show_router_mpls_lsp.textfsm (networktocod…
- Loading branch information
1 parent
630e528
commit 873889e
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ntc_templates/templates/alcatel_sros_show_router_mpls_lsp.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/alcatel_sros/show_router_mpls_lsp/alcatel_sros_show_router_mpls_lsp.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
=============================================================================== |
38 changes: 38 additions & 0 deletions
38
tests/alcatel_sros/show_router_mpls_lsp/alcatel_sros_show_router_mpls_lsp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |