Lines Matching defs:attr_set
612 if msg_format.attr_set:
613 if msg_format.attr_set in self.attr_sets:
615 sub_attrs = SpaceAttrs(msg_format.attr_set, value, search_attrs)
617 attr_payload += self._add_attr(msg_format.attr_set,
620 raise Exception(f"Unknown attribute-set '{msg_format.attr_set}'")
764 if msg_format.attr_set:
765 if msg_format.attr_set in self.attr_sets:
766 subdict = self._decode(NlAttrs(attr.raw, offset), msg_format.attr_set)
769 raise Exception(f"Unknown attribute-set '{msg_format.attr_set}' when decoding '{attr_spec.name}'")
832 def _decode_extack_path(self, attrs, attr_set, offset, target, search_attrs):
835 attr_spec = attr_set.attrs_by_val[attr.type]
837 raise Exception(f"Space '{attr_set.name}' has no attribute with value '{attr.type}'")
855 sub_attrs = self.attr_sets[msg_format.attr_set]
872 msg = self.nlproto.decode(self, NlMsg(request, 0, op.attr_set), op)
874 search_attrs = SpaceAttrs(op.attr_set, vals)
875 path = self._decode_extack_path(msg.raw_attrs, op.attr_set, offset,
989 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
1060 search_attrs = SpaceAttrs(op.attr_set, vals)
1062 msg += self._add_attr(op.attr_set.name, name, value, search_attrs)
1090 nl_msg.annotate_extack(op.attr_set)
1128 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)