On 12 Dec 2015, at 06:55, Kostas Kalevras <kkalev@noc.ntua.gr> wrote:
On 11/12/2015 3:55 μμ, Alan DeKok wrote:
So the question is... what else would you like to see in "unlang"?
Ideas? Comments?
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
I would like to see a new operator === which will return true if there is a single match in a list context. That way one can run a check such as:
if (NAS-IP-Address === &control:NAS-IP-Address) { update reply { Reply-Message = "NAS IP Address not allowed" } reject }
if (NAS-IP-Address == &control:NAS-IP-Address[*]) { } already exists in the v3.1.x branch. Works with the regex operator too, and both sides can be multivalued. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2