+ def set_default_ipmi_priv_level_to_all_hosts(self, def_priv):
+ for host in self.get_hosts():
+ if 'hwmgmt' not in self.config[self.ROOT][host]:
+ self.config[self.ROOT][host]['hwmgmt'] = {'priv_level': def_priv}
+ elif 'priv_level' not in self.config[self.ROOT][host]['hwmgmt']:
+ self.config[self.ROOT][host]['hwmgmt']['priv_level'] = def_priv
+