def attach_intf_router(self, tenant_id, tenant_name, router_id):
in_sub = self.get_in_subnet_id(tenant_id)<EOL>out_sub = self.get_out_subnet_id(tenant_id)<EOL>subnet_lst = set()<EOL>subnet_lst.add(in_sub)<EOL>subnet_lst.add(out_sub)<EOL>ret = self.os_helper.add_intf_router(router_id, tenant_id, subnet_lst)<EOL>return ret, in_sub, out_sub<EOL>
Routine to attach the interface to the router.