From 6dc16b9132743dfc878042c013a1503532250a0f Mon Sep 17 00:00:00 2001 From: Piotr Skamruk Date: Thu, 5 Jul 2018 16:10:39 +0200 Subject: [PATCH] plugins/ipam/static: Update docstring --- plugins/ipam/static/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {