]> git.proxmox.com Git - mirror_frr.git/commitdiff
babeld: Fixup redistribution display
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 03:55:41 +0000 (23:55 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 03:55:41 +0000 (23:55 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
babeld/babeld.c

index 1af20c3e649f7db67c9cef3befd74f998454e6cc..e38c7ed50a1baced74d930780394169b620a919c 100644 (file)
@@ -110,7 +110,8 @@ babel_config_write (struct vty *vty)
     lines = 1 + babel_enable_if_config_write (vty);
     /* list redistributed protocols */
     for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
-        if (i != zclient->redist_default && zclient->redist[i])
+        if (i != zclient->redist_default &&
+           vrf_bitmap_check (zclient->redist[AFI_IP][i], VRF_DEFAULT))
         {
             vty_out (vty, " redistribute %s%s", zebra_route_string (i), VTY_NEWLINE);
             lines++;