diff options
author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2023-10-23 07:59:06 +0200 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2023-10-27 17:07:38 +0200 |
commit | d621c365a65f825adfbc00128360390d0b2bd5be (patch) | |
tree | 23d57f6874ada76fccad687f425cdff0e766cd3a /pbrd | |
parent | Merge pull request #14662 from opensourcerouting/fix/drop_broken_tests (diff) | |
download | frr-d621c365a65f825adfbc00128360390d0b2bd5be.tar.xz frr-d621c365a65f825adfbc00128360390d0b2bd5be.zip |
pbrd: fix show pbr map detail json
'detail' and 'josn' keyword is given as an optional parameter
for cli arguments. Hence 'detail' keyword was consider as a
pbr 'name' for "show pbr map detail json" command.
Before Fix:
```
cumulus#
cumulus# show pbr map detail json
[
]
cumulus#
```
After Fix:
```
cumulus# show pbr map detail json
[
{
"name":"MAP1",
"valid":false,
"policies":[
{
"id":1,
"sequenceNumber":10,
"ruleNumber":309,
"vrfUnchanged":false,
"installed":false,
"installedReason":"Invalid Src or Dst",
"vrfName":"default"
}
]
}
]
cumulus#
```
Ticket:#3638600
Issue:3638600
Testing: UT done
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 582ffac9b..9589e5be2 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -1818,7 +1818,7 @@ static void vty_json_pbr_map(json_object *j, struct vty *vty, DEFPY (show_pbr_map, show_pbr_map_cmd, - "show pbr map [NAME$name] [detail$detail|json$json]", + "show pbr map [NAME$name] [detail$detail] [json$json]", SHOW_STR PBR_STR "PBR Map\n" |