Forum Discussion

Michael_J__Whee's avatar
Michael_J__Whee
Icon for Nimbostratus rankNimbostratus
Dec 18, 2012

How 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

  • 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.
  • 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