From 3f3de34f516f8b9491cc9e77130dd9671f7ece3b Mon Sep 17 00:00:00 2001 From: Christian Ramseyer Date: Wed, 21 Apr 2021 13:09:39 +0200 Subject: [PATCH] Allow <"> in remote_port (#782) Makes the remote_port info work better with Nokia TiMOS devices. --- lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm b/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm index 3da9ef52..122b0bd3 100644 --- a/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm +++ b/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm @@ -262,7 +262,7 @@ sub store_neighbors { $remote_port = $c_port->{$entry}; if (defined $remote_port) { # clean weird characters - $remote_port =~ s/[^\d\s\/\.,()\w:-]+//gi; + $remote_port =~ s/[^\d\s\/\.,"()\w:-]+//gi; } else { debug sprintf ' [%s] neigh - no remote port found for port %s at %s',