Falk Brockerhoff schrieb:

> Could you please post your script? I really like to participate from
> your work; this behaviour hasn't changed in an actual snapshot...

Ok, a reply to myself. If someone else runs into the same bug, here is a
snippet of my /etc/ifstated.conf:

carp213_up = "carp213.link.up"
carp213_down = "!carp213.link.up"

state auto {
        if $carp213_up
                set-state primary213
        if $carp213_down
                set-state backup213
}
state primary213 {
        init {
         run "route delete -inet 192.168.213.0/24"
         run "route add -inet 192.168.213.0/24 -interface 192.168.213.1"
        }
        if $carp213_down
                set-state backup213
        if $carp213_up
                set-state primary213
}
state backup213 {
        init {
                run "route delete -inet 192.168.213.0/24"
                run "route add -inet 192.168.213.0/24 <neighbor-ip>"
        }
        if $carp213_down
                set-state backup213
        if $carp213_up
                set-state primary213
}

Works fine for me. If you have some suggestions or better workarounds
please let me know!

Regards,

Falk

Reply via email to