]> 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 9888dad982a639dba4e895334fa2d837b62188c5..8e75e5c6ac441f0ed495e8c9818fd58952eeff91 100644 (file)
@@ -97,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
@@ -135,9 +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, 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);