Forum Discussion
Check to see if [RADIUS::avp 31 string] exists
- Feb 18, 2015
Does [RADIUS::avp 31] possibly return as an empty string, "", if it returns nothing? I would add a log local0. "radius 31 is [RADIUS::avp 31]." And test the scenario to see if returns an empty string. If it is, your if can be
If { not ([RADIUS::avp 31 string] equals "") } { persist uie "[RADIUS::avp 31 string]" 900 } }
Well, that certainly did not have the effect I intended. I caused a widespread outage as soon as I added the additional statement. Here's how the logic was implemented. See anything wrong with it? I didn't get any errors in the ltm log after it was implemented, but the service appeared to behave as though there was no persistence. That makes me suspect that the if statement prevented the persist statement fired at all.
when CLIENT_ACCEPTED {
if {not ([RADIUS::avp 1 string] starts_with "radius-test")} {
if { [info exists [RADIUS::avp 31]] } {
persist uie "[RADIUS::avp 31 string]" 900
}
}
}
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com