Forum Discussion
Disable BGP route adv when pool member < 2
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!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com