]> git.puffer.fish Git - mirror/frr.git/commit
staticd: Avoid requesting SRv6 sid from zebra when loc and sid block dont match 18609/head
authorCarmine Scarpitta <cscarpit@cisco.com>
Tue, 8 Apr 2025 13:17:42 +0000 (15:17 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Tue, 8 Apr 2025 13:17:42 +0000 (15:17 +0200)
commit5a75a0685c6bc9af890d5bd61f69bde7870db913
treeaac4da08cf68ccac1540b7adc017d7a740dec8bf
parent8bd485a286fba0d2e9c4e7351e5fb0a5913d7edd
staticd: Avoid requesting SRv6 sid from zebra when loc and sid block dont match

Currently, when the locator block and sid block differs, staticd would
still go ahead and request zebra to allocate the SID which it does if
there is atleast one match (from any locators).

Only when staticd tries to install the route, it sees that the locator
block and sid block are different and avoids installing the route.

Fix:
Check if the locator block and sid block match before even requesting
Zebra to allocate one.

Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
(cherry picked from commit dbd9fed0b30dd1d3475686f71f87d326eeafd26c)
staticd/static_zebra.c
tests/topotests/static_srv6_sids/test_static_srv6_sids.py