diff options
| author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2023-10-22 22:59:06 -0700 | 
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2023-10-27 08:07:38 -0700 | 
| commit | d621c365a65f825adfbc00128360390d0b2bd5be (patch) | |
| tree | 23d57f6874ada76fccad687f425cdff0e766cd3a | |
| parent | 2fef2017edf9f1dfe85a8019379ffddd6978a343 (diff) | |
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>
| -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 582ffac9b2..9589e5be23 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"  | 
