diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:29:18 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:29:18 +0100 |
commit | 60200fdd9bcd4c8f8ed052047e55ea0baf1bb882 (patch) | |
tree | eff29ec1f1067eafae9778165ca97bd222034d3d /pbrd | |
parent | pimd: Replace prefix2str for JSON to %pFX (diff) | |
download | frr-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.c | 8 |
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) |