return false;
}
- if ((tmpl_da(map->lhs)->type != FR_TYPE_GROUP) &&
- (tmpl_da(map->lhs)->type != FR_TYPE_TLV)) {
- cf_log_err(map->ci, "Sublists can only be assigned to attributes of type 'group' or 'tlv'");
+ switch (tmpl_da(map->lhs)->type) {
+ case FR_TYPE_STRUCTURAL:
+ cf_log_err(map->ci, "Sublists can only be assigned to structural attributes");
return false;
+
+ default:
+ break;
}
return pass2_fixup_update_map(map->child, rules, tmpl_da(map->lhs));
*
*/
bool const fr_dict_non_data_types[FR_TYPE_MAX + 1] = {
- [FR_TYPE_TLV] = true,
+ [FR_TYPE_GROUP] = true,
[FR_TYPE_STRUCT] = true,
- [FR_TYPE_VSA] = true,
- [FR_TYPE_VENDOR] = true
+ [FR_TYPE_TLV] = true,
+ [FR_TYPE_VENDOR] = true,
+ [FR_TYPE_VSA] = true
};
/*