@@ -421,7 +421,7 @@ L<DBIx::Class> trace enabled
|
|||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
In case of issues with the colored output, setting the environment variable
|
In case of issues with the colored output, setting the environment variable
|
||||||
C<ANSI_COLORS_DISABLED> can be used to suppress it.
|
C<ANSI_COLORS_DISABLED> can be used to suppress it.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ sub best_status {
|
|||||||
my $cur_status = '';
|
my $cur_status = '';
|
||||||
|
|
||||||
foreach my $status (reverse @{ $job->_statuslist }) {
|
foreach my $status (reverse @{ $job->_statuslist }) {
|
||||||
next if $status->phase
|
next if $status->phase
|
||||||
and $status->phase !~ m/^(?:early|main|store|late)$/;
|
and $status->phase !~ m/^(?:early|main|store|late)$/;
|
||||||
|
|
||||||
if ($status->level >= $cur_level) {
|
if ($status->level >= $cur_level) {
|
||||||
@@ -123,7 +123,7 @@ sub finalise_status {
|
|||||||
my $max_level = Status->error()->level;
|
my $max_level = Status->error()->level;
|
||||||
|
|
||||||
foreach my $status (reverse @{ $job->_statuslist }) {
|
foreach my $status (reverse @{ $job->_statuslist }) {
|
||||||
next if $status->phase
|
next if $status->phase
|
||||||
and $status->phase !~ m/^(?:check|early|main|store|late)$/;
|
and $status->phase !~ m/^(?:check|early|main|store|late)$/;
|
||||||
|
|
||||||
# done() from check phase should not be the action's done()
|
# done() from check phase should not be the action's done()
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ sub fixup_device_auth {
|
|||||||
push @new_stanzas, $stanza;
|
push @new_stanzas, $stanza;
|
||||||
}
|
}
|
||||||
|
|
||||||
# legacy config
|
# legacy config
|
||||||
# note: read strings tried before write
|
# note: read strings tried before write
|
||||||
# note: read-write is no longer used for read operations
|
# note: read-write is no longer used for read operations
|
||||||
|
|
||||||
|
|||||||
@@ -100,18 +100,18 @@ sub snmp_comm_reindex {
|
|||||||
}
|
}
|
||||||
$prefix ||= 'vlan-';
|
$prefix ||= 'vlan-';
|
||||||
|
|
||||||
if ($vlan =~ /^[0-9]+$/i && $vlan) {
|
if ($vlan =~ /^[0-9]+$/i && $vlan) {
|
||||||
debug sprintf '[%s] reindexing to "%s%s" (ver: %s, class: %s)',
|
debug sprintf '[%s] reindexing to "%s%s" (ver: %s, class: %s)',
|
||||||
$device->ip, $prefix, $vlan, $ver, $snmp->class;
|
$device->ip, $prefix, $vlan, $ver, $snmp->class;
|
||||||
$snmp->update(Context => ($prefix . $vlan));
|
$snmp->update(Context => ($prefix . $vlan));
|
||||||
} elsif ($vlan =~ /^[a-z0-9]+$/i && $vlan) {
|
} elsif ($vlan =~ /^[a-z0-9]+$/i && $vlan) {
|
||||||
debug sprintf '[%s] reindexing to "%s" (ver: %s, class: %s)',
|
debug sprintf '[%s] reindexing to "%s" (ver: %s, class: %s)',
|
||||||
$device->ip, $vlan, $ver, $snmp->class;
|
$device->ip, $vlan, $ver, $snmp->class;
|
||||||
$snmp->update(Context => ($vlan));
|
$snmp->update(Context => ($vlan));
|
||||||
} else {
|
} else {
|
||||||
debug sprintf '[%s] reindexing without context (ver: %s, class: %s)',
|
debug sprintf '[%s] reindexing without context (ver: %s, class: %s)',
|
||||||
$device->ip, $ver, $snmp->class;
|
$device->ip, $ver, $snmp->class;
|
||||||
$snmp->update(Context => '');
|
$snmp->update(Context => '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<th class="nd_center-cell">Delete</th>
|
<th class="nd_center-cell">Delete</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% SET count = 0 %]
|
[% SET count = 0 %]
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
[% SET count = count + 1 %]
|
[% SET count = count + 1 %]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr
|
<tr
|
||||||
[% ' class="nd_jobqueueitem success"' IF row.status == 'done' %]
|
[% ' class="nd_jobqueueitem success"' IF row.status == 'done' %]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell"></td>
|
<td class="nd_center-cell"></td>
|
||||||
<td class="nd_center-cell"><input data-form="add" name="mac" type="text"></td>
|
<td class="nd_center-cell"><input data-form="add" name="mac" type="text"></td>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<th class="nd_center-cell">Time Elapsed</th>
|
<th class="nd_center-cell">Time Elapsed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% WHILE (row = results.next) %]
|
[% WHILE (row = results.next) %]
|
||||||
<tr
|
<tr
|
||||||
[% IF NOT mac AND row.action == 'macsuck' %]
|
[% IF NOT mac AND row.action == 'macsuck' %]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell"><input data-form="add" name="dns" type="text"></td>
|
<td class="nd_center-cell"><input data-form="add" name="dns" type="text"></td>
|
||||||
<td class="nd_center-cell"><input data-form="add" name="ip" type="text"></td>
|
<td class="nd_center-cell"><input data-form="add" name="ip" type="text"></td>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<th class="nd_center-cell">Time Elapsed</th>
|
<th class="nd_center-cell">Time Elapsed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% WHILE (row = results.next) %]
|
[% WHILE (row = results.next) %]
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell">[% row.action.ucfirst | html_entity %]</td>
|
<td class="nd_center-cell">[% row.action.ucfirst | html_entity %]</td>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<th class="nd_center-cell">Try Again</th>
|
<th class="nd_center-cell">Try Again</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell">[% row.backend | html_entity %]</td>
|
<td class="nd_center-cell">[% row.backend | html_entity %]</td>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell">
|
<td class="nd_center-cell">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<th nowrap>Last Discovery</th>
|
<th nowrap>Last Discovery</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
[% NEXT IF NOT row.remote_ip %]
|
[% NEXT IF NOT row.remote_ip %]
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell"><input data-form="add" name="fullname" type="text"></td>
|
<td class="nd_center-cell"><input data-form="add" name="fullname" type="text"></td>
|
||||||
<td class="nd_center-cell"><input data-form="add" name="username" type="text"></td>
|
<td class="nd_center-cell"><input data-form="add" name="username" type="text"></td>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[% SET user_can_port_control = user_has_role('port_control') %]
|
[% SET user_can_port_control = user_has_role('port_control') %]
|
||||||
<table class="table table-condensed table-striped">
|
<table class="table table-condensed table-striped">
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>System Name</td>
|
<td>System Name</td>
|
||||||
<td>[% d.name %]</td>
|
<td>[% d.name %]</td>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
[% END %]
|
[% END %]
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr>
|
<tr>
|
||||||
[% FOREACH col IN columns %]
|
[% FOREACH col IN columns %]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<th>Count</th>
|
<th>Count</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<th class="nd_center-cell">Action</th>
|
<th class="nd_center-cell">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell">-</td>
|
<td class="nd_center-cell">-</td>
|
||||||
<td class="nd_center-cell">[% session.logged_in_user | html_entity %]</td>
|
<td class="nd_center-cell">[% session.logged_in_user | html_entity %]</td>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<th class="nd_center-cell">Percent Utilization</th>
|
<th class="nd_center-cell">Percent Utilization</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') %]?subnet=[% row.subnet | uri %]&daterange=[% params.daterange | uri %]&age_invert=[% params.age_invert | uri %]&limit=[% row.subnet_size | uri %]">
|
<td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') %]?subnet=[% row.subnet | uri %]&daterange=[% params.daterange | uri %]&age_invert=[% params.age_invert | uri %]&limit=[% row.subnet_size | uri %]">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
[% END %]
|
[% END %]
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% WHILE (row = macs.next) %]
|
[% WHILE (row = macs.next) %]
|
||||||
[% IF row.nbname %]
|
[% IF row.nbname %]
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
[% END %]
|
[% END %]
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% WHILE (row = ips.next) %]
|
[% WHILE (row = ips.next) %]
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user