summaryrefslogtreecommitdiff
path: root/pbrd/pbr_nht.c
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-21 15:33:06 -0400
committerWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-27 10:28:02 -0400
commitdadba1a23f83e23c7d7f2669bcbac319bd7d4674 (patch)
treec66ec654fdb41e9dea08c7a998e1bb4f33bdf786 /pbrd/pbr_nht.c
parent81c0078ef4d0bb6471447e6eecd28663e0620cb3 (diff)
pbrd: `show` directives give arrays where appropos
The new json output for the `show pbr` directives return arrays instead of associative arrays, which are more meaningful in this context Signed-off-by: Wesley Coakley <wcoakley@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_nht.c')
-rw-r--r--pbrd/pbr_nht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c
index 30135dd9a4..4836a58792 100644
--- a/pbrd/pbr_nht.c
+++ b/pbrd/pbr_nht.c
@@ -1092,7 +1092,7 @@ static void pbr_nht_json_nhg(struct hash_bucket *b, void *data)
json_object_object_add(this_group, "nexthops", group_hops);
}
- json_object_object_add(j, pnhgc->name, this_group);
+ json_object_array_add(j, this_group);
}
void pbr_nht_show_nexthop_group(struct vty *vty, const char *name)