Skip to content

Commit

Permalink
Merge pull request #75 from Trigary/patch-1
Browse files Browse the repository at this point in the history
Fix ethtool -k (query) used instead of -K (set)
  • Loading branch information
edgar-costa authored Jul 9, 2024
2 parents e02f06f + 936d867 commit 83b118b
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 83b118b

Please sign in to comment.