summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-25 16:29:18 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-25 16:29:18 +0100
commit60200fdd9bcd4c8f8ed052047e55ea0baf1bb882 (patch)
treeeff29ec1f1067eafae9778165ca97bd222034d3d /pbrd
parentpimd: Replace prefix2str for JSON to %pFX (diff)
downloadfrr-60200fdd9bcd4c8f8ed052047e55ea0baf1bb882.tar.xz
frr-60200fdd9bcd4c8f8ed052047e55ea0baf1bb882.zip
pbrd: Replace prefix2str for JSON to %pFX
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_vty.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c
index dddca1d72..005e58ef3 100644
--- a/pbrd/pbr_vty.c
+++ b/pbrd/pbr_vty.c
@@ -953,13 +953,9 @@ static void vty_json_pbrms(json_object *j, struct vty *vty,
json_object_string_add(jpbrm, "vrfName", pbrms->vrf_name);
if (pbrms->src)
- json_object_string_add(
- jpbrm, "matchSrc",
- prefix2str(pbrms->src, buf, sizeof(buf)));
+ json_object_string_addf(jpbrm, "matchSrc", "%pFX", pbrms->src);
if (pbrms->dst)
- json_object_string_add(
- jpbrm, "matchDst",
- prefix2str(pbrms->dst, buf, sizeof(buf)));
+ json_object_string_addf(jpbrm, "matchDst", "%pFX", pbrms->dst);
if (pbrms->mark)
json_object_int_add(jpbrm, "matchMark", pbrms->mark);
if (pbrms->dsfield & PBR_DSFIELD_DSCP)