From b14bc217e9598578bef89707ca4febc11e0f4290 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 6 Jun 2017 11:27:07 -0700 Subject: mpm/mpmd: Dboard info is now stored in mboard info; refactored initialization --- mpm/python/usrp_mpm/periph_manager/base.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'mpm/python') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 76fd610f1..0f8415ba9 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -365,14 +365,12 @@ class PeriphManagerBase(object): result.update(self.mboard_info) return result - def get_dboards(self): + @no_claim + def get_dboard_info(self): """ - get a dict with slot: hw_pid for each dboard + Returns a list of dicts. One dict per dboard. """ - result = {} - for slot, dboard in iteritems(self.dboards): - result.update({slot:dboard.hw_pid}) - return result + return [dboard.device_info for dboard in self.dboards] def load_fpga_image(self, target=None): """ -- cgit v1.2.3