For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

rtyuiop_231668's avatar
rtyuiop_231668
Icon for Nimbostratus rankNimbostratus
Oct 30, 2015

Class match to class value?

Hi all,

 

Within an irule, s there a way to effectively do a class match against the set of values (not the items) in a class?

 

I have an 'address' class which is full on network objects (network and netmask), mapping them to values which are also a networks with netmasks. My irule happily searches for elements, but if I want to reverse the search, I cannot (so far).

 

It seems like this is impossible, so the next thing I thought of was to dynamically generate a new class on the fly, read the old class out, and load it into the new class, but with the elements and items reversed. But from some devcentral articles, it seems like a dynamically generated class is not recommended, and doesn't get used very frequently. Is that right? In my case the classes are not particularly large, and performance for this particular irule isn't critical.

 

Any suggestions? I am admittedly way more comfortable in bash than tcl, but this seems way harder than I was expecting when I started working on it!

 

Regards,

 

Danny

 

No RepliesBe the first to reply