Neighbor device links to both device and port (fragfutter)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
* Ignore devices with "phone" in their CDP/LLDP platform description
|
* Ignore devices with "phone" in their CDP/LLDP platform description
|
||||||
* Change log format to contain UTC timestamp
|
* Change log format to contain UTC timestamp
|
||||||
* Link to VLAN search by name from VLAN Inventory report
|
* Link to VLAN search by name from VLAN Inventory report
|
||||||
|
* Neighbor device links to both device and port (fragfutter)
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
[% END %]
|
[% END %]
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
[% FOREACH row IN results %]
|
[% FOREACH row IN results %]
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nd_center-cell nd_devport-icon">
|
<td class="nd_center-cell nd_devport-icon">
|
||||||
@@ -248,10 +248,14 @@
|
|||||||
[% ELSIF row.remote_type AND row.remote_type.match('(cisco\s+AIR-[L|C]?AP|-K9W8-|^AP:\s)') %]
|
[% ELSIF row.remote_type AND row.remote_type.match('(cisco\s+AIR-[L|C]?AP|-K9W8-|^AP:\s)') %]
|
||||||
<i class="icon-signal"></i>
|
<i class="icon-signal"></i>
|
||||||
[% END %]
|
[% END %]
|
||||||
<a href="[% uri_for('/device',
|
<a href="[% uri_for('/device', self_options) %]&q=[% row.neighbor.ip | uri %]">
|
||||||
self_options) %]&q=[% row.neighbor.ip | uri %]&f=[% row.remote_port | uri %]&prefer=port">
|
[% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %]</a>
|
||||||
[% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip | html_entity %]
|
[% IF row.remote_port %]
|
||||||
[% ' - ' IF row.remote_port %][% row.remote_port | html_entity %]</a><br/>
|
-
|
||||||
|
<a href="[% uri_for('/device', self_options) %]&q=[% row.neighbor.ip | uri %]&f=[% row.remote_port | uri %]&prefer=port">
|
||||||
|
[% row.remote_port | html_entity %]</a>
|
||||||
|
[% END %]
|
||||||
|
<br/>
|
||||||
[% IF params.neigh_id and (row.remote_id or row.remote_type) %]
|
[% IF params.neigh_id and (row.remote_id or row.remote_type) %]
|
||||||
([% 'id: '_ row.remote_id IF row.remote_id %]
|
([% 'id: '_ row.remote_id IF row.remote_id %]
|
||||||
[% ' type: '_ row.remote_type IF row.remote_type %])<br/>
|
[% ' type: '_ row.remote_type IF row.remote_type %])<br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user