I'm struggling a little with pycontrol and catching exceptions.
I've written a python script that parses the contents of a series of files in a directory (cvs managed), concatonates them into a iRule and applies it to the Load Balancer. I've got 80+ vhosts, all with multiple URI or similar redirects each... I shudder at the thought of handling that monolithically, and they're each so quirky and unique that templating is futile.
My idea is to produce a temporary rule_def for each vhost, push it to the load-balancer and report back to the user the exact error message if one came up, and then sys.exit. Hopefully then the deployer could fix the fault and re-try.
What I can't figure out is how to get at the Common.OperationFailed response (at least not without crashing with a full stack trace). Is it possible?