Revert "ifstated: Kludge to get correct routes on fsol-gw"
This reverts commit 01634d2ae3
.
This commit is contained in:
parent
888544c8db
commit
d3d28ec7e2
1 changed files with 1 additions and 29 deletions
|
@ -1,34 +1,6 @@
|
||||||
|
|
||||||
init-state auto
|
init-state auto
|
||||||
|
|
||||||
if_carp_up="carp145.link.up"
|
|
||||||
if_carp_down="carp145.link.down"
|
|
||||||
|
|
||||||
state auto {
|
state auto {
|
||||||
if $if_carp_up {
|
run "pfctl -f /etc/pf.conf"
|
||||||
set-state master
|
|
||||||
}
|
|
||||||
if $if_carp_down {
|
|
||||||
set-state backup
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
state master {
|
|
||||||
init {
|
|
||||||
run "pfctl -f /etc/pf.conf"
|
|
||||||
run "route add 0/1 37.16.96.65"
|
|
||||||
}
|
|
||||||
if $if_carp_down {
|
|
||||||
set-state backup
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
state backup {
|
|
||||||
init {
|
|
||||||
run "pfctl -f /etc/pf.conf"
|
|
||||||
run "route del 0/1"
|
|
||||||
}
|
|
||||||
if $if_carp_up {
|
|
||||||
set-state master
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue