def delete_router_by_name(self, rtr_name, tenant_id):
try:<EOL><INDENT>routers = self.neutronclient.list_routers()<EOL>rtr_list = routers.get('<STR_LIT>')<EOL>for rtr in rtr_list:<EOL><INDENT>if rtr_name == rtr['<STR_LIT:name>']:<EOL><INDENT>self.neutronclient.delete_router(rtr['<STR_LIT:id>'])<EOL><DEDENT><DEDENT><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT:name>': rtr_name, '<STR_LIT>': str(exc)})<EOL>return False<EOL><DEDENT>return True<EOL>
Delete the openstack router and its interfaces given its name.

        The interfaces should be already removed prior to calling this
        function.