diff options
author | Chirag Shah <chirag@nvidia.com> | 2023-10-20 07:07:15 +0200 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2023-12-05 20:30:50 +0100 |
commit | 64745d413ccf0b87df540bcf9e8a2b1dcbb893e2 (patch) | |
tree | 2f3b1fbd1d8d6277328dbd989d09b6e5de0423af /pbrd | |
parent | Merge pull request #14870 from opensourcerouting/ospfd-shutdown-leaks (diff) | |
download | frr-64745d413ccf0b87df540bcf9e8a2b1dcbb893e2.tar.xz frr-64745d413ccf0b87df540bcf9e8a2b1dcbb893e2.zip |
pbrd: fix map seq installed flag in json
Ticket:#3638598
Testing:
Post fix:
tor-2# show pbr map json
[
{
"name":"global-vrf-PBR-map",
"valid":true,
"policies":[
{
"id":1,
"sequenceNumber":10,
"ruleNumber":309,
"vrfUnchanged":false,
"installed":true, <<<< now display correct value
"installedReason":"Valid",
"vrfName":"sym_1",
"matchSrc":"10.1.200.0\/24",
"matchDst":"10.6.200.0\/24"
}
]
}
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_vty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 9589e5be2..64d88847c 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -1667,8 +1667,7 @@ static void vty_json_pbrms(json_object *j, struct vty *vty, json_object_int_add(jpbrm, "sequenceNumber", pbrms->seqno); json_object_int_add(jpbrm, "ruleNumber", pbrms->ruleno); json_object_boolean_add(jpbrm, "vrfUnchanged", pbrms->vrf_unchanged); - json_object_boolean_add(jpbrm, "installed", - pbr_nht_get_installed(nhg_name)); + json_object_boolean_add(jpbrm, "installed", pbrms->installed); json_object_string_add(jpbrm, "installedReason", pbrms->reason ? rbuf : "Valid"); |