Skip to content

gk: add FIB ID to iterators#524

Merged
AltraMayor merged 3 commits intomasterfrom
list-fib
Aug 23, 2021
Merged

gk: add FIB ID to iterators#524
AltraMayor merged 3 commits intomasterfrom
list-fib

Conversation

@AltraMayor
Copy link
Owner

The first two patches tighten up the code in gk/fib.c, whereas the third patch adds the FIB IDs of the FIB entries to the iterators available to the dynamic configuration block.

This patch scopes a couple variables of list_ipv4_fib_entries()
and list_ipv6_fib_entries() in deeper code blocks.
While the value of fib_id has no meaning outside of Gatekeeper,
it is useful to write Lua scripts for the dynamic configuration
block to test the correctness of the FIB.

The added script gkctl/scripts/check_fibs.lua searches for
duplicate values of fib_id; what should not happen under normal
conditions.
@AltraMayor AltraMayor added this to the First deployment milestone Aug 20, 2021
@AltraMayor
Copy link
Owner Author

Tested in production.

@AltraMayor AltraMayor merged commit 4b98af0 into master Aug 23, 2021
@AltraMayor AltraMayor deleted the list-fib branch August 23, 2021 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant