import os
import tempfile
-import sfa.client.xmlrpcprotocol as xmlrpcprotocol
+from sfa.client.sfaserverproxy import SfaServerProxy
from sfa.plc.nodemanager import NodeManager
from sfa.trust.credential import Credential
addr, port = self.config.SFA_REGISTRY_HOST, self.config.SFA_REGISTRY_PORT
url = "http://%(addr)s:%(port)s" % locals()
### xxx this would require access to the api...
- server = xmlrpcprotocol.server_proxy(url, self.key_file, self.cert_file)
+ server = SfaServerProxy(url, self.key_file, self.cert_file)
return server
def get_node_key(self):
cert.save_to_file(certfile)
registry = self.get_registry()
# the registry will scp the key onto the node
- registry.get_key()
+ registry.get_key_from_incoming_ip()
# override the method in SfaApi
def getCredential(self):