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:
Daniel Ebdrup Jensen 2022-01-14 21:32:06 +01:00
parent a04ce833f9
commit 9f0b56872c

View File

@ -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";
};