Skip to content

Commit

Permalink
ripd: Fix redistribute/no redistribute rinse repeate commands
Browse files Browse the repository at this point in the history
ripd was using zclient_redistribute for installation but not
for removal.  As such the lib/zclient.c was not properly tracking
add/removal.  I think it would be best to just let rip to track
this instead of zclient.

Fixes: #5599
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Dec 31, 2019
1 parent 2afebed commit ad21f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ripd/rip_zebra.c
Expand Up @@ -151,8 +151,8 @@ static int rip_zebra_read_route(ZAPI_CALLBACK_ARGS)

void rip_redistribute_conf_update(struct rip *rip, int type)
{
zclient_redistribute(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP, type,
0, rip->vrf->vrf_id);
zebra_redistribute_send(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP,
type, 0, rip->vrf->vrf_id);
}

void rip_redistribute_conf_delete(struct rip *rip, int type)
Expand Down

0 comments on commit ad21f67

Please sign in to comment.