]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix display explicit sid refused
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 7 Jun 2024 13:46:53 +0000 (15:46 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 13 Jun 2024 12:54:16 +0000 (14:54 +0200)
> 2024/06/07 15:09:43 ZEBRA: [MZYPC-GBDGR] srv6_manager_get_sid_internal: getting SRv6 SID for ctx End.DT4 vrf vrf1, sid_value=1003::4, locator_name=
> [..]
> 2024/06/07 15:09:43 ZEBRA: [QGJBT-YJ11W] zsend_srv6_sid_notify: notifying ZEBRA_SRV6_SID_NOTIFY ctx End.DT4 vrf vrf2, sid (null) note ZAPI_SRV6_SID_FAIL_ALLOC (proto=30, instance=0, sessionId=0)

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_srv6.c

index cbf471ae3db827690f1009f359684040921078ed..4273e52a01725ed34aba89d10a75f431f710922f 100644 (file)
@@ -2274,7 +2274,7 @@ static int srv6_manager_get_sid_internal(struct zebra_srv6_sid **sid,
                          sid_value ? sid_value : &in6addr_any, locator_name);
 
                /* Notify client about SID alloc failure */
-               zsend_srv6_sid_notify(client, ctx, NULL, 0, 0,
+               zsend_srv6_sid_notify(client, ctx, sid_value, 0, 0,
                                      ZAPI_SRV6_SID_FAIL_ALLOC);
        } else if (ret == 0) {
                if (IS_ZEBRA_DEBUG_PACKET)