Lines Matching refs:set
832 self.hooks[when][op_mode]['set'] = set()
835 # dict space-name -> 'request': set(attrs), 'reply': set(attrs)
837 # dict space-name -> set('request', 'reply')
877 if 'attribute-set' not in op:
880 req_attrs = set()
881 rsp_attrs = set()
884 req_attrs.update(set(op[op_mode]['request']['attributes']))
886 rsp_attrs.update(set(op[op_mode]['reply']['attributes']))
888 rsp_attrs.update(set(op['event']['attributes']))
890 if op['attribute-set'] not in self.root_sets:
891 self.root_sets[op['attribute-set']] = {'request': req_attrs, 'reply': rsp_attrs}
893 self.root_sets[op['attribute-set']]['request'].update(req_attrs)
894 self.root_sets[op['attribute-set']]['reply'].update(rsp_attrs)
898 attr_set_seen = set(self.root_sets.keys())
911 inherit = set()
916 raise Exception(f'Using attr set as root and nested not supported - {nested}')
921 inherit.update(set(spec['type-value']))
937 pns_key_seen = set()
966 global_set = set()
971 if 'attribute-set' not in op:
975 attr_set_name = op['attribute-set']
976 if attr_set_name != op['attribute-set']:
977 raise Exception('For a global policy all ops must use the same set')
1000 if name in self.hooks[when][op_mode]['set']:
1002 self.hooks[when][op_mode]['set'].add(name)
1024 self.attr_set = op['attribute-set']
1431 array_nests = set()
1432 multi_attrs = set()
2002 struct = Struct(family, op['attribute-set'],
2043 struct = Struct(family, op['attribute-set'],