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

[38/58] [abbrv] git commit: refs/heads/qemu-img - 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/8855d793
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8855d793
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8855d793

Branch: refs/heads/qemu-img
Commit: 8855d793ee39e7f5471eac3895d20aad8922f60a
Parents: 15ead09
Author: frank <fr...@citrix.com>
Authored: Thu Feb 21 11:08:58 2013 -0800
Committer: frank <fr...@citrix.com>
Committed: Thu Feb 21 15:48:20 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/8855d793/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;
+	}
 
 }