Exemple #1
0
func InitNetwork(bIface, bIP string, disableIptables bool) error {
	if HDriver.BuildinNetwork() {
		return HDriver.InitNetwork(bIface, bIP, disableIptables)
	}

	return network.InitNetwork(bIface, bIP, disableIptables)
}
Exemple #2
0
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
}
Exemple #3
0
func (ld *LibvirtDriver) InitNetwork(bIface, bIP string, disableIptables bool) error {
	return network.InitNetwork(bIface, bIP, disableIptables)
}