libnetwork: ipvlan: set network ID as part of parseNetworkOptions

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-07-01 09:37:30 +02:00
parent afeb4c7a6e
commit a893540b66
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}