mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:48:07 +00:00
zebra: Show prefixLen in show ip route json
output additionally
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
45c8ba8fb3
commit
24447a70d0
@ -915,6 +915,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
|
|||||||
|
|
||||||
json_object_string_add(json_route, "prefix",
|
json_object_string_add(json_route, "prefix",
|
||||||
srcdest_rnode2str(rn, buf, sizeof(buf)));
|
srcdest_rnode2str(rn, buf, sizeof(buf)));
|
||||||
|
json_object_int_add(json_route, "prefixLen", rn->p.prefixlen);
|
||||||
json_object_string_add(json_route, "protocol",
|
json_object_string_add(json_route, "protocol",
|
||||||
zebra_route_string(re->type));
|
zebra_route_string(re->type));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user