def set_props(self, args): args = self._attach_aux_prop(args) mod_prop_dict = Commands.parse_key_value_pairs( [args.key + '=' + args.value]) replies = self._linstor.storage_pool_dfn_modify( args.name, mod_prop_dict['pairs'], mod_prop_dict['delete']) return self.handle_replies(args, replies)
def set_props(self, args): args = self._attach_aux_prop(args) mod_prop_dict = Commands.parse_key_value_pairs([(args.key, args.value) ]) replies = self._linstor.resource_modify(args.node_name, args.name, mod_prop_dict['pairs'], mod_prop_dict['delete']) return self.handle_replies(args, replies)
def set_props(self, args): args = self._attach_aux_prop(args) mod_prop_dict = Commands.parse_key_value_pairs([(args.key, args.value)]) replies = self.get_linstorapi().node_modify( args.node_name, property_dict=mod_prop_dict['pairs'], delete_props=mod_prop_dict['delete'] ) return self.handle_replies(args, replies)
def set_props(self, args): props = Commands.parse_key_value_pairs([args.key + '=' + args.value]) replies = [] for prop_key, prop_value in props['pairs'].items(): replies.extend(self._linstor.controller_set_prop(prop_key, prop_value)) for prop_key in props['delete']: replies.extend(self._linstor.controller_del_prop(prop_key)) return self.handle_replies(args, replies)
def set_props(self, args): args = self._attach_aux_prop(args) mod_prop_dict = Commands.parse_key_value_pairs( [args.key + '=' + args.value]) replies = self._linstor.volume_dfn_modify( args.resource_name, args.volume_nr, set_properties=mod_prop_dict['pairs'], delete_properties=mod_prop_dict['delete']) return self.handle_replies(args, replies)