Irule to modify the VIP route advertisement setting upon pool down
Hi,
I have an Big-IP LTM in which I need to create a procedure to set a VIP "route advertisement" setting to "disabled" whenever a pool goes down. I think that this can be achieved by an iRule.
Does anyone have any example close to this? I think I got the first part of the irule identifying the pool going down:
when LB_FAILED { pool <pool name>
But I have trouble to properly finishing it by properly referencing the VIP and the "route advertisement" setting to modify it to "disabled"
Thank you in advance.
Albert.
What you could do is create a gateway monitor and give it an Alias Address of the gwy. Assign that to the pool as a second monitor that is the default pool of the virtual server the vip address is assigned to. That way, when the gwy fails, it marks the pool members down which in turn will retact the advertisment of the route.