Forum Discussion

Brian_Thompson's avatar
Brian_Thompson
Icon for Nimbostratus rankNimbostratus
Oct 03, 2007

How can I add values to a data group within an irule

I'm doing reverse lookups on IP's that come in, and if they match a certain DNS I would like to append a data group that I have so that I can build a list of servers.

 

 

linsert is not working for me-

 

 

linsert $::akamai_edge2 $new_index $mask_clientIP

 

 

Anyone have any suggestions? Is this possible?
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Using the list functions modifies what is running in memory, but the changes aren't written to the bigip.conf config file. Similarly, using an array would allow you build a set of items, but not save it to file.

     

     

    I think you'd need to use iControl to persist the changes through a restart.

     

     

    Anyone have other ideas?

     

     

    Aaron
  • does anyone have an example of using icontrol to manipulate external variables?? i'm trying to build up a cache/list of Akamai edge servers so I can throttle them when they do origin calls

     

     

    Akamai will not provide a list of edge servers because its so dynamic, so I figured I would have the load balancer generate a list and self-learn.
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    I'd try a search in the iControl codeshare & forum for an example, or post a new question on the iControl forum if nothing was found.

     

     

    iControl 9.x forum: Click here

     

    iControl codeshare: Click here