]> git.proxmox.com Git - mirror_frr.git/commitdiff
ripd: Fix redistribute/no redistribute rinse repeate commands
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Dec 2019 23:48:06 +0000 (18:48 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Dec 2019 23:49:08 +0000 (18:49 -0500)
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>
ripd/rip_zebra.c

index 90ee667f05a104d0a624ed6c1f7d8d20bb192285..e07d218860b522f0c03a97931fac5c20110f09ba 100644 (file)
@@ -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)