Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending command panics with invalid argument #27

Open
rolandjitsu opened this issue Oct 24, 2019 · 0 comments
Open

Sending command panics with invalid argument #27

rolandjitsu opened this issue Oct 24, 2019 · 0 comments

Comments

@rolandjitsu
Copy link

When running the following cmd I'm getting an invalid argument error:

func disableEth0AN() error {
	// `ethtool -s eth0 autoneg off speed 100 duplex full`
	cmd := &eth.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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant