func InitNetwork(bIface, bIP string, disableIptables bool) error { if HDriver.BuildinNetwork() { return HDriver.InitNetwork(bIface, bIP, disableIptables) } return network.InitNetwork(bIface, bIP, disableIptables) }
func (daemon *Daemon) InitNetwork(driver hypervisor.HypervisorDriver, biface, bridgeip string) error { err := driver.InitNetwork(biface, bridgeip) if err == os.ErrNotExist { err = network.InitNetwork(biface, bridgeip) } return err }
func (ld *LibvirtDriver) InitNetwork(bIface, bIP string, disableIptables bool) error { return network.InitNetwork(bIface, bIP, disableIptables) }