From 0277c4d71200bdbec332c59117d426f7ae771990 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 13 Jul 2017 17:35:29 -0400 Subject: [PATCH] babeld: Allow babel to redistribute v6 routes 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 --- babeld/babel_zebra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c index 3a7a52ccca..438dc99119 100644 --- a/babeld/babel_zebra.c +++ b/babeld/babel_zebra.c @@ -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; }