Skip to content

Commit

Permalink
fix ethtool -k (query) used instead of -K (set)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigary authored Jul 9, 2024
1 parent e02f06f commit 936d867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p4utils/mininetlib/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}"

Expand Down Expand Up @@ -210,4 +210,4 @@ def stop( self ):
for host in self.hosts:
info( host.name + ' ' )
host.terminate()
info( '\n*** Done\n' )
info( '\n*** Done\n' )

0 comments on commit 936d867

Please sign in to comment.