add device ports into mac "node" search
This commit is contained in:
		| @@ -46,7 +46,7 @@ | ||||
|     </tr> | ||||
|     [% SET first_row = 0 %] | ||||
|     [% END %] | ||||
|     [% WHILE (node = ports.next) %] | ||||
|     [% WHILE (node = sightings.next) %] | ||||
|     <tr> | ||||
|       <td> </td> | ||||
|       [% IF params.vendor %] | ||||
| @@ -63,5 +63,21 @@ | ||||
|       [% END %] | ||||
|     </tr> | ||||
|     [% END %] | ||||
|     [% WHILE (port = ports.next) %] | ||||
|     <tr> | ||||
|       <td> </td> | ||||
|       [% IF params.vendor %] | ||||
|       <td> </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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user