From 7f7111198816cbf1e0597f7ecc9f46e4c26e916b Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Tue, 11 Apr 2017 15:56:25 -0700 Subject: mpm: comment out functionality to make it work - add uio udev find routine - add debug prints Signed-off-by: Andrej Rode Signed-off-by: Moritz Fischer --- mpm/python/usrp_mpm/rpc_server.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'mpm/python/usrp_mpm/rpc_server.py') 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) -- cgit v1.2.3