diff --git a/plugins/ipam/static/main.go b/plugins/ipam/static/main.go index dde6165e..53788700 100644 --- a/plugins/ipam/static/main.go +++ b/plugins/ipam/static/main.go @@ -72,7 +72,9 @@ func canonicalizeIP(ip *net.IP) error { return fmt.Errorf("IP %s not v4 nor v6", *ip) } -// NewIPAMConfig creates a NetworkConfig from the given network name. +// LoadIPAMConfig creates IPAMConfig using json encoded configuration provided +// as `bytes`. At the moment values provided in envArgs are ignored so there +// is no possibility to overload the json configuration using envArgs func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) { n := Net{} if err := json.Unmarshal(bytes, &n); err != nil {