Thank you Ondrej!
In my case, I have two routers in a failover cluster managed by
Keepalived. And I need to change the metric of a route when a router
acquires resources. Currently in Quagga I configure keepalived to run a
script that changes the metric similar to this:
In keepalived.conf:
...
# Do this when the router becomes (master | backup | fault)
notify_master "/usr/local/sbin/keepalive_helper.sh UP"
notify_backup "/usr/local/sbin/keepalive_helper.sh DOWN"
notify_fault "/usr/local/sbin/keepalive_helper.sh DOWN"
...
Script keepalive_helper.sh:
#!/bin/bash
if [ "$1" = "UP" ]; then
METRIC="100"
elif [ "$1" = "DOWN" ]; then
METRIC="200"
fi
/usr/bin/vtysh -d bgpd \
-c "configure terminal" \
-c "route-map setmetric permit 10" \
-c "set metric $METRIC"
/usr/bin/vtysh -d bgpd \
-c "clear ip bgp * soft out"
How could I do this using the Bird? Any suggestions?
Thanks
--
Thiago Henrique
www.adminlinux.com.br
On 22-10-2012 14:45, Ondrej Filip wrote:
On 22.10.2012 16:04, [email protected] wrote:
Hi,
Hi Thiago!
I have a network of ~ 200 servers with Quagga routers in the network
core.
I'm evaluating the impact of using the Bird in my routers and I have a
question.
In Quagga the administrator can change the configuration using a
command line. For example, I have a shell script that changes the
metric of a route in specific cases. Does Bird allow something similar?
Does Bird accept configuration changes using the command line?
Not really. There is currently only one item, that can be changed
directly from CLI and that is ROA table. If you want to change
configuration in general, you have to amend a configuration file.
However do not forget BIRD has a smart reconfiguration, it
reconfigures only affected protocols and you can also use "include"
statement. So for example all static routes can be in (a) separate
configuration file(s), so the reconfiguration can be almost as easy as
using CLI directly.
Ondrej
Thanks