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 alcatel_sros tmpl, 'show service sdp' (networktocode#886)
- Loading branch information
1 parent
1a910a7
commit 9f89dd8
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
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,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 |
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
18 changes: 18 additions & 0 deletions
18
tests/alcatel_sros/show_service_sdp/alcatel_sros_show_service_sdp.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,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 | ||
============================================================================ |
56 changes: 56 additions & 0 deletions
56
tests/alcatel_sros/show_service_sdp/alcatel_sros_show_service_sdp.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,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" |