6 Lua is currently experimental within FRR and has very limited
7 support. If you would like to compile FRR with Lua you must
10 1. Installation of Relevant Libraries
14 apt-get install lua5.3 liblua5-3 liblua5.3-dev
16 These are the Debian libraries that are needed. There should
17 be equivalent RPM's that can be found
21 Configure needs these options
25 ./configure --enable-dev-build --enable-lua <all other interesting options>
27 Typically you just include the two new enable lines to build with it.
31 * Copy tools/lua.scr into /etc/frr
33 * Create a route-map match command
35 .. code-block:: console
39 neighbor 10.50.11.116 remote-as external
40 address-family ipv4 unicast
41 neighbor 10.50.11.116 route-map TEST in
44 route-map TEST permit 10
48 * In the lua.scr file make sure that you have a function named 'mooey'
50 .. code-block:: console
53 zlog_debug(string.format("afi: %d: %s %d ifdx: %d aspath: %s localpref: %d",
54 prefix.family, prefix.route, nexthop.metric,
55 nexthop.ifindex, nexthop.aspath, nexthop.localpref))
58 nexthop.localpref = 13
64 Please be aware that this is extremely experimental and needs a ton of work
65 to get this up into a state that is usable.