# Is this a right way to change l3 plugin?

Hi

My openstack is mitaka. L3 plugin is neutron.services.l3_router.l3_router_plugin:L3RouterPlugin

When connecting a subnet with a router, I want to get the mapping relationship for (router_id: subnet). I want to get the information from L3 plugin. So I did some change in the code.

I added a method in neutron.services.l3_router.l3_router_plugin:L3RouterPlugin like below:

def add_router_interface(self, context, router_id, interface_info):
router_interface_info = super(L3RouterPlugin, self).add_router_interface(context, router_id, interface_info)