def get_rtr_by_name(self, rtr_name):
upd_rtr_list = []<EOL>try:<EOL><INDENT>rtr_list = self.neutronclient.list_routers()<EOL>for rtr in rtr_list.get('<STR_LIT>'):<EOL><INDENT>if rtr_name == rtr['<STR_LIT:name>']:<EOL><INDENT>upd_rtr_list.append(rtr)<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><DEDENT>return upd_rtr_list<EOL>
Search a router by its name.