From 1c39f3a433f4ccf64be6f043978bf3468117d9f4 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 6 Oct 2011 01:21:10 +0000 Subject: [PATCH] fix interface addition for ports with dashes (Juniper, others), RT#14703 --- FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm index bd016a123..6b89090f8 100644 --- a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm +++ b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm @@ -178,6 +178,7 @@ sub add_interface { $interface =~ s(\/)(_)g; #slashes become underscores $interface =~ s(\.)(_)g; #periods too, huh + $interface =~ s(\-)(_)g; #yup, and dashes #should just use a proper XML parser huh -- 2.11.0