Forum Discussion
Yozzer
Jun 03, 2011Nimbostratus
Data Group List use in a switch
Hi
I have a Data Group list called allowed_urls that has a list of accepted urls which i want to use in an irule.
switch -glob [HTTP::uri] {
"*temp.txt" {
do...
Yozzer
Jun 07, 2011Nimbostratus
Thanks all,
The datagroup will have various values that i want to test for in the url (i.e. a.txt, b.txt, c.txt, etc) and i want to perform actions when they are in the url.
I want to use a data group list so i can just remove the values from the data group list without having to alter the code.
If i cant use it within a switch statement how can i call the data group list from the if statement:
if [HTTP::uri] contains value from data group list then do stuff else do other stuff.
Thanks
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