From 3d5cc842ea651de68cfac299d6a8bd2849c9a1f8 Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Thu, 12 Dec 2024 19:34:20 +0100 Subject: T6944: adds option to enable switchdev mode on ethernet interface --- smoketest/scripts/cli/test_interfaces_ethernet.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'smoketest') diff --git a/smoketest/scripts/cli/test_interfaces_ethernet.py b/smoketest/scripts/cli/test_interfaces_ethernet.py index c02ca613b..eeebaa4ca 100755 --- a/smoketest/scripts/cli/test_interfaces_ethernet.py +++ b/smoketest/scripts/cli/test_interfaces_ethernet.py @@ -223,5 +223,14 @@ class EthernetInterfaceTest(BasicInterfaceTest.TestCase): frrconfig = self.getFRRconfig(f'interface {interface}', daemon=mgmt_daemon) self.assertIn(f' evpn mh uplink', frrconfig) + def test_switchdev(self): + interface = self._interfaces[0] + self.cli_set(self._base_path + [interface, 'switchdev']) + + # check validate() - virtual interfaces do not support switchdev + # should print out warning that enabling failed + + self.cli_delete(self._base_path + [interface, 'switchdev']) + if __name__ == '__main__': unittest.main(verbosity=2) -- cgit v1.2.3