aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/rpc_server.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-11-15 17:21:27 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:06 -0800
commitb12b9465ed13bf2eb7c0fe379c22dcb3b86c4054 (patch)
tree26301f6017b45756be1c6f6df51be07debef5ce3 /mpm/python/usrp_mpm/rpc_server.py
parentd327a93530033a3e9f08f797e1b04f4357401e8e (diff)
downloaduhd-b12b9465ed13bf2eb7c0fe379c22dcb3b86c4054.tar.gz
uhd-b12b9465ed13bf2eb7c0fe379c22dcb3b86c4054.tar.bz2
uhd-b12b9465ed13bf2eb7c0fe379c22dcb3b86c4054.zip
mpm/mpmd: Move to request_xport()/commit_xport() architecture
This commit combines code from various branches to finally enable both UDP and Liberio transports.
Diffstat (limited to 'mpm/python/usrp_mpm/rpc_server.py')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index 10d37a3d7..2cd44dfe5 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -54,7 +54,7 @@ class MPMServer(RPCServer):
RPC calls to appropiate calls in the periph_manager and dboard_managers.
"""
# This is a list of methods in this class which require a claim
- default_claimed_methods = ['init', 'reclaim', 'unclaim', 'allocate_sid']
+ default_claimed_methods = ['init', 'reclaim', 'unclaim']
def __init__(self, state, mgr, *args, **kwargs):
self.log = get_main_logger().getChild('RPCServer')
@@ -332,20 +332,6 @@ class MPMServer(RPCServer):
"""
return self._last_error
- def allocate_sid(self, token, *args):
- """
- Forwards the call to periph_manager._allocate_sid with the client ip addresss
- as argument. Should be used to setup interfaces
- """
- if not self._check_token_valid(token):
- self.log.warning("Attempt to allocate SID without valid token!")
- return None
- try:
- return self.periph_manager._allocate_sid(self.client_host, *args)
- except Exception as ex:
- self._last_error = str(ex)
- self.log.error("allocate_sid() failed: %s", str(ex))
- raise
def _rpc_server_process(shared_state, port, mgr):