mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
Merge pull request #6939 from sworleys/NH-Vrf-Del
lib: fix crash in show nexthop when vrf deleted
This commit is contained in:
commit
cfc0a51f96
@ -986,7 +986,7 @@ void nexthop_group_write_nexthop(struct vty *vty, const struct nexthop *nh)
|
|||||||
|
|
||||||
if (nh->vrf_id != VRF_DEFAULT) {
|
if (nh->vrf_id != VRF_DEFAULT) {
|
||||||
vrf = vrf_lookup_by_id(nh->vrf_id);
|
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) {
|
if (nh->nh_label && nh->nh_label->num_labels > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user