diff --git a/ntc_templates/templates/alcatel_sros_show_service_sap-using.textfsm b/ntc_templates/templates/alcatel_sros_show_service_sap-using.textfsm new file mode 100644 index 0000000000..89ee1b5fac --- /dev/null +++ b/ntc_templates/templates/alcatel_sros_show_service_sap-using.textfsm @@ -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 diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index b6c1d5eb60..d115cb04c8 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -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 diff --git a/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.raw b/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.raw new file mode 100644 index 0000000000..0c31ef23a8 --- /dev/null +++ b/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.raw @@ -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 +------------------------------------------------------------------------------- +=============================================================================== diff --git a/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.yml b/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.yml new file mode 100644 index 0000000000..1e17bdb1ca --- /dev/null +++ b/tests/alcatel_sros/show_service_sap-using/alcatel_sros_show_service_sap-using.yml @@ -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"