Forum Discussion
Mark_Moseley
Nimbostratus
Nov 14, 2005Predefining variables and how iRules work
Hi. This is a two-parter, neither of which I can find answers for but might be using the wrong search terms (in which case, my apologies).
1) Is it possible to pre-define variables in iRules...
JRahm
Admin
Nov 14, 2005You can build string or address classes, and they can be stored in the bigip.conf file, or externally in the profile_base.conf file. See:
bigpipe class help
No idea on the 2nd question. My understanding is that the rules are in memory once loaded (in fact, some rule fragments that are deleted require a bigstart restart to completely remove them from memory) and that many of the features in the profiles are compiled, and thus, highly optimized, iRules (as explained by one of the ENE's).
Some examples from profile_base.conf
This is a pre-defined class identifying common image file extensions
class images {
".jpg"
".gif"
".bmp"
}
This is a pre-defined class identifying private network addresses.
class private_net {
network 10.0.0.0 mask 255.0.0.0
network 172.16.0.0 mask 255.240.0.0
network 192.168.0.0 mask 255.255.0.0
}
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
