summaryrefslogtreecommitdiff
path: root/FS/FS/NetworkMonitoringSystem
diff options
context:
space:
mode:
authorivan <ivan>2011-10-06 01:21:10 +0000
committerivan <ivan>2011-10-06 01:21:10 +0000
commit1c39f3a433f4ccf64be6f043978bf3468117d9f4 (patch)
tree218655cae3b94ed170a750d742b774183957dd3c /FS/FS/NetworkMonitoringSystem
parentaf22824cb24e024f45403d9c456ef65b2c7c6838 (diff)
fix interface addition for ports with dashes (Juniper, others), RT#14703
Diffstat (limited to 'FS/FS/NetworkMonitoringSystem')
-rw-r--r--FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
index bd016a1..6b89090 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