Forum Discussion
Vik_K_236702
Dec 02, 2015Historic F5 Account
Hi Roger
If that is the case , the switch case would be too vague for you. If , else if statement suits you better I would say. Even a while command doesn't match your situation here.
Basically what we are doing here is checking if the port is in our interested port range A, then assign pool A or else if its equal to our desired port B, assign Pool B.
When both the conditions don't match, we don't want the LTM to process the request so we give a final result of drop for everything else. ( using an else statement ).
However lets see if we can get a better solution for this :) .
Cheers! Vikram (Vik )