carp(4): Make regex additionally match on VLAN interfaces
This tiny change to the example makes devd capable of reacting to carp status change events on VLAN interfaces. Reported by: Thomas Steen Rasmussen (tykling) <thomas at gibfest.dk>
This commit is contained in:
parent
a04ce833f9
commit
9f0b56872c
@ -290,7 +290,7 @@ status change events can be set up by using the following devd.conf rule:
|
||||
.Bd -literal -offset indent
|
||||
notify 0 {
|
||||
match "system" "CARP";
|
||||
match "subsystem" "[0-9]+@[0-9a-z]+";
|
||||
match "subsystem" "[0-9]+@[0-9a-z\.]+";
|
||||
match "type" "(MASTER|BACKUP)";
|
||||
action "/root/carpcontrol.sh $subsystem $type";
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user