summaryrefslogtreecommitdiffstats
path: root/babeld/babel_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-14 04:52:15 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-14 04:52:15 +0200
commit0eb167b9f10efaee837efb163dc6d35b7aab1735 (patch)
tree39c2c9c1406534e25e10ff5a50bc852cedf17913 /babeld/babel_zebra.c
parentbabeld: Cleanup xroute_stream (diff)
downloadfrr-0eb167b9f10efaee837efb163dc6d35b7aab1735.tar.xz
frr-0eb167b9f10efaee837efb163dc6d35b7aab1735.zip
babeld: Cleanup some more compiler warnings
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/babel_zebra.c')
-rw-r--r--babeld/babel_zebra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c
index bec37c4e2..537158ec4 100644
--- a/babeld/babel_zebra.c
+++ b/babeld/babel_zebra.c
@@ -86,7 +86,7 @@ struct cmd_node zebra_node =
/* Zebra route add and delete treatment (ipv6). */
static int
babel_zebra_read_ipv6 (int command, struct zclient *zclient,
- zebra_size_t length)
+ zebra_size_t length, vrf_id_t vrf)
{
struct stream *s;
struct zapi_ipv6 api;
@@ -138,7 +138,7 @@ babel_zebra_read_ipv6 (int command, struct zclient *zclient,
static int
babel_zebra_read_ipv4 (int command, struct zclient *zclient,
- zebra_size_t length)
+ zebra_size_t length, vrf_id_t vrf)
{
struct stream *s;
struct zapi_ipv4 api;
@@ -378,7 +378,7 @@ zebra_config_write (struct vty *vty)
vty_out (vty, "no router zebra%s", VTY_NEWLINE);
return 1;
}
- else if (! zclient->redist[ZEBRA_ROUTE_BABEL])
+ else if (! vrf_bitmap_check (zclient->redist[AFI_IP][ZEBRA_ROUTE_BABEL], VRF_DEFAULT))
{
vty_out (vty, "router zebra%s", VTY_NEWLINE);
vty_out (vty, " no redistribute babel%s", VTY_NEWLINE);