From 6d7d539bb08de85e0049405da00427f498a7d262 Mon Sep 17 00:00:00 2001 From: Ramesh Raghupathy Date: Sat, 31 Aug 2024 19:09:22 -0700 Subject: [PATCH] Testing SA and UT --- tests/intfutil_test.py | 53 ++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/tests/intfutil_test.py b/tests/intfutil_test.py index d0a1c42ec1..86fa3e4736 100644 --- a/tests/intfutil_test.py +++ b/tests/intfutil_test.py @@ -11,41 +11,24 @@ scripts_path = os.path.join(modules_path, "scripts") show_interface_status_output="""\ - Interface Lanes Speed MTU FEC\ - Alias Vlan Oper Admin Type Asym PFC ---------------- --------------- ------- ----- -----\ - --------- --------------- ------ ------- ----------------- ---------- - Ethernet0 0 25G 9100 rs Ethernet0\ - routed down up QSFP28 or later off - Ethernet16 16 100M 9100 N/A etp5\ - trunk up up RJ45 off - Ethernet24 24 1G 9100 N/A etp6\ - trunk up up Dpc off - Ethernet28 28 1000M 9100 N/A etp8\ - trunk up up RJ45 off - Ethernet32 13,14,15,16 40G 9100 rs etp9\ - PortChannel1001 up up N/A off - Ethernet36 9,10,11,12 10M 9100 N/A etp10\ - routed up up RJ45 off - Ethernet112 93,94,95,96 40G 9100 rs etp29\ - PortChannel0001 up up N/A off - Ethernet116 89,90,91,92 40G 9100 rs etp30\ - PortChannel0002 up up N/A off - Ethernet120 101,102,103,104 40G 9100 rs etp31\ - PortChannel0003 up up N/A off - Ethernet124 97,98,99,100 40G 9100 auto etp32\ - PortChannel0004 up up N/A off -PortChannel0001 N/A 40G 9100 N/A N/A\ - routed down up N/A N/A -PortChannel0002 N/A 40G 9100 N/A N/A\ - routed up up N/A N/A -PortChannel0003 N/A 40G 9100 N/A N/A\ - routed up up N/A N/A -PortChannel0004 N/A 40G 9100 N/A N/A\ - routed up up N/A N/A -PortChannel1001 N/A 40G 9100 N/A N/A\ - trunk N/A N/A N/A N/A -""" + Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC +--------------- --------------- ------- ----- ----- --------- --------------- ------ ------- --------------- ---------- + Ethernet0 0 25G 9100 rs Ethernet0 routed down up QSFP28 or later off + Ethernet16 16 100M 9100 N/A etp5 trunk up up RJ45 off + Ethernet24 24 1G 9100 N/A etp6 trunk up up Dpc off + Ethernet28 28 1000M 9100 N/A etp8 trunk up up RJ45 off + Ethernet32 13,14,15,16 40G 9100 rs etp9 PortChannel1001 up up N/A off + Ethernet36 9,10,11,12 10M 9100 N/A etp10 routed up up RJ45 off + Ethernet112 93,94,95,96 40G 9100 rs etp29 PortChannel0001 up up N/A off + Ethernet116 89,90,91,92 40G 9100 rs etp30 PortChannel0002 up up N/A off + Ethernet120 101,102,103,104 40G 9100 rs etp31 PortChannel0003 up up N/A off + Ethernet124 97,98,99,100 40G 9100 auto etp32 PortChannel0004 up up N/A off +PortChannel0001 N/A 40G 9100 N/A N/A routed down up N/A N/A +PortChannel0002 N/A 40G 9100 N/A N/A routed up up N/A N/A +PortChannel0003 N/A 40G 9100 N/A N/A routed up up N/A N/A +PortChannel0004 N/A 40G 9100 N/A N/A routed up up N/A N/A +PortChannel1001 N/A 40G 9100 N/A N/A trunk N/A N/A N/A N/A +""" # noqa: E501 show_interface_status_Ethernet32_output="""\ Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC