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");
        }
Esempio 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;
 }
Esempio n. 4
0
 public DestinationPoolSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Esempio n. 5
0
 public TitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary)
 {
     this.mapping = mapping;
 }
Esempio n. 6
0
 public StorageSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Esempio n. 7
0
 public HomeServerSummary(MappingSummary summary, VmMapping mapping, IXenConnection connection)
     : base(summary)
 {
     this.mapping = mapping;
     this.connection = connection;
 }
Esempio 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);
            }
        }
Esempio 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);
			}
		}
Esempio n. 11
0
 public VmTitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary, mapping)
 {
 }
Esempio n. 12
0
 public TemplateTitleSummary(MappingSummary summary, VmMapping mapping)
     : base(summary, mapping)
 {
 }