Skip to content

Improve the FIB iterator available for the dynamic configuration block#493

Merged
AltraMayor merged 5 commits intomasterfrom
lua_fib
Jun 8, 2021
Merged

Improve the FIB iterator available for the dynamic configuration block#493
AltraMayor merged 5 commits intomasterfrom
lua_fib

Conversation

@AltraMayor
Copy link
Owner

As pull request #489 brought up, the FIB iterator is the most demanding iterator available through the dynamic configuration block. This pull request improves the code of this iterator to further save time.

This pull request also adds two new gkctl scripts to only list grantor FIB entries. Not only are these new scripts useful in production, but they also serve as examples of how to filter any subset of FIB entries.

@AltraMayor AltraMayor added this to the First deployment milestone Jun 8, 2021
@AltraMayor AltraMayor changed the title Lua fib Improve the FIB iterator available for the dynamic configuration block Jun 8, 2021
A FIB can be rather large (e.g. ~1 million entries), so
the cost to iterate it should be minimized.
A FIB can be rather large and a Lua code may want only a few entries,
so stop the iterator as soon as the Lua code is satisfied.
Moving control out of dylib.print_fib_dump_entry() makes
it easier for someone to write a personalized version of
dylib.print_fib_dump_entry().
@AltraMayor AltraMayor merged commit ef1e262 into master Jun 8, 2021
@AltraMayor
Copy link
Owner Author

Tested in production.

@AltraMayor AltraMayor deleted the lua_fib branch June 8, 2021 13:35
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