Merge pull request #4445 from pguibert6WIND/display_show_nht_if_not_found

zebra: the route nexthop interfaces per vrf were not displayed ok
This commit is contained in:
Donald Sharp 2019-06-03 07:14:54 -04:00 committed by GitHub
commit ecccf2275a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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: