Forum Discussion
Heisenberg_1452
Mar 03, 2014Historic F5 Account
libraries and procs
Hello All, I am new to iRules and have been doing a lot of reading on DevCentral. I see a couple of excellent examples of using libraries and procedures (proc). However, I am struggling to use th...
Kevin_Stewart
Employee
Mar 03, 2014Two things:
-
The red and disappearing "proc" in the iRule editor is an anomalous behavior. I imagine it's a relic of the iRule editor thinking Proc isn't supported.
-
Your iRule shouldn't start with "rule library". That's how it's described in the config and is created when you create the iRule.
An iRule named "library":
proc foo { someInputVar } {
return $someInputVar
}
Test iRule:
when RULE_INIT {
set foobar [call library::foo "test1234"]
log local0. $foobar
}
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