def _notify_subnet_create(resource, event, trigger, **kwargs):
context = kwargs['<STR_LIT>']<EOL>subnet = kwargs['<STR_LIT>']<EOL>l3plugin = bc.get_plugin(L3_ROUTER_NAT)<EOL>for router in l3plugin.get_routers(context):<EOL><INDENT>if (router['<STR_LIT>'] and<EOL>(router['<STR_LIT>']['<STR_LIT>'] ==<EOL>subnet['<STR_LIT>'])):<EOL><INDENT>router_data = {'<STR_LIT>': router}<EOL>l3plugin.update_router(context, router['<STR_LIT:id>'], router_data)<EOL><DEDENT><DEDENT>
Called when a new subnet is created in the external network