From 99f68d6af032bdd5ce54c39da8fc5a5e3ea8b858 Mon Sep 17 00:00:00 2001 From: Shu0T1an ChenG Date: Wed, 15 Aug 2018 13:55:44 -0700 Subject: [PATCH] [test]: Change the default router interface MTU to 9100 With the recent pull requests, if the router interface is created without specifying the MTU in the configuration database, the default MTU would be 9100 instead of 1500. Note: 9100 comes from the orchagent/port.h; 1500 comes from the kernel. Signed-off-by: Shu0T1an ChenG --- tests/test_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_interface.py b/tests/test_interface.py index 1e6b1ab7abf..701ad0cc7c6 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -47,7 +47,7 @@ def test_InterfaceAddIpv4Address(self, dvs): if fv[0] == "SAI_ROUTER_INTERFACE_ATTR_TYPE": assert fv[1] == "SAI_ROUTER_INTERFACE_TYPE_PORT" if fv[0] == "SAI_ROUTER_INTERFACE_ATTR_MTU": - assert fv[1] == "1500" + assert fv[1] == "9100" # check ASIC route database tbl = swsscommon.Table(adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")