summaryrefslogtreecommitdiff
path: root/pbrd/pbr_nht.h
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-20 10:49:54 -0400
committerWesley Coakley <wcoakley@cumulusnetworks.com>2020-05-27 10:28:02 -0400
commit010dd8edcb4e1fec3c252570efbf98ac1a02a34a (patch)
tree277a8ced1057a080000fc04e1f42bd6bce7f36bb /pbrd/pbr_nht.h
parent1a8cafe19c160b8c2e1c1d60b2b5faffb9567bc5 (diff)
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 2533942547..cbcf71d2f5 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