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