On Jul 18, 2018, at 12:30 PM, Adam Bishop <Adam.Bishop@jisc.ac.uk> wrote:]
module_failure_message is being populated with "Failed retrieving values required to evaluate condition" - doesn't appear to be affecting function, but it's messing with my log parsing.
Yeah, that message doesn't need to be put into Module-Failure-Message.
I've implemented it as:
if (&User-Class == "guest") { # User is from the users file, assign them to the external guest VLAN regardless of all other factors update reply { &reply:Tunnel-Type = GRE &reply:Tunnel-Medium-Type = IP &reply:Tunnel-Private-Group-ID = "%{client:outer_guest_vlan}" } }
Can I check for the existence of the attribute before I test its value?
Sure. if (&User-Class && (&User-Class == "guest")) { ... Alan DeKok.