]> git.puffer.fish Git - matthieu/frr.git/commitdiff
babeld: Allow babel to redistribute v6 routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Jul 2017 21:35:29 +0000 (17:35 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Jul 2017 21:35:29 +0000 (17:35 -0400)
Turn on the ability in babel to receive v6 routes when requested.

robot# show babel route
192.168.201.0/24 metric 0 (exported)
2606:a000:111d:803e::/64 metric 0 (exported)
robot# conf t
robot(config)# int enp3s0
robot(config-if)# ipv6 addr 2404:4000:991d:804c:c32:ee94:742c:4d5/73
robot(config-if)# end
robot# show babel route
192.168.201.0/24 metric 0 (exported)
2606:a000:111d:803e::/64 metric 0 (exported)
2404:4000:991d:804c:c00::/73 metric 0 (exported)
robot#

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
babeld/babel_zebra.c

index 3a7a52cccadbfb2c2a0c6e4ef260d67fb650e29c..438dc9911970afc92d9beff299251eb442345eb4 100644 (file)
@@ -227,6 +227,7 @@ DEFUN (babel_redistribute_type,
     }
 
     zclient_redistribute (ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP, type, 0, VRF_DEFAULT);
+    zclient_redistribute (ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP6, type, 0, VRF_DEFAULT);
     return CMD_SUCCESS;
 }
 
@@ -248,6 +249,7 @@ DEFUN (no_babel_redistribute_type,
     }
 
     zclient_redistribute (ZEBRA_REDISTRIBUTE_DELETE, zclient, AFI_IP, type, 0, VRF_DEFAULT);
+    zclient_redistribute (ZEBRA_REDISTRIBUTE_DELETE, zclient, AFI_IP6, type, 0, VRF_DEFAULT);
     /* perhaps should we remove xroutes having the same type... */
     return CMD_SUCCESS;
 }