set static:: implementation in iRules

Hi all,

since we need to add an additional port to our pool members, we need to replace the following static variable from:

set static::HTTP_PORT"8888"

to

set static::HTTP_PORT"8888, 8080"

where either 8080 or 8888 could be considered for this variable. Is this an option?

Why don you use instead a datagroup and the command class to look for valid values? class

 

With datagroups you don’t need to modify the irule if later on you need to add more ports.

 

Hi,

This is not a standard variable but used within your irule.

Without the whole irule code, we can’t answer to this question!