incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frankzh...@apache.org
Subject [6/7] git commit: refs/heads/master - CloudStack CLOUDSTACK-774 Supporting kickstart in CloudStack baremetal
Date Thu, 21 Feb 2013 23:44:17 GMT
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/master
Commit: 8855d793ee39e7f5471eac3895d20aad8922f60a
Parents: 15ead09
Author: frank <frank.zhang@citrix.com>
Authored: Thu Feb 21 11:08:58 2013 -0800
Committer: frank <frank.zhang@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;
+	}
 
 }


Mime
View raw message