mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +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) {
|
||||
vty_out(vty, "%s\n",
|
||||
json_object_to_json_string_ext(
|
||||
j, JSON_C_TO_STRING_PRETTY));
|
||||
json_object_free(j);
|
||||
vty_json(vty, j);
|
||||
}
|
||||
|
||||
return CMD_SUCCESS;
|
||||
@ -1064,11 +1061,7 @@ DEFPY(show_pbr_nexthop_group,
|
||||
if (j) {
|
||||
pbr_nht_json_nexthop_group(j, word);
|
||||
|
||||
vty_out(vty, "%s\n",
|
||||
json_object_to_json_string_ext(
|
||||
j, JSON_C_TO_STRING_PRETTY));
|
||||
|
||||
json_object_free(j);
|
||||
vty_json(vty, j);
|
||||
} else
|
||||
pbr_nht_show_nexthop_group(vty, word);
|
||||
|
||||
@ -1143,10 +1136,7 @@ DEFPY (show_pbr_interface,
|
||||
}
|
||||
|
||||
if (j) {
|
||||
vty_out(vty, "%s\n",
|
||||
json_object_to_json_string_ext(
|
||||
j, JSON_C_TO_STRING_PRETTY));
|
||||
json_object_free(j);
|
||||
vty_json(vty, j);
|
||||
}
|
||||
|
||||
return CMD_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user