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

New Template: alcatel_sros, sap-using #892

Merged
merged 5 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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,27 @@
Value Required PORT_ID (\S+)
Value Required SERVICE_ID (\d+)
Value Required INGRESS_QOS (\d+)
Value Required INGRESS_FILTER (\S+)
Value Required EGRESS_QOS (\d+)
Value Required EGRESS_FILTER (\S+)
Value Required ADMIN_STATE (Up|Down)
Value Required OPER_STATE (Up|Down)

Start
^=+
^Service\s+Access\s+Points
^PortId\s+SvcId\s+Ing.\s+Ing.\s+Egr.\s+Egr.\s+Adm\s+Opr\s*$$ -> SAPS
^\s*$$
^. -> Error

SAPS
^\s+QoS\s+Fltr\s+QoS\s+Fltr
^-+
^${PORT_ID}\s+${SERVICE_ID}\s+${INGRESS_QOS}\s+${INGRESS_FILTER}\s+${EGRESS_QOS}\s+${EGRESS_FILTER}\s+${ADMIN_STATE}\s+${OPER_STATE} -> Record
^-+ -> Done
^=+
^Number\s+of
^\s*$$
^. -> Error

Done
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ alcatel_sros_show_router_mpls_interface.textfsm, .*, alcatel_sros, sh[[ow]] rout
alcatel_sros_show_router_rsvp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router rsvp int[[erface]]
alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]]
alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]]
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_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,15 @@
===============================================================================
Service Access Points
===============================================================================
PortId SvcId Ing. Ing. Egr. Egr. Adm Opr
QoS Fltr QoS Fltr
-------------------------------------------------------------------------------
lag-21:300 1 11130 none 11140 none Up Up
lag-22:300 1 11130 ip4 11140 none Up Up
1/1/c6/1:234 400 1 none 1 none Up Down
lag-21:400 76415001 10 none 1 none Up Up
lag-22:400 76415002 10 none 1 none Up Up
-------------------------------------------------------------------------------
Number of SAPs : 5
-------------------------------------------------------------------------------
===============================================================================
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
parsed_sample:
- admin_state: "Up"
egress_filter: "none"
egress_qos: "11140"
ingress_filter: "none"
ingress_qos: "11130"
oper_state: "Up"
port_id: "lag-21:300"
service_id: "1"
- admin_state: "Up"
egress_filter: "none"
egress_qos: "11140"
ingress_filter: "ip4"
ingress_qos: "11130"
oper_state: "Up"
port_id: "lag-22:300"
service_id: "1"
- admin_state: "Up"
egress_filter: "none"
egress_qos: "1"
ingress_filter: "none"
ingress_qos: "1"
oper_state: "Down"
port_id: "1/1/c6/1:234"
service_id: "400"
- admin_state: "Up"
egress_filter: "none"
egress_qos: "1"
ingress_filter: "none"
ingress_qos: "10"
oper_state: "Up"
port_id: "lag-21:400"
service_id: "76415001"
- admin_state: "Up"
egress_filter: "none"
egress_qos: "1"
ingress_filter: "none"
ingress_qos: "10"
oper_state: "Up"
port_id: "lag-22:400"
service_id: "76415002"