]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop_group.h
Merge pull request #9083 from mobash-rasool/pim-upst-3
[mirror_frr.git] / lib / nexthop_group.h
index 3a5a1299c1d0a02e1ddf3726d64cceb3d6b2ee78..8e75e5c6ac441f0ed495e8c9818fd58952eeff91 100644 (file)
@@ -22,6 +22,7 @@
 #define __NEXTHOP_GROUP__
 
 #include <vty.h>
+#include "json.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -96,12 +97,12 @@ struct nexthop_group_cmd {
 
        struct list *nhg_list;
 
-       QOBJ_FIELDS
+       QOBJ_FIELDS;
 };
 RB_HEAD(nhgc_entry_head, nexthp_group_cmd);
 RB_PROTOTYPE(nhgc_entry_head, nexthop_group_cmd, nhgc_entry,
             nexthop_group_cmd_compare)
-DECLARE_QOBJ_TYPE(nexthop_group_cmd)
+DECLARE_QOBJ_TYPE(nexthop_group_cmd);
 
 /*
  * Initialize nexthop_groups.  If you are interested in when
@@ -134,7 +135,14 @@ extern bool nexthop_group_equal(const struct nexthop_group *nhg1,
 
 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_write_nexthop_simple(struct vty *vty,
+                                              const struct nexthop *nh,
+                                              char *altifname);
+extern void nexthop_group_write_nexthop(struct vty *vty,
+                                       const struct nexthop *nh);
+
+extern void nexthop_group_json_nexthop(json_object *j,
+                                      const struct nexthop *nh);
 
 /* Return the number of nexthops in this nhg */
 extern uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg);