Posted By nitass on 11/27/2012 03:39 AM
I came up with that iRule and it works but i would like to replace the if-elseif statements with a switch for more clarity :
i do not think you can perform class match in switch string. anyway, if there is no performance issue, your code looks okay to me.
That's the conclusion i reach also, class match in switch string doesn't seem to be a good idea.
I don't think i'll have performance issue since my server has a lot of ressources always available so...
Anyway thanks for the answers I think i'm going to replace the "elsif" with "or " that will make me gain some lines.