diff --git a/ntc_templates/templates/alcatel_sros_show_service_id_0_sap.textfsm b/ntc_templates/templates/alcatel_sros_show_service_id_0_sap.textfsm new file mode 100644 index 0000000000..5dd44813f3 --- /dev/null +++ b/ntc_templates/templates/alcatel_sros_show_service_id_0_sap.textfsm @@ -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 diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index eb8b2962a3..88db1d4c41 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -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 diff --git a/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.raw b/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.raw new file mode 100644 index 0000000000..8ca9baab86 --- /dev/null +++ b/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.raw @@ -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 +------------------------------------------------------------------------------- +=============================================================================== diff --git a/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.yml b/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.yml new file mode 100644 index 0000000000..c99161e3a7 --- /dev/null +++ b/tests/alcatel_sros/show_service_id_0_sap/show_service_id_0_sap.yml @@ -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"