Recursive modules?
I was wondering if an unlang module in 2.2.x could call itself recursively. For example, I have a reply list with potentially large number of Framed-Route attributes and I want to replace each one with something else. Could I do the following? rewriteFramedRoutes { if ("%{reply:Framed-Route}") { update reply { Cisco-AVPair += "ip:route=...etc..." Framed-Route -= "%{reply:Framed-Route}" } rewriteFramedRoutes } } Unfortunately a quick test suggests that the module can't find itself. /etc/freeradius/policy.conf[310]: Failed to find "rewriteFramedRoutes" in the "modules" section. Does this mean that module can only invoke other modules which have been previously declared? Regards, Brian.
participants (2)
-
Arran Cudbard-Bell -
Brian Candler