add device ports into mac "node" search

This commit is contained in:
Oliver Gorwits
2012-01-08 18:29:38 +00:00
parent 51c88eefdc
commit d6985e25cd
4 changed files with 49 additions and 4 deletions

View File

@@ -46,7 +46,7 @@
</tr>
[% SET first_row = 0 %]
[% END %]
[% WHILE (node = ports.next) %]
[% WHILE (node = sightings.next) %]
<tr>
<td>&nbsp;</td>
[% IF params.vendor %]
@@ -63,5 +63,21 @@
[% END %]
</tr>
[% END %]
[% WHILE (port = ports.next) %]
<tr>
<td>&nbsp;</td>
[% IF params.vendor %]
<td>&nbsp;</td>
[% END %]
<td>Switch Port</td>
<td><a href="/device?q=[% port.ip | url %]&port=[% port.port | url %]">[% port.ip %] [ [% port.port %] ]</a>
[% ' (' _ port.device.dns.remove(settings.domain_suffix) _ ')' IF port.device.dns %]
</td>
[% IF params.stamps %]
<td>[% port.creation %]</td>
<td>[% port.creation %]</td>
[% END %]
</tr>
[% END %]
</tbody>
</table>