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

Support CNI_ARGS in static IPAM plugin #165

Merged
merged 8 commits into from
Sep 25, 2018
Merged
Prev Previous commit
Incorporate Dan's comments.
  • Loading branch information
s1061123 committed Sep 12, 2018
commit 094c9039328e1d2007d9e300804654ad0748a08c
2 changes: 1 addition & 1 deletion plugins/ipam/static/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) {

ip, subnet, err := net.ParseCIDR(ipstr)
if err != nil {
return nil, "", fmt.Errorf("invalid CIDR %s: %s", e.IP, err)
return nil, "", fmt.Errorf("invalid CIDR %s: %s", ipstr, err)
}

addr := Address{Address: net.IPNet{IP: ip, Mask: subnet.Mask}}
Expand Down