Forum Discussion

kelemvor_50002's avatar
kelemvor_50002
Icon for Nimbostratus rankNimbostratus
Sep 09, 2013

Creating an iRule Data Group via bigpipe?

Is there a way to create a Data Group for an iRule via a bigpipe command like I can for pools?

 

Maybe something like: bigpipe datagroup Name {members 1.2.3.4 2.3.4.5 3.4.5.6}

 

I need to update an existing one to replace the current IP list with a new list. I don't know if I can delete the group first if it's accessed in a working iRule or not as well.

 

Thanks.

 

3 Replies

  • A while ago I was struggeling with creating a new datagroup via bigpipe.

    There is a man page about it. But didnt work for me.

    I would recommend to get an excerpt of your current datagroup stored in /config/bigip.conf and to create an adjusted version with a new name in a file to be stored in /var/tmp/my_new_data_group.

    You can merge it into your running configuration with:

    bigpipe merge /var/tmp/my_new_data_group

    Save the configuration:

    bigpipe save

    Now you can replace the referenced data group in your iRule. New connections should be handled by the iRule according to the updated datagroup.

  • Here are a couple of articles from Jason Rahm on data group formatting for v10 and v11:

     

    https://devcentral.f5.com/articles/irules-data-group-formatting-rules (v10) https://devcentral.f5.com/articles/v11-irules-data-group-updates

     

    https://devcentral.f5.com/questions/adding-string-members-into-an-internal-class-in-v101

     

    The bigpipe guide should have more info as well.

     

    Aaron

     

  • So I got it to work on one of our F5s since it's older and supports Bigpipe. However our newer one doesn't support bigpipe any more. :(

     

    I guess I have to go read up on tmsh...