Merge pull request #6939 from sworleys/NH-Vrf-Del

lib: fix crash in show nexthop when vrf deleted
This commit is contained in:
Mark Stapp 2020-08-19 12:15:56 -04:00 committed by GitHub
commit cfc0a51f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {