Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
[VMware] vSphere advanced capabilities and Full OVF properties support#4307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
0701dc9f05b567a72782fb8b4f0f037fcfda4ec86a8b23ea92ff4989a951e5f27e5dfafb0a96e487bb03851b5626c31449aa07959bef00b13d9edee4bbb7476df819018340e9778148b233e665586fa7ec45b83a48786b2bea31b8f85838741b3fc153fa3beb4a23eac9c38c075fb1d9873f9dd0335713fef3926ed7efdf5aac6c34178a7cc8a28f34b10c617932f63812d42ee700ad7fc05d3161dd8581244fca48dd0da36d65901b18554e211b9270e19b2a5531a90483e29295ea502dd6e18ab171ad201ebe8b88df5ef320cf3af84743d4d372ad48cab70a412ac85d440d97ae846570f321ebe0e2bd2d9b3cc16b40e38b961819745ea40934bac11dc3304d400f8ee17e1d864e9dcf2bb715652097700ab1af825a94f53f11bbc8ad68f74262bfab6b41bb4ce21f73830a44bae98818981d6ebfdc619c83fe44dc0c633ae2af745dd009c162c661e7625a43d0a60f5a6eeedfbed3acf872cc6c4bfe89aa25d41354227a8dd46bb90ce581b184832d85b0667cb5378aa3df1638d72b0d31686e81efa9543fd62f038779b51a7046d412d08c0b0794bebe8897cc4b588b7a19b923ba388a9c29dd1d60db46a7ad69283a3063b6cdc4f913cee71c607abcf5a54436b1e4e5cf46b53225fdabc1048e8c888c02ef3600b3cd81f050950292dee5b87638e119a6b715ecb8a79ab6e6d6d650ab1b267794ab5797cf5ce236e9f1f490b17783cb68d51cb010133095816496db66606cde210ff197b28c688435d24e73187813a0c6900e0d7c582d119a5da831ad1c405e5d85f5512795dc017d7e7f77501944File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| package com.cloud.agent.api.to; | ||
| import com.cloud.agent.api.LogLevel; | ||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
| /** | ||
| * TO class sent to the hypervisor layer with the information needed to handle deploy-as-is VM deployments | ||
| */ | ||
| public class DeployAsIsInfoTO { | ||
nvazquez marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private Map<String, String> properties = new HashMap<>(); | ||
| private Map<Integer, String> nicAdapterMap = new HashMap(); | ||
| public DeployAsIsInfoTO() { | ||
| } | ||
| public DeployAsIsInfoTO(Map<String, String> properties, Map<Integer, String> nicAdapterMap) { | ||
| this.properties = properties; | ||
| this.nicAdapterMap = nicAdapterMap; | ||
| } | ||
| public Map<String, String> getProperties() { | ||
| return properties; | ||
| } | ||
| public Map<Integer, String> getNicAdapterMap() { | ||
| return nicAdapterMap; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| // | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // | ||
| package com.cloud.agent.api.to; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new class should be in org.apache.cloudstack | ||
| import com.cloud.agent.api.LogLevel; | ||
| import com.cloud.agent.api.to.deployasis.OVFEulaSectionTO; | ||
| import com.cloud.agent.api.to.deployasis.OVFNetworkTO; | ||
| import com.cloud.agent.api.to.deployasis.OVFPropertyTO; | ||
| import com.cloud.agent.api.to.deployasis.OVFVirtualHardwareSectionTO; | ||
| import com.cloud.utils.Pair; | ||
| import java.util.List; | ||
| /** | ||
| * Placeholder class for all the subclasses obtained from the OVF parsing | ||
| */ | ||
| public class OVFInformationTO { | ||
nvazquez marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private List<OVFPropertyTO> properties; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private List<OVFNetworkTO> networks; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private List<DatadiskTO> disks; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private OVFVirtualHardwareSectionTO hardwareSection; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private List<OVFEulaSectionTO> eulaSections; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private Pair<String, String> guestOsInfo; | ||
| public OVFInformationTO() { | ||
| } | ||
| public List<OVFPropertyTO> getProperties() { | ||
| return properties; | ||
| } | ||
| public void setProperties(List<OVFPropertyTO> properties) { | ||
| this.properties = properties; | ||
| } | ||
| public List<OVFNetworkTO> getNetworks() { | ||
| return networks; | ||
| } | ||
| public void setNetworks(List<OVFNetworkTO> networks) { | ||
| this.networks = networks; | ||
| } | ||
| public List<DatadiskTO> getDisks() { | ||
| return disks; | ||
| } | ||
| public void setDisks(List<DatadiskTO> disks) { | ||
| this.disks = disks; | ||
| } | ||
| public OVFVirtualHardwareSectionTO getHardwareSection() { | ||
| return hardwareSection; | ||
| } | ||
| public void setHardwareSection(OVFVirtualHardwareSectionTO hardwareSection) { | ||
| this.hardwareSection = hardwareSection; | ||
| } | ||
| public List<OVFEulaSectionTO> getEulaSections() { | ||
| return eulaSections; | ||
| } | ||
| public void setEulaSections(List<OVFEulaSectionTO> eulaSections) { | ||
| this.eulaSections = eulaSections; | ||
| } | ||
| public Pair<String, String> getGuestOsInfo() { | ||
| return guestOsInfo; | ||
| } | ||
| public void setGuestOsInfo(Pair<String, String> guestOsInfo) { | ||
| this.guestOsInfo = guestOsInfo; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| // | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // | ||
| package com.cloud.agent.api.to.deployasis; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new class should be in org.apache.cloudstack | ||
| import java.util.List; | ||
| /** | ||
| * This class represents a template deployment option (configuration) parsed from the OVF | ||
| */ | ||
| public class OVFConfigurationTO implements TemplateDeployAsIsInformationTO { | ||
nvazquez marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| private final String id; | ||
| private final String label; | ||
| private final String description; | ||
| private List<OVFVirtualHardwareItemTO> hardwareItems; | ||
| private int index; | ||
| public OVFConfigurationTO(String id, String label, String description, int index) { | ||
| this.id = id; | ||
| this.label = label; | ||
| this.description = description; | ||
| this.index = index; | ||
| } | ||
| public String getId() { | ||
| return id; | ||
| } | ||
| public String getLabel() { | ||
| return label; | ||
| } | ||
| public String getDescription() { | ||
| return description; | ||
| } | ||
| public void setHardwareItems(List<OVFVirtualHardwareItemTO> items) { | ||
| this.hardwareItems = items; | ||
| } | ||
| public List<OVFVirtualHardwareItemTO> getHardwareItems() { | ||
| return hardwareItems; | ||
| } | ||
| public int getIndex() { | ||
| return index; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // | ||
| package com.cloud.agent.api.to.deployasis; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new class should be in org.apache.cloudstack | ||
| import com.cloud.agent.api.LogLevel; | ||
| /** | ||
nvazquez marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| * End-user licence agreement | ||
| */ | ||
| public class OVFEulaSectionTO implements TemplateDeployAsIsInformationTO { | ||
| private String info; | ||
| @LogLevel(LogLevel.Log4jLevel.Off) | ||
| private byte[] compressedLicense; | ||
| private int index; | ||
| public OVFEulaSectionTO(String info, byte[] license, int eulaIndex) { | ||
| this.info = info; | ||
| this.compressedLicense = license; | ||
| this.index = eulaIndex; | ||
| } | ||
| public String getInfo() { | ||
| return this.info; | ||
| } | ||
| public byte[] getCompressedLicense() { | ||
| return this.compressedLicense; | ||
| } | ||
| public int getIndex() { | ||
| return index; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new class should be in org.apache.cloudstack