#331 do not set community{_rw} defaults
This commit is contained in:
@@ -52,6 +52,13 @@ if (ref {} eq ref setting('database')) {
|
||||
# always set this
|
||||
$ENV{DBIC_TRACE_PROFILE} = 'console';
|
||||
|
||||
# if snmp_auth or device_auth not set, add defaults to community{_rw}
|
||||
if ((setting('snmp_auth') and 0 == scalar @{ setting('snmp_auth') })
|
||||
or (setting('device_auth') and 0 == scalar @{ setting('device_auth') })) {
|
||||
config->{'community'} = [ @{setting('community')}, 'public' ];
|
||||
config->{'community_rw'} = [ @{setting('community_rw')}, 'private' ];
|
||||
}
|
||||
|
||||
# defaults for workers
|
||||
setting('workers')->{queue} ||= 'PostgreSQL';
|
||||
if (exists setting('workers')->{interactives}
|
||||
|
||||
@@ -124,8 +124,8 @@ host_groups:
|
||||
- 'fe80::/10'
|
||||
- '127.0.0.0/8'
|
||||
device_identity: []
|
||||
community: ['public']
|
||||
community_rw: ['private']
|
||||
community: []
|
||||
community_rw: []
|
||||
snmp_auth: []
|
||||
get_community: ""
|
||||
bulkwalk_off: false
|
||||
|
||||
Reference in New Issue
Block a user