Cluster: add nicparams, and update them on upgrade
[ganeti-local] / daemons / ganeti-noded
index 21b9b50..c29db72 100755 (executable)
@@ -552,6 +552,15 @@ class NodeHttpServer(http.server.HttpServer):
     return backend.DemoteFromMC()
 
 
+  @staticmethod
+  def perspective_node_powercycle(params):
+    """Tries to powercycle the nod.
+
+    """
+    hypervisor_type = params[0]
+    return backend.PowercycleNode(hypervisor_type)
+
+
   # cluster --------------------------
 
   @staticmethod