mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-03 04:12:31 +01:00 
			
		
		
		
	Bug 9887 - baremetal: support for image operation (create template from guest disk)
Add files
This commit is contained in:
		
							parent
							
								
									244de00b65
								
							
						
					
					
						commit
						345fb3aef5
					
				@ -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