def cache(self, link, nav):
        if link is None:
            return  # We don't cache navigators without a Link
        elif hasattr(link, 'uri'):
            self.id_map[link.uri] = nav
        else:
            self.id_map[link] = nav
Parses `dmidecode` output.
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/APICore.cache--crossover with--dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py/parse_dmidecode