Forum Discussion
Neil_Cook_66167
Aug 21, 2011Nimbostratus
Can I use a variable as a class name?
Hi,
I'm allocating SNAT Pools for outbound traffic in a fairly complex fashion: essentially I want to allocate a different SNAT pool based on the destination port. To do this in the most mai...
The_Bhattman
Aug 21, 2011Nimbostratus
Hi Neil,
Very interesting iRule. Yes I believe you can input a variable name in the fashion you require.
Looking at your code I think there is a way to collapse the data group down to 2 and avoid using variable name within class command specifically class get command along with the scan command.
Also change "pool" to "snatpool" in your code otherwise it won't work :-)
I hope this little bit of information helps
Bhattman
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects