diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-06 11:27:07 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | b14bc217e9598578bef89707ca4febc11e0f4290 (patch) | |
tree | 481832a44c5466386b4f5ff25fdd8b3b0e1b2b23 /mpm | |
parent | eb4a0cb6ebcff0bf3844df690a2d7653700211f2 (diff) | |
download | uhd-b14bc217e9598578bef89707ca4febc11e0f4290.tar.gz uhd-b14bc217e9598578bef89707ca4febc11e0f4290.tar.bz2 uhd-b14bc217e9598578bef89707ca4febc11e0f4290.zip |
mpm/mpmd: Dboard info is now stored in mboard info; refactored initialization
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 10 |
1 files changed, 4 insertions, 6 deletions
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): """ |