move device_auth build to be with community defaults setting
This commit is contained in:
@@ -60,6 +60,9 @@ if ((setting('snmp_auth') and 0 == scalar @{ setting('snmp_auth') })
|
||||
config->{'community_rw'} = [ @{setting('community_rw')}, 'private' ];
|
||||
}
|
||||
|
||||
# fix up device_auth (or create it from old snmp_auth and community settings)
|
||||
config->{'device_auth'} = [ App::Netdisco::Util::SNMP::fixup_device_auth() ];
|
||||
|
||||
# defaults for workers
|
||||
setting('workers')->{queue} ||= 'PostgreSQL';
|
||||
if (exists setting('workers')->{interactives}
|
||||
@@ -118,9 +121,6 @@ foreach my $name (qw/discover_only macsuck_only arpnip_only nbtstat_only/) {
|
||||
push @{setting($name)}, @{ setting('devices_only') };
|
||||
}
|
||||
|
||||
# fix up device_auth (or create it from old snmp_auth setting)
|
||||
config->{'device_auth'} = [ App::Netdisco::Util::SNMP::fixup_device_auth() ];
|
||||
|
||||
# legacy config item names
|
||||
|
||||
config->{'devport_vlan_limit'} =
|
||||
|
||||
Reference in New Issue
Block a user