https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208174

            Bug ID: 208174
           Summary: carp devd notify example does not handle VLANs
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]

The example devd entry in the carp(4) man page doesn't handle if you are
dealing with a VLAN.  

This is the extract from the existing man page relating to carp.  

---> CUT HERE <---
           notify 0 {
                   match "system"          "CARP";
                   match "subsystem"       "[0-9]+@[0-9a-z]+";
                   match "type"            "(MASTER|BACKUP)";
                   action "/root/carpcontrol.sh $subsystem $type";
           };
---> END CUT <---

Here is a slightly *corrected* entry which handles VLANs.  

---> CUT HERE <---
           notify 0 {
                   match "system"          "CARP";
                   match "subsystem"       "[0-9]+@[0-9a-z\.]+";
                   match "type"            "(MASTER|BACKUP)";
                   action "/root/carpcontrol.sh $subsystem $type";
           };
---> END CUT <---

This handles when there is an subsystem attached to a VLAN (by allowing the "."
character in the class).  For example:
   [email protected]
or
   [email protected]

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to