From 0af6df3121af37e30cd97f7d2a7ca3d79708a5ea Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 7 Jun 2018 10:55:30 -0400 Subject: [PATCH] Fixes #2150: Fix display of LLDP neighbors when interface name contains a colon --- netbox/templates/dcim/device_lldp_neighbors.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device_lldp_neighbors.html b/netbox/templates/dcim/device_lldp_neighbors.html index 4fe914f64..0e423ad56 100644 --- a/netbox/templates/dcim/device_lldp_neighbors.html +++ b/netbox/templates/dcim/device_lldp_neighbors.html @@ -53,7 +53,7 @@ $(document).ready(function() { success: function(json) { $.each(json['get_lldp_neighbors'], function(iface, neighbors) { 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 var configured_device = row.children('td.configured_device').attr('data');