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