Forum Discussion
nabf5guy
Apr 30, 2024Altostratus
BIG-IP DNS iRule issue with static variable
I am trying to develop an iRule bypassing DNS processing when a DNS request matching a wide ip comes via a specific listener on our BIG-IP DNS. Code is below: when RULE_INIT {
set static::u...
- Apr 30, 2024
Okay, figured out the issue with the static variable.
If your iRule is a GTM iRule, not an LTM iRule, you need to declare static variables in a fully qualified manner, e.g.
set ::static::some_variable_name
and then call them in a fully qualified manner, .e.g
$::static::some_variable_name
It pays to go back and re-read even the documentation that you think you are familiar with.
zamroni777
Apr 30, 2024Nacreous
adding to nabf5guy ,
this is the doc link:
https://clouddocs.f5.com/api/irules/static.html
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