Merge branch 'master' into og-api-tokens-simple
This commit is contained in:
13
Changes
13
Changes
@@ -1,3 +1,16 @@
|
|||||||
|
2.042000 - 2019-03-17
|
||||||
|
|
||||||
|
[NEW FEATURES]
|
||||||
|
|
||||||
|
* Implementation of API authentication and Swagger-UI (pyro3d and ollyg)
|
||||||
|
|
||||||
|
2.041002 - 2019-03-17
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* fix precedence of device_auth over snmp_auth loading
|
||||||
|
* check legacy config name for nbtstat_response_timeout
|
||||||
|
|
||||||
2.041001 - 2019-03-15
|
2.041001 - 2019-03-15
|
||||||
|
|
||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|||||||
15
MANIFEST
15
MANIFEST
@@ -230,6 +230,7 @@ lib/App/Netdisco/Worker/Plugin/PortName.pm
|
|||||||
lib/App/Netdisco/Worker/Plugin/Power.pm
|
lib/App/Netdisco/Worker/Plugin/Power.pm
|
||||||
lib/App/Netdisco/Worker/Plugin/Psql.pm
|
lib/App/Netdisco/Worker/Plugin/Psql.pm
|
||||||
lib/App/Netdisco/Worker/Plugin/Renumber.pm
|
lib/App/Netdisco/Worker/Plugin/Renumber.pm
|
||||||
|
lib/App/Netdisco/Worker/Plugin/SetUserToken.pm
|
||||||
lib/App/Netdisco/Worker/Plugin/Show.pm
|
lib/App/Netdisco/Worker/Plugin/Show.pm
|
||||||
lib/App/Netdisco/Worker/Plugin/Stats.pm
|
lib/App/Netdisco/Worker/Plugin/Stats.pm
|
||||||
lib/App/Netdisco/Worker/Plugin/Vlan.pm
|
lib/App/Netdisco/Worker/Plugin/Vlan.pm
|
||||||
@@ -367,10 +368,24 @@ share/schema_versions/App-Netdisco-DB-50-51-PostgreSQL.sql
|
|||||||
share/schema_versions/App-Netdisco-DB-51-52-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-51-52-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-52-53-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-52-53-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-53-54-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-53-54-PostgreSQL.sql
|
||||||
|
share/schema_versions/App-Netdisco-DB-54-55-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-6-7-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-6-7-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-7-8-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-7-8-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-8-9-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-8-9-PostgreSQL.sql
|
||||||
share/schema_versions/App-Netdisco-DB-9-10-PostgreSQL.sql
|
share/schema_versions/App-Netdisco-DB-9-10-PostgreSQL.sql
|
||||||
|
share/swagger-ui/favicon-16x16.png
|
||||||
|
share/swagger-ui/favicon-32x32.png
|
||||||
|
share/swagger-ui/index.html
|
||||||
|
share/swagger-ui/oauth2-redirect.html
|
||||||
|
share/swagger-ui/swagger-ui-bundle.js
|
||||||
|
share/swagger-ui/swagger-ui-bundle.js.map
|
||||||
|
share/swagger-ui/swagger-ui-standalone-preset.js
|
||||||
|
share/swagger-ui/swagger-ui-standalone-preset.js.map
|
||||||
|
share/swagger-ui/swagger-ui.css
|
||||||
|
share/swagger-ui/swagger-ui.css.map
|
||||||
|
share/swagger-ui/swagger-ui.js
|
||||||
|
share/swagger-ui/swagger-ui.js.map
|
||||||
|
share/swagger-ui/version-3.20.3
|
||||||
share/views/admintask.tt
|
share/views/admintask.tt
|
||||||
share/views/ajax/admintask/duplicatedevices.tt
|
share/views/ajax/admintask/duplicatedevices.tt
|
||||||
share/views/ajax/admintask/jobqueue.tt
|
share/views/ajax/admintask/jobqueue.tt
|
||||||
|
|||||||
10
META.json
10
META.json
@@ -48,6 +48,7 @@
|
|||||||
"Dancer::Plugin::Auth::Extensible" : "0.30",
|
"Dancer::Plugin::Auth::Extensible" : "0.30",
|
||||||
"Dancer::Plugin::DBIC" : "0.2001",
|
"Dancer::Plugin::DBIC" : "0.2001",
|
||||||
"Dancer::Plugin::Passphrase" : "v2.0.1",
|
"Dancer::Plugin::Passphrase" : "v2.0.1",
|
||||||
|
"Dancer::Plugin::Swagger" : "0",
|
||||||
"Dancer::Session::Cookie" : "0.27",
|
"Dancer::Session::Cookie" : "0.27",
|
||||||
"Data::Printer" : "0",
|
"Data::Printer" : "0",
|
||||||
"Expect" : "0",
|
"Expect" : "0",
|
||||||
@@ -119,7 +120,7 @@
|
|||||||
"provides" : {
|
"provides" : {
|
||||||
"App::Netdisco" : {
|
"App::Netdisco" : {
|
||||||
"file" : "lib/App/Netdisco.pm",
|
"file" : "lib/App/Netdisco.pm",
|
||||||
"version" : "2.041001"
|
"version" : "2.042000"
|
||||||
},
|
},
|
||||||
"App::Netdisco::AnyEvent::Nbtstat" : {
|
"App::Netdisco::AnyEvent::Nbtstat" : {
|
||||||
"file" : "lib/App/Netdisco/AnyEvent/Nbtstat.pm"
|
"file" : "lib/App/Netdisco/AnyEvent/Nbtstat.pm"
|
||||||
@@ -141,7 +142,7 @@
|
|||||||
},
|
},
|
||||||
"App::Netdisco::DB" : {
|
"App::Netdisco::DB" : {
|
||||||
"file" : "lib/App/Netdisco/DB.pm",
|
"file" : "lib/App/Netdisco/DB.pm",
|
||||||
"version" : "54"
|
"version" : "55"
|
||||||
},
|
},
|
||||||
"App::Netdisco::DB::ExplicitLocking" : {
|
"App::Netdisco::DB::ExplicitLocking" : {
|
||||||
"file" : "lib/App/Netdisco/DB/ExplicitLocking.pm"
|
"file" : "lib/App/Netdisco/DB/ExplicitLocking.pm"
|
||||||
@@ -770,6 +771,9 @@
|
|||||||
"App::Netdisco::Worker::Plugin::Renumber" : {
|
"App::Netdisco::Worker::Plugin::Renumber" : {
|
||||||
"file" : "lib/App/Netdisco/Worker/Plugin/Renumber.pm"
|
"file" : "lib/App/Netdisco/Worker/Plugin/Renumber.pm"
|
||||||
},
|
},
|
||||||
|
"App::Netdisco::Worker::Plugin::SetUserToken" : {
|
||||||
|
"file" : "lib/App/Netdisco/Worker/Plugin/SetUserToken.pm"
|
||||||
|
},
|
||||||
"App::Netdisco::Worker::Plugin::Show" : {
|
"App::Netdisco::Worker::Plugin::Show" : {
|
||||||
"file" : "lib/App/Netdisco/Worker/Plugin/Show.pm"
|
"file" : "lib/App/Netdisco/Worker/Plugin/Show.pm"
|
||||||
},
|
},
|
||||||
@@ -810,6 +814,6 @@
|
|||||||
"x_IRC" : "irc://irc.freenode.org/#netdisco",
|
"x_IRC" : "irc://irc.freenode.org/#netdisco",
|
||||||
"x_MailingList" : "https://lists.sourceforge.net/lists/listinfo/netdisco-users"
|
"x_MailingList" : "https://lists.sourceforge.net/lists/listinfo/netdisco-users"
|
||||||
},
|
},
|
||||||
"version" : "2.041001",
|
"version" : "2.042000",
|
||||||
"x_serialization_backend" : "JSON::PP version 2.97001"
|
"x_serialization_backend" : "JSON::PP version 2.97001"
|
||||||
}
|
}
|
||||||
|
|||||||
9
META.yml
9
META.yml
@@ -23,7 +23,7 @@ name: App-Netdisco
|
|||||||
provides:
|
provides:
|
||||||
App::Netdisco:
|
App::Netdisco:
|
||||||
file: lib/App/Netdisco.pm
|
file: lib/App/Netdisco.pm
|
||||||
version: '2.041001'
|
version: '2.042000'
|
||||||
App::Netdisco::AnyEvent::Nbtstat:
|
App::Netdisco::AnyEvent::Nbtstat:
|
||||||
file: lib/App/Netdisco/AnyEvent/Nbtstat.pm
|
file: lib/App/Netdisco/AnyEvent/Nbtstat.pm
|
||||||
App::Netdisco::Backend::Job:
|
App::Netdisco::Backend::Job:
|
||||||
@@ -38,7 +38,7 @@ provides:
|
|||||||
file: lib/App/Netdisco/Configuration.pm
|
file: lib/App/Netdisco/Configuration.pm
|
||||||
App::Netdisco::DB:
|
App::Netdisco::DB:
|
||||||
file: lib/App/Netdisco/DB.pm
|
file: lib/App/Netdisco/DB.pm
|
||||||
version: '54'
|
version: '55'
|
||||||
App::Netdisco::DB::ExplicitLocking:
|
App::Netdisco::DB::ExplicitLocking:
|
||||||
file: lib/App/Netdisco/DB/ExplicitLocking.pm
|
file: lib/App/Netdisco/DB/ExplicitLocking.pm
|
||||||
App::Netdisco::DB::Result::Admin:
|
App::Netdisco::DB::Result::Admin:
|
||||||
@@ -457,6 +457,8 @@ provides:
|
|||||||
file: lib/App/Netdisco/Worker/Plugin/Psql.pm
|
file: lib/App/Netdisco/Worker/Plugin/Psql.pm
|
||||||
App::Netdisco::Worker::Plugin::Renumber:
|
App::Netdisco::Worker::Plugin::Renumber:
|
||||||
file: lib/App/Netdisco/Worker/Plugin/Renumber.pm
|
file: lib/App/Netdisco/Worker/Plugin/Renumber.pm
|
||||||
|
App::Netdisco::Worker::Plugin::SetUserToken:
|
||||||
|
file: lib/App/Netdisco/Worker/Plugin/SetUserToken.pm
|
||||||
App::Netdisco::Worker::Plugin::Show:
|
App::Netdisco::Worker::Plugin::Show:
|
||||||
file: lib/App/Netdisco/Worker/Plugin/Show.pm
|
file: lib/App/Netdisco/Worker/Plugin/Show.pm
|
||||||
App::Netdisco::Worker::Plugin::Stats:
|
App::Netdisco::Worker::Plugin::Stats:
|
||||||
@@ -492,6 +494,7 @@ requires:
|
|||||||
Dancer::Plugin::Auth::Extensible: '0.30'
|
Dancer::Plugin::Auth::Extensible: '0.30'
|
||||||
Dancer::Plugin::DBIC: '0.2001'
|
Dancer::Plugin::DBIC: '0.2001'
|
||||||
Dancer::Plugin::Passphrase: v2.0.1
|
Dancer::Plugin::Passphrase: v2.0.1
|
||||||
|
Dancer::Plugin::Swagger: '0'
|
||||||
Dancer::Session::Cookie: '0.27'
|
Dancer::Session::Cookie: '0.27'
|
||||||
Data::Printer: '0'
|
Data::Printer: '0'
|
||||||
Expect: '0'
|
Expect: '0'
|
||||||
@@ -556,5 +559,5 @@ resources:
|
|||||||
homepage: http://netdisco.org/
|
homepage: http://netdisco.org/
|
||||||
license: http://opensource.org/licenses/BSD-3-Clause
|
license: http://opensource.org/licenses/BSD-3-Clause
|
||||||
repository: https://github.com/netdisco/netdisco
|
repository: https://github.com/netdisco/netdisco
|
||||||
version: '2.041001'
|
version: '2.042000'
|
||||||
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
|
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
|
||||||
|
|||||||
@@ -388,6 +388,11 @@ Set the PoE on/off status on a device port. Requires the C<-d> parameter
|
|||||||
Will dump the loaded and parsed configuration for the application. Pass a
|
Will dump the loaded and parsed configuration for the application. Pass a
|
||||||
specific configuration setting name to the C<-e> parameter to dump only that.
|
specific configuration setting name to the C<-e> parameter to dump only that.
|
||||||
|
|
||||||
|
Some configuration items like device_auth are evaluated against the ACL first.
|
||||||
|
Pass a device in C<-d> to display them:
|
||||||
|
|
||||||
|
~/bin/netdisco-do dumpconfig -d 192.0.2.1 -e device_auth
|
||||||
|
|
||||||
=head1 DEBUG OPTIONS
|
=head1 DEBUG OPTIONS
|
||||||
|
|
||||||
The flag "C<-R>" will cause any changes to the database to be rolled back
|
The flag "C<-R>" will cause any changes to the database to be rolled back
|
||||||
@@ -416,4 +421,7 @@ L<DBIx::Class> trace enabled
|
|||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
In case of issues with the colored output, setting the environment variable
|
||||||
|
C<ANSI_COLORS_DISABLED> can be used to suppress it.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use 5.010_000;
|
use 5.010_000;
|
||||||
|
|
||||||
our $VERSION = '2.041001';
|
our $VERSION = '2.042000';
|
||||||
use App::Netdisco::Configuration;
|
use App::Netdisco::Configuration;
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ config changes over time. Returns a list which can replace C<device_auth>.
|
|||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub fixup_device_auth {
|
sub fixup_device_auth {
|
||||||
my $config = (setting('snmp_auth') || setting('device_auth'));
|
my $config = (setting('device_auth') || setting('snmp_auth'));
|
||||||
my @new_stanzas = ();
|
my @new_stanzas = ();
|
||||||
|
|
||||||
# new style snmp config
|
# new style snmp config
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ service status for addresses which responded.
|
|||||||
sub nbtstat_resolve_async {
|
sub nbtstat_resolve_async {
|
||||||
my $ips = shift;
|
my $ips = shift;
|
||||||
|
|
||||||
my $timeout = setting('nbtstat_response_timeout') || 1;
|
my $timeout = (setting('nbtstat_response_timeout')
|
||||||
|
|| setting('nbtstat_timeout') || 1);
|
||||||
my $interval = setting('nbtstat_interval') || 0.02;
|
my $interval = setting('nbtstat_interval') || 0.02;
|
||||||
|
|
||||||
my $stater = App::Netdisco::AnyEvent::Nbtstat->new(
|
my $stater = App::Netdisco::AnyEvent::Nbtstat->new(
|
||||||
|
|||||||
Reference in New Issue
Block a user