summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_rnh.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-06-03 11:40:24 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-06-03 11:44:00 +0200
commitce5a988736b5b5b1d51d520682d89d19b7ccbc1c (patch)
tree0719329bd39455560bdf3f0d8f47cca3d88d9da4 /zebra/zebra_rnh.c
parentMerge pull request #4442 from opensourcerouting/libtool-doc (diff)
downloadfrr-ce5a988736b5b5b1d51d520682d89d19b7ccbc1c.tar.xz
frr-ce5a988736b5b5b1d51d520682d89d19b7ccbc1c.zip
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 <philippe.guibert@6wind.com>
Diffstat (limited to '')
-rw-r--r--zebra/zebra_rnh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c
index 1ccc3bc36..a8389f2ad 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: