Forum Discussion
smp_86112
Feb 18, 2015Cirrostratus
Check to see if [RADIUS::avp 31 string] exists
Hi. I found out about some unexpected behavior today as a result of this iRule:
when CLIENT_ACCEPTED {
persist uie "[RADIUS::avp 31 string]" 900
}
The problem I found is that the LTM sends ...
- 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 } }
Brad_Parker
Feb 18, 2015Cirrus
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
}
}
- smp_86112Feb 23, 2015Cirrostratus> Does [RADIUS::avp 31] possibly return as an empty string, "", if it returns nothing? You were exactly right. That logic does exactly what I wanted it to do, which is persist on AVP 31 only if the value "exists". Thanks a lot for your help!!!
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects