fix interface addition for ports with dashes (Juniper, others), RT#14703
authorivan <ivan>
Thu, 6 Oct 2011 01:21:11 +0000 (01:21 +0000)
committerivan <ivan>
Thu, 6 Oct 2011 01:21:11 +0000 (01:21 +0000)
FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm

index bd016a1..6b89090 100644 (file)
@@ -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