Forum Discussion
Helen_Wan
Nimbostratus
Apr 19, 2014find out if a datagroup exists
I'm inside an iRule and I want to find out if a particular datagroup exists before I call class match. How do I do that?
3 Replies
- nitass
Employee
- Helen_Wan
Nimbostratus
Not yet. I'm going to give that a try. Thanks for the suggestion.
- Helen_Wan
Nimbostratus
It works!
Check if the datagroup existsif { [class exists [virtual name]] } { ... use class match query
} else { ... log error }
The check was important to us because we found out that if the datagroup was missing, the iRules terminates right on the class match statement.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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