Add ifstated to fsol-gw hosts
This commit is contained in:
parent
9d03799d40
commit
7b9c0b1f4d
3 changed files with 23 additions and 1 deletions
20
roles/ifstated/files/ifstated-fsol.conf
Normal file
20
roles/ifstated/files/ifstated-fsol.conf
Normal 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
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue