From: Philippe Guibert Date: Sat, 8 Jun 2024 05:15:47 +0000 (+0200) Subject: isisd: add locator name in sid notify messages X-Git-Tag: base_10.2~304^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fe5b03a10b583d0a95104a43389a9b60ca9bc397;p=mirror%2Ffrr.git isisd: add locator name in sid notify messages In the near future, some daemons may only register SIDs. This may be the case for the pathd daemon when creating SRv6 binding SIDs. When a locator is getting deleted at ZEBRA level, the daemon may have an easy way to find out the SIds to unregister to. This commit proposes to add the locator name to the SID_SRV6_NOTIFY message whenever possible. Only case when an allocation failure happens, the locator will not be present. In all other places, the notify API at procol levels has the locator name extra-parameter. Signed-off-by: Philippe Guibert Signed-off-by: Carmine Scarpitta --- diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 021ed1ff49..ce4eb74ec6 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -1458,7 +1458,7 @@ static int isis_zebra_srv6_sid_notify(ZAPI_CALLBACK_ARGS) /* Decode the received notification message */ if (!zapi_srv6_sid_notify_decode(zclient->ibuf, &ctx, &sid_addr, - &sid_func, NULL, ¬e)) { + &sid_func, NULL, ¬e, NULL)) { zlog_err("%s : error in msg decode", __func__); return -1; }