diff --git a/roles/ifstated/files/ifstated-fsol.conf b/roles/ifstated/files/ifstated-fsol.conf index 4fc18b5..6814ccd 100644 --- a/roles/ifstated/files/ifstated-fsol.conf +++ b/roles/ifstated/files/ifstated-fsol.conf @@ -1,5 +1,18 @@ + +init-state auto + carp_up = "carp145.link.up" +state auto { + run "pfctl -f /etc/pf.conf" + if $carp_up { + set-state master + } + if ! $carp_up { + set-state backup + } +} + state backup { init { run "/usr/local/sbin/birdc disable ospf1"