]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: add locator name in sid notify messages 15677/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Sat, 8 Jun 2024 05:15:47 +0000 (07:15 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Tue, 18 Jun 2024 16:33:54 +0000 (18:33 +0200)
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 <philippe.guibert@6wind.com>
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
isisd/isis_zebra.c

index 021ed1ff49e375aadbb395f9faad6b7a4d640796..ce4eb74ec66f77f660f804dcbe2937ed603a6f03 100644 (file)
@@ -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, &note)) {
+                                        &sid_func, NULL, &note, NULL)) {
                zlog_err("%s : error in msg decode", __func__);
                return -1;
        }