You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by fr...@apache.org on 2013/02/22 00:34:58 UTC

[6/7] git commit: refs/heads/4.1 - CloudStack CLOUDSTACK-774 Supporting kickstart in CloudStack baremetal

CloudStack CLOUDSTACK-774
Supporting kickstart in CloudStack baremetal

pass host id to baremetal discover when mgmt loads existing hosts


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/5f0bb8ab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/5f0bb8ab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/5f0bb8ab

Branch: refs/heads/4.1
Commit: 5f0bb8ab293af1d3960492f9cf8c65a02df04302
Parents: 2e069ad
Author: frank <fr...@citrix.com>
Authored: Thu Feb 21 11:08:58 2013 -0800
Committer: frank <fr...@citrix.com>
Committed: Thu Feb 21 15:39:15 2013 -0800

----------------------------------------------------------------------
 .../baremetal/manager/BareMetalDiscoverer.java     |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5f0bb8ab/plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java b/plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java
index 9b0a510..28c8375 100755
--- a/plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java
+++ b/plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java
@@ -276,5 +276,13 @@ public class BareMetalDiscoverer extends DiscovererBase implements Discoverer, R
         
         return new DeleteHostAnswer(true);
     }
+	
+	@Override
+	protected HashMap<String, Object> buildConfigParams(HostVO host) {
+	    HashMap<String, Object> params = super.buildConfigParams(host);
+        params.put("hostId", host.getId());
+        params.put("ipaddress", host.getPrivateIpAddress());
+        return params;
+	}
 
 }