]> git.puffer.fish Git - matthieu/frr.git/commit
staticd: Avoid requesting SRv6 sid from zebra when loc and sid block dont match
authorRajasekar Raja <rajasekarr@nvidia.com>
Fri, 4 Apr 2025 20:27:03 +0000 (13:27 -0700)
committerRajasekar Raja <rajasekarr@nvidia.com>
Mon, 7 Apr 2025 17:34:07 +0000 (10:34 -0700)
commitdbd9fed0b30dd1d3475686f71f87d326eeafd26c
tree02655a0d00a6e4f80b6376be03431d6541768872
parent259ffe1dfe0cfa1428d772fc66f2526ead2d40f1
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>
staticd/static_zebra.c
tests/topotests/static_srv6_sids/test_static_srv6_sids.py