Skip to content

Commit 0fa9f5e

Browse files
committed
Bug 9887 - baremetal: support for image operation (create template from guest disk)
Add files
1 parent 3c1a375 commit 0fa9f5e

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.cloud.agent.api.baremetal;
2+
3+
import com.cloud.agent.api.Command;
4+
5+
public class IpmiBootorResetCommand extends Command {
6+
7+
@Override
8+
public boolean executeInSequence() {
9+
return true;
10+
}
11+
12+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package com.cloud.agent.api.baremetal;
2+
3+
import com.cloud.agent.api.Command;
4+
5+
public class prepareCreateTemplateCommand extends Command {
6+
String ip;
7+
String mac;
8+
String netMask;
9+
String gateway;
10+
String dns;
11+
String template;
12+
13+
@Override
14+
public boolean executeInSequence() {
15+
return true;
16+
}
17+
18+
public prepareCreateTemplateCommand(String ip, String mac, String netMask, String gateway, String dns, String template) {
19+
this.ip = ip;
20+
this.mac = mac;
21+
this.netMask = netMask;
22+
this.gateway = gateway;
23+
this.dns = dns;
24+
this.template = template;
25+
}
26+
27+
public String getIp() {
28+
return ip;
29+
}
30+
31+
public String getMac() {
32+
return mac;
33+
}
34+
35+
public String getNetMask() {
36+
return netMask;
37+
}
38+
39+
public String getGateWay() {
40+
return gateway;
41+
}
42+
43+
public String getDns() {
44+
return dns;
45+
}
46+
47+
public String getTemplate() {
48+
return template;
49+
}
50+
}

0 commit comments

Comments
 (0)