Forum Discussion
stucky101_88485
Aug 11, 2012Nimbostratus
Pull global variable from data group list
Gurus
I'm trying to do something that should be rather simple but I'm beginning to wonder whether I'm looking in the wrong place.
I have used 2 data group lists successfully of type str...
stucky101_88485
Aug 12, 2012Nimbostratus
Hamish
Thanks for the confirmation.
Yes I know matchclass and findclass are gone. I figured it out. That was a misunderstanding on my part.
The following does what I want. Suppose I have a class called "global" with 2 key/value pairs in it I can read them out like this :
when HTTP_REQUEST {
set alias [class search -value global equals vip01]
set domain [class search -value global equals domain01]
log local0. "Testing: domain is $domain. Alias is $alias"
}
I assume this is a good way to set global variables right ?
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