Hey ChatGPT, can you write iRules?
Cool stuff, Daniel_Wolf!!
I've been playing around as well, and I like this as a startoff point, but find nits in each result that I then refine. For example, on your challenge 3 I'd make sure to prevent injection by adding -- to the command, and since there is no glob style matching in the example, i'd remove the -glob flag. But if I was going to do matching, I'd make sure to set the nomenclature of my pools to match the host in some way so I can make that iRule extremely simple.
One catch though...shouldn't the string map in Challenge 2 be reversed? if the server is newhost, then that needs to be mapped back to oldhost, right? I think in a couple runs I made on other stuff it gets the string map backwards as well. Something to watch for...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)