inlet/snmp: accept subnets for communities

Also deprecate `default-community`.
This commit is contained in:
Vincent Bernat
2022-07-31 23:38:05 +02:00
parent f1585f3e6c
commit 1bbaf4de24
10 changed files with 204 additions and 33 deletions

View File

@@ -29,7 +29,8 @@ var prettyC = pretty.Config{
SkipZeroFields: true,
IncludeUnexported: false,
Formatter: map[reflect.Type]interface{}{
reflect.TypeOf(net.IP{}): fmt.Sprint,
reflect.TypeOf(net.IP{}): fmt.Sprint,
reflect.TypeOf(SubnetMap[string]{}): fmt.Sprint,
},
}