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

feat: Add show service id sap #1914

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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*$$ -> Header
^. -> Error

Header
^=+\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*$$
^-+\s*$$ -> Sap
^. -> Error


Sap
^${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 of SAPs : \d+\s*$$
^-+\s*$$
^=+\s*$$ -> End
^. -> Error
bennnnnnnn marked this conversation as resolved.
Show resolved Hide resolved
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ alcatel_sros_show_service_id_interface.textfsm, .*, alcatel_sros, sh[[ow]] se[[r
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_interface.textfsm, .*, alcatel_sros, sh[[ow]] router (\d+ int[[erface]]|int[[erface]])
alcatel_sros_show_service_id_0_sap.textfsm, .*, alcatel_sros, sh[[ow]] serv[[ice]] id \d+ sa[[p]]
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
Expand Down
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
-------------------------------------------------------------------------------
===============================================================================
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"