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

@@ -10,6 +10,7 @@
* Kwalitee fixes * Kwalitee fixes
* Change default number of pollers to 10 * Change default number of pollers to 10
* Default netmap depth set to 8
[BUG FIXES] [BUG FIXES]

View File

@@ -57,7 +57,7 @@ get '/ajax/data/device/netmap' => require_login sub {
my $vlan = param('vlan'); my $vlan = param('vlan');
undef $vlan if (defined $vlan and $vlan !~ m/^\d+$/); 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+$/); undef $depth if (defined $depth and $depth !~ m/^\d+$/);
my $device = schema('netdisco')->resultset('Device') my $device = schema('netdisco')->resultset('Device')

View File

@@ -11,7 +11,7 @@
<em class="muted nd_sidebar-label">Draw to Depth:</em><br/> <em class="muted nd_sidebar-label">Draw to Depth:</em><br/>
<input id="nd_port-query" placeholder="" type="number" <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"/> rel="tooltip" data-placement="left" data-offset="5" data-title="Max Depth"/>
<em class="muted nd_sidebar-label">Filter by VLAN:</em><br/> <em class="muted nd_sidebar-label">Filter by VLAN:</em><br/>