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