libnetwork: macvlan: 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 10:35:12 +02:00
parent 35cba9b1c9
commit 798021af9f
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -29,7 +29,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
@ -193,7 +192,7 @@ func parseNetworkOptions(id string, option options.Generic) (*configuration, err
config.Internal = true
}
}
config.ID = id
return config, nil
}