// CreateNetwork creates a network with the given name, driver and other optional parameters
CreateNetwork creates a network with the given name, driver and other optional parameters
// CreateNetwork creates a network with the given name driver and other optional parameters
func (daemon *Daemon) CreateNetwork(name, driver string, options map[string]interface{}) (libnetwork.Network, error) {
	c := daemon.netController
	if driver == "" {
		driver = c.Config().Daemon.DefaultDriver
	}
	if options == nil {
		options = make(map[string]interface{})
	}
	_, ok := options[netlabel.GenericData]
	if !ok {
		options[netlabel.GenericData] = make(map[string]interface{})
	}
	return c.NewNetwork(driver, name, parseOptions(options)...)
}
func ( daemon * Daemon ) CreateNetwork ( name , driver string , options map [ string ] interface { } ) ( libnetwork . Network , error ) { c := daemon . netController if driver == " " { driver = c . Config ( ) . Daemon . DefaultDriver } if options == nil { options = make ( map [ string ] interface { } ) } _ , ok := options [ netlabel . GenericData ] if ! ok { options [ netlabel . GenericData ] = make ( map [ string ] interface { } ) } return c . NewNetwork ( driver , name , parseOptions ( options ) ... ) }
CreateNetwork creates a network with the given name, driver and other optional parameters
CreateNetwork creates a network with the given name driver and other optional parameters