Ver código fonte

libnetwork: ipvlan: set network ID as part of parseNetworkOptions

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 anos atrás
pai
commit
a893540b66
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      libnetwork/drivers/ipvlan/ipvlan_network.go

+ 1 - 1
libnetwork/drivers/ipvlan/ipvlan_network.go

@@ -38,7 +38,6 @@ func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo
 	if err != nil {
 		return err
 	}
-	config.ID = nid
 	err = config.processIPAM(nid, ipV4Data, ipV6Data)
 	if err != nil {
 		return err
@@ -212,6 +211,7 @@ func parseNetworkOptions(id string, option options.Generic) (*configuration, err
 			config.Internal = true
 		}
 	}
+	config.ID = id
 	return config, nil
 }