Merge branch 'master' of ssh://git.code.sf.net/p/netdisco/netdisco-ng into og-agg
This commit is contained in:
		| @@ -307,7 +307,7 @@ within the L<Developer|App::Netdisco::Manual::Developing> documentation. | ||||
|  | ||||
| =head1 Caveats | ||||
|  | ||||
| The Wireless, IP Phone and NetBIOS Node properies are not yet shown. | ||||
| NetBIOS Node properies are not yet shown. | ||||
|  | ||||
| =head1 AUTHOR | ||||
|  | ||||
|   | ||||
| @@ -399,9 +399,10 @@ operations. See L<SNMP> for more info. | ||||
|  | ||||
| Value: Boolean. Default: C<false>. | ||||
|  | ||||
| Setting this to C<true> will allow the bulkwalk of devices that have tables | ||||
| with non-increasing OIDs. The default is to not allow this behavior, to | ||||
| prevent discovery on problem devices from looping indefinitely. Requires | ||||
| Setting this to C<true> prevents bulkwalk of device tables with | ||||
| non-increasing OIDs throwing an error C<OID not increasing> when encountered. | ||||
| The default is to allow non-increasing OIDs during bulkwalk (which may, in | ||||
| very badly performing SNMP agents, result in a never-ending loop).  Requires | ||||
| Net-SNMP 5.3 or higher. | ||||
|  | ||||
| =head3 C<snmpver> | ||||
|   | ||||
| @@ -16,10 +16,12 @@ register_report( | ||||
|  | ||||
| get '/ajax/content/report/portmultinodes' => require_login sub { | ||||
|     my @results = schema('netdisco')->resultset('Device')->search( | ||||
|         { 'ports.remote_ip' => undef, 'nodes.active' => 1 }, | ||||
|         {   result_class => 'DBIx::Class::ResultClass::HashRefInflator', | ||||
|             select       => [ 'ip', 'dns', 'name' ], | ||||
|             join       => { 'ports' => 'nodes' }, | ||||
|         {   'ports.remote_ip' => undef, | ||||
|             'nodes.active'    => 1, | ||||
|             'wireless.port'   => undef | ||||
|         }, | ||||
|         {   select => [ 'ip', 'dns', 'name' ], | ||||
|             join       => { 'ports' => [ 'wireless', 'nodes' ] }, | ||||
|             '+columns' => [ | ||||
|                 { 'port'        => 'ports.port' }, | ||||
|                 { 'description' => 'ports.name' }, | ||||
| @@ -29,7 +31,7 @@ get '/ajax/content/report/portmultinodes' => require_login sub { | ||||
|             having   => \[ 'count(nodes.mac) > ?', [ count => 1 ] ], | ||||
|             order_by => { -desc => [qw/count/] }, | ||||
|         } | ||||
|     )->all; | ||||
|     )->hri->all; | ||||
|  | ||||
|     return unless scalar @results; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user