summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-08-19 12:15:56 -0400
committerGitHub <noreply@github.com>2020-08-19 12:15:56 -0400
commitcfc0a51f96dde1cad1a360b20235541b915035ee (patch)
tree006c528cc6636095738726ae1755d8e0dd1195c8
parentdbe45aa73384d302cbc4692d9a3b505174a64465 (diff)
parentc40e9806011eb4475e6dd7c41234376f944cb904 (diff)
Merge pull request #6939 from sworleys/NH-Vrf-Del
lib: fix crash in show nexthop when vrf deleted
-rw-r--r--lib/nexthop_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c
index 97815ceeb9..8ae001e42a 100644
--- a/lib/nexthop_group.c
+++ b/lib/nexthop_group.c
@@ -986,7 +986,7 @@ void nexthop_group_write_nexthop(struct vty *vty, const struct nexthop *nh)
if (nh->vrf_id != VRF_DEFAULT) {
vrf = vrf_lookup_by_id(nh->vrf_id);
- vty_out(vty, " nexthop-vrf %s", vrf->name);
+ vty_out(vty, " nexthop-vrf %s", VRF_LOGNAME(vrf));
}
if (nh->nh_label && nh->nh_label->num_labels > 0) {