def get_notifiers(self, context, routers):
res = {<EOL>AGENT_TYPE_L3: {<EOL>'<STR_LIT>': self.agent_notifiers.get(AGENT_TYPE_L3),<EOL>'<STR_LIT>': []},<EOL>AGENT_TYPE_L3_CFG: {<EOL>'<STR_LIT>': self.agent_notifiers.get(AGENT_TYPE_L3_CFG),<EOL>'<STR_LIT>': []}}<EOL>for router in routers:<EOL><INDENT>if (router[routertype.TYPE_ATTR] ==<EOL>self.get_namespace_router_type_id(context)):<EOL><INDENT>res[AGENT_TYPE_L3]['<STR_LIT>'].append(router['<STR_LIT:id>'])<EOL><DEDENT>else:<EOL><INDENT>res[AGENT_TYPE_L3_CFG]['<STR_LIT>'].append(router)<EOL><DEDENT><DEDENT>return [v for k, v in res.items() if v['<STR_LIT>']]<EOL>
Determines notifier to use for routers.

        @params: context - context
        @params: routers - list of router dict that includes router type id

        @returns: list of dicts - [{'notifier': notifier_object_1,
                                    'routers': list_1 of router dicts or
                                               router uuids},
                                   {'notifier': notifier_object_2,
                                    'routers': list_2 of router dicts or
                                               router uuids},
                                   ...]