def remove_rtr_nwk_next_hop(self, rout_id, next_hop, subnet_lst,<EOL>excl_list):
namespace = self.find_rtr_namespace(rout_id)<EOL>if namespace is None:<EOL><INDENT>LOG.error("<STR_LIT>", rout_id)<EOL>return False<EOL><DEDENT>args = ['<STR_LIT>', '<STR_LIT>']<EOL>ret = self.program_rtr_return(args, rout_id, namespace=namespace)<EOL>if ret is None:<EOL><INDENT>LOG.error("<STR_LIT>", rout_id)<EOL>return False<EOL><DEDENT>routes = ret.split('<STR_LIT:\n>')<EOL>concat_lst = subnet_lst + excl_list<EOL>for rout in routes:<EOL><INDENT>if len(rout) == <NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>nwk = rout.split()[<NUM_LIT:0>]<EOL>if nwk == '<STR_LIT:default>':<EOL><INDENT>continue<EOL><DEDENT>nwk_no_mask = nwk.split('<STR_LIT:/>')[<NUM_LIT:0>]<EOL>if nwk_no_mask not in concat_lst and nwk not in concat_lst:<EOL><INDENT>args = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', nwk, '<STR_LIT>', next_hop]<EOL>ret = self.program_rtr(args, rout_id, namespace=namespace)<EOL>if not ret:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>rout_id)<EOL>return False<EOL><DEDENT><DEDENT><DEDENT>return True<EOL>
Remove the next hop for all networks of a tenant.