mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-10-04 07:48:30 +00:00
Merge pull request #627 from mavenugo/vin-fixes
Few more fixes identified during integration
This commit is contained in:
+4
-1
@@ -86,7 +86,7 @@ type IpamConf struct {
|
||||
// Validate checks whether the configuration is valid
|
||||
func (c *IpamConf) Validate() error {
|
||||
if c.Gateway != "" && nil == net.ParseIP(c.Gateway) {
|
||||
return types.BadRequestErrorf("invalid gateway address %s in IpamConf dtructure", c.Gateway)
|
||||
return types.BadRequestErrorf("invalid gateway address %s in Ipam configuration", c.Gateway)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -497,6 +497,9 @@ func NetworkOptionLabels(labels map[string]string) NetworkOption {
|
||||
if n.generic == nil {
|
||||
n.generic = make(map[string]interface{})
|
||||
}
|
||||
if labels == nil {
|
||||
labels = make(map[string]string)
|
||||
}
|
||||
// Store the options
|
||||
n.generic[netlabel.GenericData] = labels
|
||||
// Decode and store the endpoint options of libnetwork interest
|
||||
|
||||
Reference in New Issue
Block a user