default netmap depth set to 8
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
* Kwalitee fixes
|
||||
* Change default number of pollers to 10
|
||||
* Default netmap depth set to 8
|
||||
|
||||
[BUG FIXES]
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<em class="muted nd_sidebar-label">Draw to Depth:</em><br/>
|
||||
<input id="nd_port-query" placeholder="" type="number"
|
||||
name="depth" value="[% params.depth | html_entity %]" type="text"
|
||||
name="depth" value="[% params.depth || 8 | html_entity %]" type="text"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Max Depth"/>
|
||||
|
||||
<em class="muted nd_sidebar-label">Filter by VLAN:</em><br/>
|
||||
|
||||
Reference in New Issue
Block a user