From: Philippe Guibert Date: Mon, 3 Jun 2019 09:40:24 +0000 (+0200) Subject: zebra: the route nexthop interfaces per vrf were not displayed ok X-Git-Tag: base_7.2~279^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ce5a988736b5b5b1d51d520682d89d19b7ccbc1c;p=mirror%2Ffrr.git zebra: the route nexthop interfaces per vrf were not displayed ok 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 --- diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index 1ccc3bc36b..a8389f2adf 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -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: