Open rolandjitsu opened 5 years ago
When running the following cmd I'm getting an invalid argument error:
invalid argument
func disableEth0AN() error { // `ethtool -s eth0 autoneg off speed 100 duplex full` cmd := ð.EthtoolCmd{ Autoneg: 0, Speed: 100, Duplex: 1, } ifa := "eth0" if _, err := cmd.CmdSet(ifa); err != nil { return fmt.Errorf("Cannot disable AN") } return nil }
Are the values for the cmd wrong?
When running the following cmd I'm getting an
invalid argument
error:Are the values for the cmd wrong?