From 936d867f0e112d4eeb3adde7521f9d066908f4c7 Mon Sep 17 00:00:00 2001 From: Gergely Sarkozi <16213127+Trigary@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:41:10 +0200 Subject: [PATCH] fix ethtool -k (query) used instead of -K (set) --- p4utils/mininetlib/net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4utils/mininetlib/net.py b/p4utils/mininetlib/net.py index 90c7113..43c89ea 100644 --- a/p4utils/mininetlib/net.py +++ b/p4utils/mininetlib/net.py @@ -141,7 +141,7 @@ def start(self): #remove Ipv6 for all the interfaces for link in self.links: - cmd1 = "/sbin/ethtool -k {0} rx off tx off sg off" + cmd1 = "/sbin/ethtool -K {0} rx off tx off sg off" cmd2 = "sysctl net.ipv6.conf.{0}.disable_ipv6=1" cmd3 = "ip link set {} mtu {}" @@ -210,4 +210,4 @@ def stop( self ): for host in self.hosts: info( host.name + ' ' ) host.terminate() - info( '\n*** Done\n' ) \ No newline at end of file + info( '\n*** Done\n' )