default netmap depth set to 8

This commit is contained in:
Oliver Gorwits
2014-02-22 08:53:59 +00:00
parent a67de5dbda
commit db8d2ed17f
3 changed files with 3 additions and 2 deletions

View File

@@ -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')