New feature in v3: cast!

Alan DeKok aland at deployingradius.com
Sun May 12 22:51:57 CEST 2013


Arran Cudbard-Bell wrote:
> I believe it's also supported in unlang now.
> 
> update reply {
> 	Reply-Message := "User-Name was &User-Name, Framed-IP-Address was &Framed-IP-Address"
> }

  That isn't supported yet.

> I think it's sort of dumb to treat bare words essentially the same as literals. I'd have
> rather used them as attribute references everywhere.

  Well... the parser was written many years ago.

> But apparently not requiring enumerated values, integer values or IP addresses be wrapped
> in quotes trumps the convenience of barewords refer to attributes.

  Yes.

> At least attribute references are consistent now, whether it's in conditional statements,
> xlat strings, update blocks, switch statements (I hope), you can always reference attributes
> in the same way. Any added consistency is a good thing :)

  Almost... the xlat strings need to be fixed.

  Alan DeKok.


More information about the Freeradius-Devel mailing list