1 -- Route map functionality
3 -- There are no parameters passed in.
4 -- Currently we set two global tables
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
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
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
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))
27 nexthop.localpref = 13