mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 22:10:19 +00:00
pbrd: Convert vty_out to vty_json for JSON
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
129f563865
commit
760441ea3a
@ -1038,10 +1038,7 @@ DEFPY (show_pbr_map,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (j) {
|
if (j) {
|
||||||
vty_out(vty, "%s\n",
|
vty_json(vty, j);
|
||||||
json_object_to_json_string_ext(
|
|
||||||
j, JSON_C_TO_STRING_PRETTY));
|
|
||||||
json_object_free(j);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
@ -1064,11 +1061,7 @@ DEFPY(show_pbr_nexthop_group,
|
|||||||
if (j) {
|
if (j) {
|
||||||
pbr_nht_json_nexthop_group(j, word);
|
pbr_nht_json_nexthop_group(j, word);
|
||||||
|
|
||||||
vty_out(vty, "%s\n",
|
vty_json(vty, j);
|
||||||
json_object_to_json_string_ext(
|
|
||||||
j, JSON_C_TO_STRING_PRETTY));
|
|
||||||
|
|
||||||
json_object_free(j);
|
|
||||||
} else
|
} else
|
||||||
pbr_nht_show_nexthop_group(vty, word);
|
pbr_nht_show_nexthop_group(vty, word);
|
||||||
|
|
||||||
@ -1143,10 +1136,7 @@ DEFPY (show_pbr_interface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (j) {
|
if (j) {
|
||||||
vty_out(vty, "%s\n",
|
vty_json(vty, j);
|
||||||
json_object_to_json_string_ext(
|
|
||||||
j, JSON_C_TO_STRING_PRETTY));
|
|
||||||
json_object_free(j);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user