]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop_group.h
pbrd, lib: opt. json for `show pbr nexthop-group`
[mirror_frr.git] / lib / nexthop_group.h
index 3a5a1299c1d0a02e1ddf3726d64cceb3d6b2ee78..9888dad982a639dba4e895334fa2d837b62188c5 100644 (file)
@@ -22,6 +22,7 @@
 #define __NEXTHOP_GROUP__
 
 #include <vty.h>
+#include "json.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -136,6 +137,8 @@ extern struct nexthop_group_cmd *nhgc_find(const char *name);
 
 extern void nexthop_group_write_nexthop(struct vty *vty, struct nexthop *nh);
 
+extern void nexthop_group_json_nexthop(json_object *j, struct nexthop *nh);
+
 /* Return the number of nexthops in this nhg */
 extern uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg);
 extern uint8_t