landro / TesTcl

when you don't have the balls to test your F5 BIG-IP iRules directly in production
https://testcl.com
BSD 3-Clause "New" or "Revised" License
98 stars 30 forks source link

Stacked iRules - Global Variables #34

Closed phcd30 closed 6 years ago

phcd30 commented 10 years ago

Hi,

Would it be possible to extend TesTcl to allow for stacked iRules, a simple example would be -

Rule1 { set $tempVar = PoolA }

Rule2 { $tempVar = PoolB }

Rule3 { open $tempVar }

These three rules are used to set the pool variable before it gets called in the final rule, testing Rule3 in isolation would not be a valid test for us.

Thanks,

Phil

landro commented 9 years ago

Related to #45

landro commented 6 years ago

Closing this with variable support introduced in a5c289d30481cb6a17ba9c196aa4b1f34bfe3545