Skip to content

Commit

Permalink
bgpd: add locator name in sid notify messages
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
pguibert6WIND authored and cscarpitta committed Jul 21, 2024
1 parent bd91fec commit cabe2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -3458,7 +3458,7 @@ static int bgp_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;
}
Expand Down

0 comments on commit cabe2ca

Please sign in to comment.