summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2024-06-08 07:15:47 +0200
committerCarmine Scarpitta <cscarpit@cisco.com>2024-06-18 18:33:54 +0200
commitfe5b03a10b583d0a95104a43389a9b60ca9bc397 (patch)
tree2415ebced8fea61ec9a34cd45dca0d33e88f8c75 /isisd
parenttests: Update IS-IS SRv6 topotests (diff)
downloadfrr-fe5b03a10b583d0a95104a43389a9b60ca9bc397.tar.xz
frr-fe5b03a10b583d0a95104a43389a9b60ca9bc397.zip
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 <philippe.guibert@6wind.com> Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c
index 021ed1ff4..ce4eb74ec 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, &note)) {
+ &sid_func, NULL, &note, NULL)) {
zlog_err("%s : error in msg decode", __func__);
return -1;
}