Forum Discussion
Data group list checks in v11
Hi
Is it possible to check both the address and value of a data group list in combination within an if statement?
For example i have a data group list containing “192.168.1.1” := “fred_jones” and i want to test if both are correct (fred is logging in from that IP address) before i allow fred access to a site.
I want the IF to trigger if the name/value pair is found and not report if individual names and values are matched. Something like this:
If {([class match -name [IP::client_addr] equals sample_list] && [class match -value “fred_jones” equals sample_list])} {
Do something
}
Thanks
11 Replies
- Yozzer
Nimbostratus
This seems to do the job:
set lookupname [class match -value -- $user contains sample_list]
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