mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 9887 - baremetal: support for image operation (create template from guest disk)
Add files
This commit is contained in:
parent
3c1a375978
commit
0fa9f5ef31
@ -0,0 +1,12 @@
|
||||
package com.cloud.agent.api.baremetal;
|
||||
|
||||
import com.cloud.agent.api.Command;
|
||||
|
||||
public class IpmiBootorResetCommand extends Command {
|
||||
|
||||
@Override
|
||||
public boolean executeInSequence() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.cloud.agent.api.baremetal;
|
||||
|
||||
import com.cloud.agent.api.Command;
|
||||
|
||||
public class prepareCreateTemplateCommand extends Command {
|
||||
String ip;
|
||||
String mac;
|
||||
String netMask;
|
||||
String gateway;
|
||||
String dns;
|
||||
String template;
|
||||
|
||||
@Override
|
||||
public boolean executeInSequence() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public prepareCreateTemplateCommand(String ip, String mac, String netMask, String gateway, String dns, String template) {
|
||||
this.ip = ip;
|
||||
this.mac = mac;
|
||||
this.netMask = netMask;
|
||||
this.gateway = gateway;
|
||||
this.dns = dns;
|
||||
this.template = template;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public String getMac() {
|
||||
return mac;
|
||||
}
|
||||
|
||||
public String getNetMask() {
|
||||
return netMask;
|
||||
}
|
||||
|
||||
public String getGateWay() {
|
||||
return gateway;
|
||||
}
|
||||
|
||||
public String getDns() {
|
||||
return dns;
|
||||
}
|
||||
|
||||
public String getTemplate() {
|
||||
return template;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user