]> git.proxmox.com Git - mirror_frr.git/blame - tools/lua.scr
Merge pull request #3454 from rodnymolina/isis_openfabric_enhacements
[mirror_frr.git] / tools / lua.scr
CommitLineData
1d7c7ace
DS
1-- Route map functionality
2--
3-- There are no parameters passed in.
4-- Currently we set two global tables
5-- prefix
6-- .family = The v4 or v6 family we are working in
7-- .route = the A.B.C.D/X or Z:A:B::D/X string
8-- nexthop
9-- .metric = The metric we are going to use
10-- .ifindex = The outgoing interface
11-- .aspath = The aspath of the route
12-- .localpref = The localpref value
13--
14-- Valid Return Codes:
15-- 0 - Some sort of processing failure
16-- This turns into a implicit DENY
17-- 1 - No match was found, turns into a DENY
18-- 2 - Match found, turns into a PERMIT
19-- 3 - Match found and data structures changed, turns into a PERMIT
20-- and a reread of the prefix and nexthop tables
21function mooey ()
22 zlog_debug(string.format("Family: %d: %s %d ifindex: %d aspath: %s localpref: %d",
23 prefix.family, prefix.route,
24 nexthop.metric, nexthop.ifindex, nexthop.aspath, nexthop.localpref))
25
26 nexthop.metric = 33
27 nexthop.localpref = 13
28 return 3
29end