]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: the route nexthop interfaces per vrf were not displayed ok 4445/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 3 Jun 2019 09:40:24 +0000 (11:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 3 Jun 2019 09:44:00 +0000 (11:44 +0200)
the interface search done was not looking in the appropriate zns. The
display was then wrong. Update the show command with the correct zns.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_rnh.c

index 1ccc3bc36b1ba7c339ae9d0327da6e402c2b824f..a8389f2adf4bc36040396d307dfb9f6fa6e392a8 100644 (file)
@@ -1132,7 +1132,7 @@ static int send_client(struct rnh *rnh, struct zserv *client, rnh_type_t type,
 static void print_nh(struct nexthop *nexthop, struct vty *vty)
 {
        char buf[BUFSIZ];
-       struct zebra_ns *zns = zebra_ns_lookup(NS_DEFAULT);
+       struct zebra_ns *zns = zebra_ns_lookup(nexthop->vrf_id);
 
        switch (nexthop->type) {
        case NEXTHOP_TYPE_IPV4: