]> git.puffer.fish Git - matthieu/frr.git/commit
sharpd: fix deleting nhid when suppressing nexthop from nh group
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 4 Dec 2023 15:03:31 +0000 (16:03 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 5 Dec 2023 07:20:24 +0000 (08:20 +0100)
commit82c1d82d7767570af287b8fa8d887ba8a40015e3
tree07920eb43fefdd7056bccf04d747d73535ca8f14
parent3f4c682e48614174af5f19ed440919b8a3267fba
sharpd: fix deleting nhid when suppressing nexthop from nh group

When no nexthops are in a nexthop group, two successive events are
sent: NHG_DEL and NHG_ADD, but only the NHG_DEL one is necessary.
Fixes this by returning in the nhg_add() function.

Fixes: 82beaf6ae520 ("sharpd: fix deleting nhid when suppressing nexthop from nh group")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
sharpd/sharp_zebra.c