]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripngd: Fix redistribute/no redistribute rinse repeat commands
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Dec 2019 23:41:16 +0000 (18:41 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Dec 2019 23:48:54 +0000 (18:48 -0500)
ripngd 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 ripng to track
this instead of zclient.

Fixes: #5599
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ripngd/ripng_zebra.c

index fa61d69caae5863a16c63961928982dfdc843cc2..f9bd56d1dfd1636536d766eb5d686b39ace01386 100644 (file)
@@ -152,8 +152,8 @@ static int ripng_zebra_read_route(ZAPI_CALLBACK_ARGS)
 
 void ripng_redistribute_conf_update(struct ripng *ripng, int type)
 {
-       zclient_redistribute(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP6, type, 0,
-                            ripng->vrf->vrf_id);
+       zebra_redistribute_send(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP6,
+                               type, 0, ripng->vrf->vrf_id);
 }
 
 void ripng_redistribute_conf_delete(struct ripng *ripng, int type)