func (ctx *VmContext) ReleaseInterface(index int, ipAddr string, file *os.File, maps []pod.UserContainerPort) { var err error success := true if HDriver.BuildinNetwork() { err = ctx.DCtx.ReleaseNetwork(ctx.Id, ipAddr, maps, file) } else { err = network.Release(ctx.Id, ipAddr, maps, file) } if err != nil { glog.Warning("Unable to release network interface, address: ", ipAddr, err) success = false } ctx.Hub <- &InterfaceReleased{Index: index, Success: success} }
func (lc *LibvirtContext) ReleaseNetwork(vmId, releasedIP string, maps []pod.UserContainerPort, file *os.File) error { return network.Release(vmId, releasedIP, maps, nil) }
func (lc *LibvirtContext) ReleaseNetwork(vmId, releasedIP string, file *os.File) error { return network.Release(vmId, releasedIP) }