示例#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)
}
示例#2
0
文件: daemon.go 项目: sulochan/hyper
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
}
示例#3
0
文件: network.go 项目: ZJU-SEL/runv
func (ld *LibvirtDriver) InitNetwork(bIface, bIP string, disableIptables bool) error {
	return network.InitNetwork(bIface, bIP, disableIptables)
}