Add ifstated to fsol-gw hosts

This commit is contained in:
Timo Makinen 2021-03-17 18:41:25 +00:00
parent 9d03799d40
commit 7b9c0b1f4d
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,20 @@
carp_up = "carp145.link.up"
state backup {
init {
run "/usr/local/sbin/birdc disable ospf1"
}
if $carp_up {
set-state master
}
}
state master {
init {
run "/usr/local/sbin/birdc enable ospf1"
}
if !$carp_up {
set-state backup
}
}