Forum Discussion
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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