Forum Discussion
Michael_J__Whee
Nimbostratus
Dec 18, 2012How do you re-instantiate an iRule after external Data Group changes?
I'm working to convert several huge switch statements with a few lines of code and external datagroups (stored in files outside bigip.conf).
My question is: From the iRules 101: Datagroups & Tables article on DevCentral, it says "Just remember that you’ll have to re-instantiate the iRule for the changes to be recognized."
How exactly does one "re-instantiate" an iRule after making changes to an external datagroup?
2 Replies
- Michael_J__Whee
Nimbostratus
To answer my own question: You do not have to re-instantiate the iRule, you can simply cause the external data class file to be updated. This can be done by updating a property of the class definition in bigip.conf .
For instance, if you issue a:b class Test_Mass_Redirect_Datagroup mode rw
Even if the mode is already rw, it will update and re-build the hash table. - MW1
Cirrus
Thanks for that - I was actually in mid-reply when you posted stating I had updated to similar to the above -I was actually deleting then re-adding however your suggestion of just adding is even less impacting.
Very much appreciated
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