mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8324: Config drive changes for xenserver
This commit is contained in:
parent
e407986183
commit
69ea932897
@ -38,6 +38,8 @@ public interface VirtualMachineProfile {
|
|||||||
|
|
||||||
void setVmData(List<String[]> vmData);
|
void setVmData(List<String[]> vmData);
|
||||||
|
|
||||||
|
String getConfigDriveLabel();
|
||||||
|
|
||||||
void setConfigDriveLabel(String configDriveLabel);
|
void setConfigDriveLabel(String configDriveLabel);
|
||||||
|
|
||||||
String getConfigDriveIsoRootFolder();
|
String getConfigDriveIsoRootFolder();
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public class VirtualMachineProfileImpl implements VirtualMachineProfile {
|
|||||||
List<String[]> vmData = null;
|
List<String[]> vmData = null;
|
||||||
|
|
||||||
String configDriveLabel = null;
|
String configDriveLabel = null;
|
||||||
String configDriveIsoBaseLocation = "/tmp/"; //TODO: Make this location configurable.
|
String configDriveIsoBaseLocation = "/tmp/";
|
||||||
String configDriveIsoRootFolder = null;
|
String configDriveIsoRootFolder = null;
|
||||||
String configDriveIsoFile = null;
|
String configDriveIsoFile = null;
|
||||||
|
|
||||||
@ -273,6 +273,7 @@ public class VirtualMachineProfileImpl implements VirtualMachineProfile {
|
|||||||
this.vmData = vmData;
|
this.vmData = vmData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getConfigDriveLabel() {
|
public String getConfigDriveLabel() {
|
||||||
return configDriveLabel;
|
return configDriveLabel;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -173,7 +173,11 @@ public abstract class HypervisorGuruBase extends AdapterBase implements Hypervis
|
|||||||
to.setEnableDynamicallyScaleVm(isDynamicallyScalable);
|
to.setEnableDynamicallyScaleVm(isDynamicallyScalable);
|
||||||
to.setUuid(vmInstance.getUuid());
|
to.setUuid(vmInstance.getUuid());
|
||||||
|
|
||||||
//
|
to.setVmData(vmProfile.getVmData());
|
||||||
|
to.setConfigDriveLabel(vmProfile.getConfigDriveLabel());
|
||||||
|
to.setConfigDriveIsoRootFolder(vmProfile.getConfigDriveIsoRootFolder());
|
||||||
|
to.setConfigDriveIsoFile(vmProfile.getConfigDriveIsoFile());
|
||||||
|
|
||||||
return to;
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -893,4 +893,9 @@ public class MockNetworkModelImpl extends ManagerBase implements NetworkModel {
|
|||||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String[]> generateVmData(String userData, String serviceOffering, String zoneName, String vmName, long vmId, String publicKey, String password, Boolean isWindows) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -908,4 +908,9 @@ public class MockNetworkModelImpl extends ManagerBase implements NetworkModel {
|
|||||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String[]> generateVmData(String userData, String serviceOffering, String zoneName, String vmName, long vmId, String publicKey, String password, Boolean isWindows) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user