mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
Fixes #2150: Fix display of LLDP neighbors when interface name contains a colon
This commit is contained in:
parent
e0616d933f
commit
0af6df3121
@ -53,7 +53,7 @@ $(document).ready(function() {
|
|||||||
success: function(json) {
|
success: function(json) {
|
||||||
$.each(json['get_lldp_neighbors'], function(iface, neighbors) {
|
$.each(json['get_lldp_neighbors'], function(iface, neighbors) {
|
||||||
var neighbor = neighbors[0];
|
var neighbor = neighbors[0];
|
||||||
var row = $('#' + iface.split(".")[0].replace(/(\/)/g, "\\$1"));
|
var row = $('#' + iface.split(".")[0].replace(/([\/:])/g, "\\$1"));
|
||||||
|
|
||||||
// Glean configured hostnames/interfaces from the DOM
|
// Glean configured hostnames/interfaces from the DOM
|
||||||
var configured_device = row.children('td.configured_device').attr('data');
|
var configured_device = row.children('td.configured_device').attr('data');
|
||||||
|
Loading…
Reference in New Issue
Block a user