]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: fix map seq installed flag in json 14950/head
authorChirag Shah <chirag@nvidia.com>
Fri, 20 Oct 2023 05:07:15 +0000 (22:07 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Dec 2023 05:57:47 +0000 (05:57 +0000)
commit054b408b1e49b5c7c09ef28e2dc5cc0d53e7b24f
tree4064db50138242aa8cf4f948f037f6bc1f54460a
parent9434848ccf233882138faf46d5f93b7accdfbe80
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>
(cherry picked from commit 64745d413ccf0b87df540bcf9e8a2b1dcbb893e2)
pbrd/pbr_vty.c
tests/topotests/pbr_topo1/r1/pbr-map.json