aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/rpc_server.py
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-04-11 15:56:25 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:45 -0800
commit7f7111198816cbf1e0597f7ecc9f46e4c26e916b (patch)
tree7a74ecf77569b07364de278822873d7ce1f82185 /mpm/python/usrp_mpm/rpc_server.py
parentf27cb2a7711e428a88c59a5af762055c7f1e3e13 (diff)
downloaduhd-7f7111198816cbf1e0597f7ecc9f46e4c26e916b.tar.gz
uhd-7f7111198816cbf1e0597f7ecc9f46e4c26e916b.tar.bz2
uhd-7f7111198816cbf1e0597f7ecc9f46e4c26e916b.zip
mpm: comment out functionality to make it work
- add uio udev find routine - add debug prints Signed-off-by: Andrej Rode <andrej.rode@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'mpm/python/usrp_mpm/rpc_server.py')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index f712c5c87..df73b1ab0 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -185,20 +185,18 @@ class MPMServer(RPCServer):
This is as safe method which can be called without a claim on the device
"""
info = self.periph_manager._get_device_info()
- if self.host in ["127.0.0.1", "::1"]:
+ if self.client_host in ["127.0.0.1", "::1"]:
info["connection"] = "local"
else:
info["connection"] = "remote"
return info
- def probe_interface(self, token):
+ def allocate_sid(self, token, *args):
"""
- Forwards the call to periph_manager._probe_interface with the client ip addresss
- as argument. Should be used to probe the data interfaces on the device
+ Forwards the call to periph_manager._allocate_sid with the client ip addresss
+ as argument. Should be used to setup interfaces
"""
- if token[:256] != self._state.claim_token.value:
- return False
- return self.periph_manager._probe_interface(self.host)
+ return self.periph_manager._allocate_sid(self.client_host, *args)