Forum Discussion
Mar 13, 2015
data-group format for irule match against simple list
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
My iRule needs to match a variable against a simple list of values :
set found_match [class match $lookup_key eq data_group_simple_l...
nitass_89166
Noctilucent
this is mine.
iRules Data Group Formatting Rules by Jason Rahm
https://devcentral.f5.com/articles/irules-data-group-formatting-rules create
[root@ve11c:Active:In Sync] config cat /var/tmp/data.txt
"key_1" := "",
"key_2" := "",
"key_3 ":= "",
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) create sys file data-group test source-path file:///var/tmp/data.txt type string
Copying file "file:///var/tmp/data.txt" ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 45 0 45 0 0 75125 0 --:--:-- --:--:-- --:--:-- 0
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) create ltm data-group external test_datagroup external-file-name test
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos)
verify
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group external test_datagroup
ltm data-group external test_datagroup {
external-file-name test
type string
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list sys file data-group test
sys file data-group test {
checksum SHA1:45:7b38f5bbc6a368168b987cca5568216b5308e94a
create-time 2015-03-14:08:57:26
created-by root
last-update-time 2015-03-14:08:57:26
mode 33152
revision 1
size 45
source-path file:///var/tmp/data.txt
type string
updated-by root
}
Simon_Conway-Sm
May 24, 2017Nimbostratus
Can this data file format be used to create a list of target hostnames for looking up HTTP::host, i.e. where each hostname entry is a set of dotted names, e.g. "myfunc.mydomain.com"?
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