mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Initializing generic to emtpy map
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
57a6888b64
commit
3365af97c2
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ import (
|
||||||
"github.com/docker/libnetwork/driverapi"
|
"github.com/docker/libnetwork/driverapi"
|
||||||
"github.com/docker/libnetwork/hostdiscovery"
|
"github.com/docker/libnetwork/hostdiscovery"
|
||||||
"github.com/docker/libnetwork/ipamapi"
|
"github.com/docker/libnetwork/ipamapi"
|
||||||
|
"github.com/docker/libnetwork/netlabel"
|
||||||
"github.com/docker/libnetwork/osl"
|
"github.com/docker/libnetwork/osl"
|
||||||
"github.com/docker/libnetwork/types"
|
"github.com/docker/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
@ -330,6 +331,7 @@ func (c *controller) NewNetwork(networkType, name string, options ...NetworkOpti
|
||||||
network := &network{
|
network := &network{
|
||||||
name: name,
|
name: name,
|
||||||
networkType: networkType,
|
networkType: networkType,
|
||||||
|
generic: map[string]interface{}{netlabel.GenericData: make(map[string]string)},
|
||||||
ipamType: ipamapi.DefaultIPAM,
|
ipamType: ipamapi.DefaultIPAM,
|
||||||
id: stringid.GenerateRandomID(),
|
id: stringid.GenerateRandomID(),
|
||||||
ctrlr: c,
|
ctrlr: c,
|
||||||
|
|
Loading…
Add table
Reference in a new issue