Forum Discussion
mihai_178850
Mar 25, 2015Nimbostratus
That would not completely work for me as I need to make sure that my BGP daemon stops advertising the VS (which means in fact triggering with the tmsh modify command the route adv as disabled instead of sending an HTTP error to the client).
Logic view would be:
If active_pool members(pool_name) < 2
then
get_config - vip from regexp name
if route_adv (vip_ip) NOT disabled
set route_adv(vip_ip) = disabled
else
get_config - vip from regexp name
if route_adv(vip_ip) NOT enabled, then route_adv(vip_ip) = enabled
end
The only part I do not currently know how to do and I am googling for is the way to get all the VIPs from the existing config by matching the names with a regexp.
Can someone help out with a pointer for that? Also, how can I view what the get config really has (the show running config is the same?)
Thanks!