Minor update for 4.0: expr and &Attribute-Name[*]
As an example (useless, but an example) update request { NAS-Port := 1 NAS-Port := 2 NAS-Port := 3 } update reply { Filter-Id := "%{expr: 0 + &NAS-Port[*]}" } Send it a packet, and you get: Filter-Id := "6" Minor, but nice. I've also been pushing updates to Alcatel's stupid struct attributes. If anyone else has time for similar changes, it would be appreciated. Alan DeKok.
Hi,
update request { NAS-Port := 1 NAS-Port := 2 NAS-Port := 3 }
Doesn't := overwrite attributes? After the above, I'd expect one instance of NAS-Port to be set, with the value of three (after its two previous assignments have been immediately overwritten). Not three occurences of the NAS-Port attribute, with three distinct values? Let alone that RFC2865 only allows for one single instance. Did the := operator change so much that this is now not what is happening?
update reply { Filter-Id := "%{expr: 0 + &NAS-Port[*]}" }
Send it a packet, and you get:
Filter-Id := "6"
Which means I'd expect a 3 not a 6? Greetings, Stefan Winter -- Stefan WINTER Ingenieur de Recherche Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche 2, avenue de l'Université L-4365 Esch-sur-Alzette Tel: +352 424409 1 Fax: +352 422473 PGP key updated to 4096 Bit RSA - I will encrypt all mails if the recipient's key is known to me http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66
On Aug 2, 2016, at 12:43 PM, Stefan Winter <stefan.winter@restena.lu> wrote:
Hi,
update request { NAS-Port := 1 NAS-Port := 2 NAS-Port := 3 }
Doesn't := overwrite attributes? After the above, I'd expect one instance of NAS-Port to be set, with the value of three (after its two previous assignments have been immediately overwritten).
Yes, sorry. That should be "+=" instead of ":="
Not three occurences of the NAS-Port attribute, with three distinct values? Let alone that RFC2865 only allows for one single instance.
It's just an example. RFC compliance is secondary. Alan DeKok.
participants (2)
-
Alan DeKok -
Stefan Winter