diff --git a/Netdisco/Changes b/Netdisco/Changes index 4df0f2c3..1bbbc46e 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -10,6 +10,7 @@ * Kwalitee fixes * Change default number of pollers to 10 + * Default netmap depth set to 8 [BUG FIXES] diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Neighbors.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Neighbors.pm index dc283eba..ded2d6bc 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Neighbors.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Neighbors.pm @@ -57,7 +57,7 @@ get '/ajax/data/device/netmap' => require_login sub { my $vlan = param('vlan'); undef $vlan if (defined $vlan and $vlan !~ m/^\d+$/); - my $depth = param('depth'); + my $depth = (param('depth') || 8); undef $depth if (defined $depth and $depth !~ m/^\d+$/); my $device = schema('netdisco')->resultset('Device') diff --git a/Netdisco/share/views/sidebar/device/netmap.tt b/Netdisco/share/views/sidebar/device/netmap.tt index cfa8b00b..d46eaaa5 100644 --- a/Netdisco/share/views/sidebar/device/netmap.tt +++ b/Netdisco/share/views/sidebar/device/netmap.tt @@ -11,7 +11,7 @@ Draw to Depth:
Filter by VLAN: