From: ivan Date: Thu, 6 Oct 2011 01:21:10 +0000 (+0000) Subject: fix interface addition for ports with dashes (Juniper, others), RT#14703 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1c39f3a433f4ccf64be6f043978bf3468117d9f4 fix interface addition for ports with dashes (Juniper, others), RT#14703 --- 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