Standalone ASM and LB_FAILED
So I have standalone ASMs that DO NOT have LTM licensing on them (they sit behind another piece of hardware which is LTM)
I have Virtual Servers configured with an HTTP Class set as the resource and a pool (with a single node because no LTM on this device) defined within the HTTP Class. The node is actually another LTM, but I have 2 data center so occasionally when maintenance is being performed on one I have to go into the HTTP Class and swith the pool to the other DC. I am trying to find a way to automate this with an iRule, and I thought I had a pretty simple way to do it but it is not working for some reason.
So if I have the HTTP Class set to go to pool DC1 and then I have the following iRule also attached to the VS, the VS actually shows Green even if DC1 is failing healthcheck, which suggests to me that the iRule is functioning, but it isn't.
when LB_FAILED {
pool DC2_pool
}
I feel like I am missing something simple here, or maybe I am being too simple and I need something a bit more complex, any thoughts would be helpful. This is a long running administrative issue that I would like to solve if possible.