return nhe;
}
-/* Replace NHE from upper level proto */
-struct nhg_hash_entry *
-zebra_nhg_proto_replace(uint32_t id, struct nexthop_group *nhg, afi_t afi)
-{
- return NULL;
-}
*/
/*
- * Add NHE.
+ * Add NHE. If already exists, Replace.
*
* Returns allocated NHE on success, otherwise NULL.
*/
struct nexthop_group *nhg,
afi_t afi);
-
/*
* Del NHE.
*
*/
struct nhg_hash_entry *zebra_nhg_proto_del(uint32_t id);
-/*
- * Replace NHE.
- *
- * Returns new NHE on success, otherwise NULL.
- */
-struct nhg_hash_entry *
-zebra_nhg_proto_replace(uint32_t id, struct nexthop_group *nhg, afi_t afi);
-
/* Reference counter functions */
extern void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe);
extern void zebra_nhg_increment_ref(struct nhg_hash_entry *nhe);