CLOUDSTACK-8324: Config drive changes for xenserver

This commit is contained in:
Jayapal 2015-05-26 14:42:41 +05:30
parent e407986183
commit 69ea932897
5 changed files with 19 additions and 2 deletions

View File

@ -38,6 +38,8 @@ public interface VirtualMachineProfile {
void setVmData(List<String[]> vmData);
String getConfigDriveLabel();
void setConfigDriveLabel(String configDriveLabel);
String getConfigDriveIsoRootFolder();

View File

@ -54,7 +54,7 @@ public class VirtualMachineProfileImpl implements VirtualMachineProfile {
List<String[]> vmData = null;
String configDriveLabel = null;
String configDriveIsoBaseLocation = "/tmp/"; //TODO: Make this location configurable.
String configDriveIsoBaseLocation = "/tmp/";
String configDriveIsoRootFolder = null;
String configDriveIsoFile = null;
@ -273,6 +273,7 @@ public class VirtualMachineProfileImpl implements VirtualMachineProfile {
this.vmData = vmData;
}
@Override
public String getConfigDriveLabel() {
return configDriveLabel;
}

View File

@ -173,7 +173,11 @@ public abstract class HypervisorGuruBase extends AdapterBase implements Hypervis
to.setEnableDynamicallyScaleVm(isDynamicallyScalable);
to.setUuid(vmInstance.getUuid());
//
to.setVmData(vmProfile.getVmData());
to.setConfigDriveLabel(vmProfile.getConfigDriveLabel());
to.setConfigDriveIsoRootFolder(vmProfile.getConfigDriveIsoRootFolder());
to.setConfigDriveIsoFile(vmProfile.getConfigDriveIsoFile());
return to;
}

View File

@ -893,4 +893,9 @@ public class MockNetworkModelImpl extends ManagerBase implements NetworkModel {
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;
}
}

View File

@ -908,4 +908,9 @@ public class MockNetworkModelImpl extends ManagerBase implements NetworkModel {
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;
}
}