removing
[sfa.git] / sfacomponent / plc / api.py
diff --git a/sfacomponent/plc/api.py b/sfacomponent/plc/api.py
deleted file mode 100644 (file)
index 7d581b4..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#
-# SFA XML-RPC and SOAP interfaces
-#
-### $Id: api.py 15596 2009-10-31 21:42:05Z anil $
-### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/plc/api.py $
-#
-
-import sys
-import os
-import traceback
-from xmlrpclib import ServerProxy
-from sfa.util.api import *
-
-
-class ComponentAPI(BaseAPI):
-
-    
-    def __init__(self, config = "/etc/sfa/sfa_config", encoding = "utf-8", methods='sfacomponent.methods',
-                 peer_cert = None, interface = None, key_file = None, cert_file = None):
-
-        BaseAPI.__init__(self, config=config, encoding=encoding, methods=methods, peer_cert=peer_cert, 
-                         interface=interface, key_file=key_file, cert_file=cert_file) 
-        self.encoding = encoding
-
-        # Better just be documenting the API
-        if config is None:
-            return
-
-        self.nodemanager = self.getNodeManagerShell()
-
-
-
-    def getNodeManagerShell(self):
-        # do we need an auth ?
-        auth = {}
-        try:
-            nodemanager = xmlrpclib.ServerProxy('http://127.0.0.1:812')   
-        except:
-            raise
-
-        return nodemanager
-
-    def sliver_exists(self):
-        sliver_dict = self.nodemanager.GetXIDs()
-        if slicename in sliver_dict.keys():
-            return True
-        else:
-            return False
-