public DeleteVIFAction(VIF vif, bool suppressHistory = false) : base(vif.Connection, string.Format(Messages.ACTION_VIF_DELETING_TITLE, vif.NetworkName(), vif.Connection.Resolve(vif.VM).Name()), suppressHistory) { _vif = vif; VM = vif.Connection.Resolve(vif.VM); }
/// <summary> /// Update the VIF /// </summary> /// <param name="vm"></param> /// <param name="vif"></param> /// <param name="proxyVIF"></param> public UpdateVIFAction(VM vm, VIF vif, Proxy_VIF proxyVIF) : base(vm.Connection, String.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name)) { this.vif = vif; VM = vm; this.proxyVIF = proxyVIF; Initialise(); xmlRpcMethods.ForEach(method => ApiMethodsToRoleCheck.Add(method)); }
/// <summary> /// Update the VIF /// </summary> /// <param name="vm"></param> /// <param name="vif"></param> /// <param name="vifDescriptor"></param> public UpdateVIFAction(VM vm, VIF vif, VIF vifDescriptor) : base(vm.Connection, String.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name())) { this.vif = vif; VM = vm; this.vifDescriptor = vifDescriptor; Initialise(); apiMethods.ForEach(method => ApiMethodsToRoleCheck.Add(method)); }
/// <summary> /// Update the VIF /// </summary> /// <param name="vm"></param> /// <param name="vif"></param> /// <param name="proxyVIF"></param> public UpdateVIFAction(VM vm, VIF vif, Proxy_VIF proxyVIF) : base(vm.Connection, String.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name)) { this.vif = vif; VM = vm; this.proxyVIF = proxyVIF; Initialise(); xmlRpcMethods.ForEach(method => ApiMethodsToRoleCheck.Add(method)); }
public UpdateVIFAction(VM vm, VIF vif, VIF vifDescriptor) : base(vm.Connection, string.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name())) { this.vif = vif; VM = vm; this.vifDescriptor = vifDescriptor; ApiMethodsToRoleCheck.AddRange(DeleteVIFAction.XmlRpcMethods); ApiMethodsToRoleCheck.AddRange(CreateVIFAction.XmlRpcMethods); }
public void UpdateDetails() { if (Metrics != null) { Metrics.PropertyChanged -= Server_PropertyChanged; } Metrics = Vif.Connection.Resolve(Vif.metrics); if (Metrics != null) { Metrics.PropertyChanged += Server_PropertyChanged; } ImageCell.Value = Properties.Resources._000_Network_h32bit_16; DeviceCell.Value = Vif.device; MacCell.Value = Helpers.GetMacString(Vif.MAC); LimitCell.Value = Vif.qos_algorithm_type != "" ? Vif.LimitString() : ""; NetworkCell.Value = Vif.NetworkName(); IpCell.Value = Vif.IPAddressesAsString(); AttachedCell.Value = Vif.currently_attached ? Messages.YES : Messages.NO; }