mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
Merge pull request #12047 from donaldsharp/bgp_nexthop_individual
bgpd: Fix `show bgp nexthop A.B.C.D`
This commit is contained in:
commit
4b72a7be69
@ -919,7 +919,7 @@ static int show_ip_bgp_nexthop_table(struct vty *vty, const char *name,
|
|||||||
}
|
}
|
||||||
tree = import_table ? &bgp->import_check_table
|
tree = import_table ? &bgp->import_check_table
|
||||||
: &bgp->nexthop_cache_table;
|
: &bgp->nexthop_cache_table;
|
||||||
bnc = bnc_find(tree[family2afi(nhop.family)], &nhop, 0, 0);
|
bnc = bnc_find(&(*tree)[family2afi(nhop.family)], &nhop, 0, 0);
|
||||||
if (!bnc) {
|
if (!bnc) {
|
||||||
vty_out(vty, "specified nexthop does not have entry\n");
|
vty_out(vty, "specified nexthop does not have entry\n");
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user