diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-13 23:35:29 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-13 23:35:29 +0200 |
commit | 0277c4d71200bdbec332c59117d426f7ae771990 (patch) | |
tree | 4f31b1e72f51e7876946b4a27a936a9c1568f09b /babeld/babel_zebra.c | |
parent | Merge pull request #807 from Jafaral/qua2frr (diff) | |
download | frr-0277c4d71200bdbec332c59117d426f7ae771990.tar.xz frr-0277c4d71200bdbec332c59117d426f7ae771990.zip |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/babel_zebra.c')
-rw-r--r-- | babeld/babel_zebra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c index 3a7a52ccc..438dc9911 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; } |