When linking to devices, use the DNS name in preference to the IP
This commit is contained in:
@@ -66,8 +66,8 @@
|
||||
</td>
|
||||
[% END %]
|
||||
<td>Switch Port</td>
|
||||
<td><a href="[% device_ports %]&q=[% node.switch | url %]&f=[% node.port | url %]&c_nodes=on&c_neighbor=on">[% node.switch %] [ [% node.port %] ]</a>
|
||||
[% ' (' _ node.device.dns.remove(settings.domain_suffix) _ ')' IF node.device.dns %]
|
||||
<td><a href="[% device_ports %]&q=[% node.device.dns || node.switch %]&f=[% node.port %]&c_nodes=on&c_neighbors=on">[% node.switch %] [ [% node.port %] ]</a>
|
||||
[% ' (' _ node.device.dns _ ')' IF node.device.dns %]
|
||||
[% ' <span class="label label-warning">A</span>' IF NOT node.active %]
|
||||
</td>
|
||||
[% IF params.stamps %]
|
||||
@@ -97,8 +97,8 @@
|
||||
</td>
|
||||
[% END %]
|
||||
<td>Switch Port</td>
|
||||
<td><a href="[% device_ports %]&q=[% port.ip | url %]&f=[% port.port | url %]&c_nodes=on&c_neighbor=on">[% port.ip %] [ [% port.port %] ]</a>
|
||||
[% ' (' _ port.device.dns.remove(settings.domain_suffix) _ ')' IF port.device.dns %]
|
||||
<td><a href="[% device_ports %]&q=[% port.device.dns || port.ip %]&f=[% port.port %]&c_mac=on&c_nodes=on&c_neighbors=on">[% port.ip %] [ [% port.port %] ]</a>
|
||||
[% ' (' _ port.device.dns _ ')' IF port.device.dns %]
|
||||
</td>
|
||||
[% IF params.stamps %]
|
||||
<td>[% port.creation %]</td>
|
||||
|
||||
Reference in New Issue
Block a user