mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 17:52:19 +00:00
zebra: Display afi of the nexthop hash entry
Let's display the afi of the nexthop hash entry. Right now it is impossible to tell the difference between v4 or v6 nexthops, especially since it is important for the kernel. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
ac2d9bae5c
commit
c10cdcd79a
@ -1195,6 +1195,7 @@ static void show_nexthop_group_out(struct vty *vty, struct nhg_hash_entry *nhe,
|
||||
json_object_string_add(json, "uptime", up_str);
|
||||
json_object_string_add(json, "vrf",
|
||||
vrf_id_to_name(nhe->vrf_id));
|
||||
json_object_string_add(json, "afi", afi2str(nhe->afi));
|
||||
|
||||
} else {
|
||||
vty_out(vty, "ID: %u (%s)\n", nhe->id,
|
||||
@ -1208,7 +1209,8 @@ static void show_nexthop_group_out(struct vty *vty, struct nhg_hash_entry *nhe,
|
||||
vty_out(vty, "\n");
|
||||
|
||||
vty_out(vty, " Uptime: %s\n", up_str);
|
||||
vty_out(vty, " VRF: %s\n", vrf_id_to_name(nhe->vrf_id));
|
||||
vty_out(vty, " VRF: %s(%s)\n", vrf_id_to_name(nhe->vrf_id),
|
||||
afi2str(nhe->afi));
|
||||
}
|
||||
|
||||
if (CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_VALID)) {
|
||||
|
Loading…
Reference in New Issue
Block a user