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_service_sdp-using.textfsm (networktoc…
- Loading branch information
1 parent
89f2b66
commit 28a6825
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
ntc_templates/templates/alcatel_sros_show_service_sdp-using.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,27 @@ | ||
Value Required SERVICE_ID (\d+) | ||
Value Required SDP_ID (\d+) | ||
Value Required SDP_SVC_ID (\d+) | ||
Value Required TYPE (\S+) | ||
Value Required FAR_END (\S+) | ||
Value Required OPER_STATE (\S+) | ||
Value Required INGRESS_LABEL (\S+) | ||
Value Required EGRESS_LABEL (\S+) | ||
|
||
Start | ||
^=+ | ||
^SDP\s+Using | ||
^SvcId\s+SdpId\s+Type\s+Far\s+End\s+Opr\s+I.Label\s+E.Label\s*$$ -> SDP | ||
^\s*$$ | ||
^. -> Error | ||
|
||
SDP | ||
^\s+State | ||
^-+ | ||
^${SERVICE_ID}\s+${SDP_ID}:${SDP_SVC_ID}\s+${TYPE}\s+${FAR_END}\s+${OPER_STATE}\s+${INGRESS_LABEL}\s+${EGRESS_LABEL} -> Record | ||
^-+ -> Done | ||
^Number\s+of | ||
^=+ | ||
^\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
15 changes: 15 additions & 0 deletions
15
tests/alcatel_sros/show_service_sdp-using/alcatel_sros_show_service_sdp-using.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,15 @@ | ||
=============================================================================== | ||
SDP Using | ||
=============================================================================== | ||
SvcId SdpId Type Far End Opr I.Label E.Label | ||
State | ||
------------------------------------------------------------------------------- | ||
200 31:200 Spok 10.10.10.1 Up 524281 524283 | ||
200 34:200 Mesh 10.10.10.4 Down None None | ||
310 32767:4294967295 BgpAd 10.10.10.1 Up 524278 524280 | ||
400 32767:4294967294 BgpAd 10.10.10.1 Up 524277 524279 | ||
401 32767:4294967293 BgpAd 10.10.10.1 Up 524276 524278 | ||
------------------------------------------------------------------------------- | ||
Number of SDPs : 5 | ||
------------------------------------------------------------------------------- | ||
=============================================================================== |
42 changes: 42 additions & 0 deletions
42
tests/alcatel_sros/show_service_sdp-using/alcatel_sros_show_service_sdp-using.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,42 @@ | ||
--- | ||
parsed_sample: | ||
- egress_label: "524283" | ||
far_end: "10.10.10.1" | ||
ingress_label: "524281" | ||
oper_state: "Up" | ||
sdp_id: "31" | ||
sdp_svc_id: "200" | ||
service_id: "200" | ||
type: "Spok" | ||
- egress_label: "None" | ||
far_end: "10.10.10.4" | ||
ingress_label: "None" | ||
oper_state: "Down" | ||
sdp_id: "34" | ||
sdp_svc_id: "200" | ||
service_id: "200" | ||
type: "Mesh" | ||
- egress_label: "524280" | ||
far_end: "10.10.10.1" | ||
ingress_label: "524278" | ||
oper_state: "Up" | ||
sdp_id: "32767" | ||
sdp_svc_id: "4294967295" | ||
service_id: "310" | ||
type: "BgpAd" | ||
- egress_label: "524279" | ||
far_end: "10.10.10.1" | ||
ingress_label: "524277" | ||
oper_state: "Up" | ||
sdp_id: "32767" | ||
sdp_svc_id: "4294967294" | ||
service_id: "400" | ||
type: "BgpAd" | ||
- egress_label: "524278" | ||
far_end: "10.10.10.1" | ||
ingress_label: "524276" | ||
oper_state: "Up" | ||
sdp_id: "32767" | ||
sdp_svc_id: "4294967293" | ||
service_id: "401" | ||
type: "BgpAd" |