[#74] Device Name / DNS mismatches report
This commit is contained in:
23
Netdisco/share/views/ajax/report/devicednsmismatch.tt
Normal file
23
Netdisco/share/views/ajax/report/devicednsmismatch.tt
Normal file
@@ -0,0 +1,23 @@
|
||||
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>DNS</th>
|
||||
<th>IP Address</th>
|
||||
<th>Contact</th>
|
||||
<th>Location</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
[% WHILE (row = results.next) %]
|
||||
<tr>
|
||||
<td><a href="[% search_device %]&q=[% row.dns || row.ip | uri %]">
|
||||
[% row.name | html_entity %]</a>
|
||||
<td>[% row.dns | html_entity %]</td>
|
||||
<td>[% row.ip | html_entity %]</td>
|
||||
<td>[% row.contact | html_entity %]</td>
|
||||
<td>[% row.location | html_entity %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
13
Netdisco/share/views/ajax/report/devicednsmismatch_csv.tt
Normal file
13
Netdisco/share/views/ajax/report/devicednsmismatch_csv.tt
Normal file
@@ -0,0 +1,13 @@
|
||||
[% USE CSV -%]
|
||||
[% CSV.dump([ 'Name' 'DNS' 'IP Address' 'Contact' 'Location' ]) %]
|
||||
|
||||
[% WHILE (row = results.next) %]
|
||||
[% mylist = [] %]
|
||||
[% mylist.push(row.name) %]
|
||||
[% mylist.push(row.dns) %]
|
||||
[% mylist.push(row.ip) %]
|
||||
[% mylist.push(row.contact) %]
|
||||
[% mylist.push(row.location) %]
|
||||
[% CSV.dump(mylist) %]
|
||||
|
||||
[% END %]
|
||||
Reference in New Issue
Block a user