ansible/roles/router/templates/notify-quagga.j2
Jeltz 1816e0de71
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
WIP: support for Quagga failover
This change probably doesn't work
2021-02-04 01:48:40 +01:00

21 lines
363 B
Django/Jinja

#!/bin/bash
{{ ansible_managed | comment }}
if [[ $# = 0 ]]; then
echo "Invalid number of arguments" >&2
exit 1
fi
case $1 in
master)
systemctl start zebra.service
systemctl start bgpd.service
;;
backup | fault)
systemctl stop zebra.service
systemctl stop bgpd.service
;;
*)
echo "Invalid argument" >&2
exit 1
esac