Overview of FRR Lua Scripting
masterFRR supports Lua scripting (version 5.3) to extend built-in behavior, perform calculations, or make decisions using arbitrary user code. This is implemented via standard Lua C bindings.
Key characteristics:
- Data Exchange: C objects can be passed into Lua, and Lua objects can be retrieved by C code through an encoding/decoding system, allowing arbitrary data from FRR to be passed to scripts.
- Isolation: The Lua environment is isolated from the C environment. User scripts cannot access FRR's address space unless explicitly allowed by FRR.