Forum Discussion
Dave_Mehlberg
Cirrus
Mar 11, 2016iRule with two data groups both using external files one working (addr) and one not (str)
I have an iRule in place that checks the IP address of an off-site host,
then it checks the IP address of the client and with a class match to see if it is contained in an external file (type addr)...
Dave_Mehlberg
Cirrus
Mar 11, 2016I was basing my original string file on the following link:
https://devcentral.f5.com/articles/irules-data-group-formatting-rules
which shows:
String Classes
With string classes, quotes are necessary on the types and values:
[internal class]
class str_testclass {
{
"str1" { "value 1" }
"str2" { "value 2" }
}
}
[external class]
class str_testclass_ext {
type string
filename "/var/class/str_testclass.class"
separator ":="
}
[/var/class/str_class.class]
"str1" := "value 1",
"str2" := "value 2",
so I built my file as I saw in the bottom of the link for string classes
"str1" := "value 1",
and so forth
- Kai_WilkeMar 11, 2016
MVP
Yeah, sometimes those manuals are somewhat confusing... ;-) Cheers, Kai
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