[ NoAccessorMethod ]
public string auto_connect_filter { owned get; set construct; }
Set a string specifying a filter to use to determine which USB devices to autoconnect when plugged in, a filter consists of one or more rules.
Where each rule has the form of:
class
,vendor
,product
,version
,allow
Use -1 for class
/vendor
/product
/version
to accept any value.
And the rules themselves are concatenated like this:
rule1
|rule2
|rule3
The default setting filters out HID (class 0x03) USB devices from auto connect and auto connects anything else. Note the explicit allow rule at the end, this is necessary since by default all devices without a matching filter rule will not auto-connect.
Filter strings in this format can be easily created with the RHEV-M USB filter editor tool.