diff --git a/ntc_templates/templates/alcatel_sros_show_port_description.textfsm b/ntc_templates/templates/alcatel_sros_show_port_description.textfsm index 3c6446ed73..0ae4686331 100644 --- a/ntc_templates/templates/alcatel_sros_show_port_description.textfsm +++ b/ntc_templates/templates/alcatel_sros_show_port_description.textfsm @@ -4,8 +4,10 @@ Value DESCRIPTION (.+) Start ^=+\s*$$ ^\s*$$ - ^Port\s+Descriptions\s+on\s\S+\s+\S+\s*$$ + ^Port\s+Descriptions\s+on\s\S+\s+\S+(\s*\S*\s*\S*)\s*$$ ^Port\s+Id\s+Description\s*$$ ^${PORT_ID}\s+${DESCRIPTION}\s*$$ -> Record + ^${PORT_ID}$$ + ^\s+${DESCRIPTION}$$ -> Record ^-+\s*$$ ^. -> Error \ No newline at end of file diff --git a/tests/alcatel_sros/show_port_description/show_port_description_multiline.raw b/tests/alcatel_sros/show_port_description/show_port_description_multiline.raw new file mode 100644 index 0000000000..402e5ad94d --- /dev/null +++ b/tests/alcatel_sros/show_port_description/show_port_description_multiline.raw @@ -0,0 +1,25 @@ + +=============================================================================== +Port Descriptions on Satellite esat-11 +=============================================================================== +Port Id Description +------------------------------------------------------------------------------- +esat-11/1/1 OC_YOOI_yQRJZCQUYJ-RY-65-OFL5 +esat-11/1/4 YOOI-SL0566-65-lep0 +esat-11/1/14 1-Gig/10-Gig Ethernet +esat-11/1/64 1-Gig/10-Gig Ethernet +esat-11/1/c65 QSFP28 Connector +esat-11/1/c65/u1 + 100-Gig Ethernet +esat-11/1/c66 QSFP28 Connector +esat-11/1/c66/u1 + 100-Gig Ethernet +=============================================================================== + +=============================================================================== +Port Descriptions on Port Cross Connect 1 +=============================================================================== +Port Id Description +------------------------------------------------------------------------------- +pxc-1.a Port cross-connect +=============================================================================== \ No newline at end of file diff --git a/tests/alcatel_sros/show_port_description/show_port_description_multiline.yml b/tests/alcatel_sros/show_port_description/show_port_description_multiline.yml new file mode 100644 index 0000000000..b18b89f061 --- /dev/null +++ b/tests/alcatel_sros/show_port_description/show_port_description_multiline.yml @@ -0,0 +1,20 @@ +--- +parsed_sample: + - description: "OC_YOOI_yQRJZCQUYJ-RY-65-OFL5" + port_id: "esat-11/1/1" + - description: "YOOI-SL0566-65-lep0" + port_id: "esat-11/1/4" + - description: "1-Gig/10-Gig Ethernet " + port_id: "esat-11/1/14" + - description: "1-Gig/10-Gig Ethernet" + port_id: "esat-11/1/64" + - description: "QSFP28 Connector" + port_id: "esat-11/1/c65" + - description: "100-Gig Ethernet" + port_id: "esat-11/1/c65/u1" + - description: "QSFP28 Connector" + port_id: "esat-11/1/c66" + - description: "100-Gig Ethernet" + port_id: "esat-11/1/c66/u1" + - description: "Port cross-connect" + port_id: "pxc-1.a"