default access list for device_auth should be ipv4 and ipv6

This commit is contained in:
Oliver Gorwits
2020-02-12 16:55:16 +00:00
parent c5140e2061
commit ab6305b4cf
3 changed files with 9 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ sub fixup_device_auth {
$stanza->{tag} ||= $tag;
$stanza->{read} = 1 if !exists $stanza->{read};
$stanza->{no} ||= [];
$stanza->{only} ||= ['any'];
$stanza->{only} ||= ['group:__ANY__'];
die "error: config: snmpv2 community in device_auth must be single item, not list\n"
if ref $stanza->{community};