removed reboot
authorTony Mack <tmack@cs.princeton.edu>
Thu, 5 Aug 2010 00:27:01 +0000 (00:27 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 5 Aug 2010 00:27:01 +0000 (00:27 +0000)
sfa/managers/component_manager_pl.py
sfa/methods/__init__.py
sfa/methods/reboot.py [deleted file]

index 879daf1..c26ca4d 100644 (file)
@@ -58,9 +58,6 @@ def get_slices(api):
     slices = eval(xids[1])
     return slices.keys()
 
-def reboot():
-    os.system("/sbin/reboot")        
-
 def redeem_ticket(api, ticket_string):
     ticket = SfaTicket(string=ticket_string)
     ticket.decode()
index a4e3d3f..bbff898 100644 (file)
@@ -13,7 +13,6 @@ get_slices
 get_ticket
 get_trusted_certs
 list
-reboot
 redeem_ticket
 register
 register_peer_object
diff --git a/sfa/methods/reboot.py b/sfa/methods/reboot.py
deleted file mode 100644 (file)
index ae9e9b5..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-### $Id: reboot.py 15428 2009-10-23 15:28:03Z tmack $
-### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfacomponent/methods/reboot.py $
-import os
-from sfa.util.faults import *
-from sfa.util.method import Method
-from sfa.util.parameter import Parameter, Mixed
-
-class reboot(Method):
-    """
-    Reboot the component       
-
-    @param cred credential string specifying the rights of the caller
-    @return None  
-    """
-
-    interfaces = ['component']
-    
-    accepts = [
-        Parameter(str, "Credential string"),
-        ]
-
-    returns = None
-    
-    def call(self, cred):
-        # validate the cred 
-        self.api.auth.check(cred, 'reboot')
-        # send the call to the right manager
-        manager_base = 'sfa.managers'
-        mgr_type = self.api.config.SFA_CM_TYPE
-        manager_module = manager_base + ".component_manager_%s" % mgr_type
-        manager = __import__(manager_module, fromlist=[manager_base])
-        manager.reboot()