Exemplo n.º 1
0
        public LiveMigrateOptionsVmMapping(VmMapping vmMapping, IXenObject vm)
        {
            this.vmMapping = vmMapping;
            this.vm = vm as VM;

            if(vm==null)
                throw new NullReferenceException("VM passed to ctor was null");
        }
Exemplo n.º 2
0
        public LiveMigrateOptionsVmMapping(VmMapping vmMapping, IXenObject vm)
        {
            this.vmMapping = vmMapping;
            this.vm        = vm as VM;

            if (vm == null)
            {
                throw new NullReferenceException("VM passed to ctor was null");
            }
        }
 public VMCrossPoolMigrateAction(VM vm, Host destinationHost, XenAPI.Network transferNetwork, VmMapping mapping)
     : base(vm.Connection, GetTitle(vm, destinationHost))
 {
     Session = vm.Connection.Session;
     Description = Messages.ACTION_PREPARING;
     VM = vm;
     Host = destinationHost;
     Pool = Helpers.GetPool(vm.Connection);
     this.mapping = mapping;
     this.transferNetwork = transferNetwork;
 }
Exemplo n.º 4
0
 public DestinationPoolSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Exemplo n.º 5
0
 public TitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary)
 {
     this.mapping = mapping;
 }
Exemplo n.º 6
0
 public StorageSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Exemplo n.º 7
0
 public HomeServerSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Exemplo n.º 8
0
 public VMCrossPoolMigrateAction(VM vm, Host destinationHost, XenAPI.Network transferNetwork, VmMapping mapping)
     : this(vm, destinationHost, transferNetwork, mapping, false)
 {
 }
        private void CreateMappingsFromSelection(IEnumerable<SelectedItem> selection)
        {
            foreach (SelectedItem item in selection)
            {
                VmMapping mapping = new VmMapping
                                        {
                                            VmNameLabel = item.XenObject.Name
                                        };

                m_vmMappings.Add(item.XenObject.opaque_ref, mapping);
            }
        }
Exemplo n.º 10
0
		private void ResetVmMappings(EnvelopeType ovfEnvelope)
		{
			string[] sysIds = OVF.FindSystemIds(ovfEnvelope);
			m_vmMappings.Clear();

			foreach (string sysId in sysIds)
			{
				var vmMap = new VmMapping
				            	{
				            		VmNameLabel = (m_typeOfImport == ImportType.Ovf)
													? FindVMName(ovfEnvelope, sysId)
				            		              	: m_pageVMconfig.VmName //it should only iterate once
				            	};
				m_vmMappings.Add(sysId, vmMap);
			}
		}
Exemplo n.º 11
0
 public VmTitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary, mapping)
 {
 }
Exemplo n.º 12
0
 public TemplateTitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary, mapping)
 {
 }