]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Add func to process a received SRv6 locator
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Thu, 9 Feb 2023 18:09:04 +0000 (19:09 +0100)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Mon, 11 Sep 2023 15:34:54 +0000 (17:34 +0200)
commit5b9c03b0d36f680d5f4cd5134443d4e79d629c0f
tree67776c9bf73dd1ed29feb5df3655092a2ba6ec7d
parent86d9dc4980a656e4f2775d4e568c368ebc2be839
isisd: Add func to process a received SRv6 locator

Add a callback function `isis_zebra_process_srv6_locator_add()` that is
called upon receiving an SRv6 locator from zebra.

When a new SRv6 locator is created in zebra, zebra sends a
ZEBRA_SRV6_LOCATOR_ADD notification to all daemons informing them of the
new locator.

In IS-IS, we register the new `isis_zebra_process_srv6_locator_add()`
callback as the handler for ZEBRA_SRV6_LOCATOR_ADD.

This callback iterates over all areas of the current IS-IS instance and
looks for an area for which the new locator was configured.
If a match is found, we call
`isis_zebra_srv6_manager_get_locator_chunk()` to ask zebra a chunk from
the locator.
If no match is found, we do nothing.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
isisd/isis_zebra.c