Use OSPF more properly in fsol-gw hosts
This commit is contained in:
parent
cdf3d3cd2e
commit
0d07163059
2 changed files with 0 additions and 28 deletions
|
@ -8,7 +8,6 @@ protocol device {
|
|||
}
|
||||
|
||||
protocol ospf {
|
||||
disabled yes;
|
||||
area 0.0.0.0 {
|
||||
interface "tap0" {
|
||||
hello 1;
|
||||
|
|
|
@ -1,33 +1,6 @@
|
|||
|
||||
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"
|
||||
}
|
||||
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
Reference in a new issue