services/frr.py: frrboot.sh: start 'staticd' to support static routes

Unlike Quagga, FRR requires 'staticd' to be running in order
to support provisioning and use of static routes in the running
configuration (e.g., 'ip route a.b.c.d/p nexthop').

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
This commit is contained in:
Gabriel Somlo 2020-02-09 07:42:02 -05:00
parent 5ae3ad9011
commit d2fe352797

View file

@ -208,6 +208,9 @@ bootfrr()
fi fi
bootdaemon "zebra" bootdaemon "zebra"
if grep -q "^ip route " $FRR_CONF; then
bootdaemon "staticd"
fi
for r in rip ripng ospf6 ospf bgp babel; do for r in rip ripng ospf6 ospf bgp babel; do
if grep -q "^router \\<${r}\\>" $FRR_CONF; then if grep -q "^router \\<${r}\\>" $FRR_CONF; then
bootdaemon "${r}d" bootdaemon "${r}d"