summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_nht.h
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-20 16:49:54 +0200
committerWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-27 16:28:02 +0200
commit010dd8edcb4e1fec3c252570efbf98ac1a02a34a (patch)
tree277a8ced1057a080000fc04e1f42bd6bce7f36bb /pbrd/pbr_nht.h
parentpbrd: optional json for `show pbr map` (diff)
downloadfrr-010dd8edcb4e1fec3c252570efbf98ac1a02a34a.tar.xz
frr-010dd8edcb4e1fec3c252570efbf98ac1a02a34a.zip
pbrd, lib: opt. json for `show pbr nexthop-group`
Signed-off-by: Wesley Coakley <wcoakley@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_nht.h')
-rw-r--r--pbrd/pbr_nht.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_nht.h b/pbrd/pbr_nht.h
index 253394254..cbcf71d2f 100644
--- a/pbrd/pbr_nht.h
+++ b/pbrd/pbr_nht.h
@@ -24,6 +24,7 @@
#include <lib/nexthop_group.h>
#include "pbr_map.h"
+#include "json.h"
#define PBR_NHC_NAMELEN PBR_MAP_NAMELEN + 10
@@ -112,6 +113,7 @@ extern char *pbr_nht_nexthop_make_name(char *name, size_t l, uint32_t seqno,
char *buffer);
extern void pbr_nht_show_nexthop_group(struct vty *vty, const char *name);
+extern void pbr_nht_json_nexthop_group(json_object *j, const char *name);
/*
* When we get a callback from zebra about a nexthop changing