]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: api.vrf_id should be re->vrf_id 1165/head
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 12 Sep 2017 18:03:07 +0000 (11:03 -0700)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 12 Sep 2017 18:03:07 +0000 (11:03 -0700)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
This fixes route redistribution for VRFs

zebra/zserv.c

index ef289f3960cf160667af1c838bfb956aa47b4fa2..61a75e156ce4657ada7deabceed12bd16d55c552 100644 (file)
@@ -601,7 +601,7 @@ int zsend_redistribute_route(int cmd, struct zserv *client, struct prefix *p,
        int count = 0;
 
        memset(&api, 0, sizeof(api));
-       api.vrf_id = VRF_DEFAULT;
+       api.vrf_id = re->vrf_id;
        api.type = re->type;
        api.instance = re->instance;
        api.flags = re->flags;