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.
feat: Add show service id sap (networktocode#1914)
Co-authored-by: Michael Bear <[email protected]>
- Loading branch information
1 parent
5ee49d4
commit f516d04
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
ntc_templates/templates/alcatel_sros_show_service_id_0_sap.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,18 @@ | ||
Value PORT_ID (\S+) | ||
Value SERVICE_ID (\d+) | ||
Value INGRESS_QOS (\d+) | ||
Value INGRESS_FILTER (\S+) | ||
Value EGRESS_QOS (\d+) | ||
Value EGRESS_FILTER (\S+) | ||
Value ADMIN_STATUS (\S+) | ||
Value OPERATIONAL_STATUS (\S+) | ||
|
||
Start | ||
^=+\s*$$ | ||
^SAP\(Summary\), Service \d+\s*$$ | ||
^PortId\s+SvcId\s+Ing\.\s+Ing\.\s+Egr\.\s+Egr\.\s+Adm\s+Opr\s*$$ | ||
^\s+QoS\s+Fltr\s+QoS\s+Fltr\s*$$ | ||
^${PORT_ID}\s+${SERVICE_ID}\s+${INGRESS_QOS}\s+${INGRESS_FILTER}\s+${EGRESS_QOS}\s+${EGRESS_FILTER}\s+${ADMIN_STATUS}\s+${OPERATIONAL_STATUS}\s*$$ -> Record | ||
^-+\s*$$ | ||
^Number\s+of\s+SAPs\s+:\s+\d+\s*$$ | ||
^. -> Error |
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
11 changes: 11 additions & 0 deletions
11
tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.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,11 @@ | ||
=============================================================================== | ||
SAP(Summary), Service 24731 | ||
=============================================================================== | ||
PortId SvcId Ing. Ing. Egr. Egr. Adm Opr | ||
QoS Fltr QoS Fltr | ||
------------------------------------------------------------------------------- | ||
lag-54:950 24731 1 none 1 none Up Down | ||
------------------------------------------------------------------------------- | ||
Number of SAPs : 1 | ||
------------------------------------------------------------------------------- | ||
=============================================================================== |
10 changes: 10 additions & 0 deletions
10
tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.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,10 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "Up" | ||
egress_filter: "none" | ||
egress_qos: "1" | ||
ingress_filter: "none" | ||
ingress_qos: "1" | ||
operational_status: "Down" | ||
port_id: "lag-54:950" | ||
service_id: "24731" |