periods become underscores in router.ddx interface names too
authorivan <ivan>
Mon, 28 Feb 2011 23:42:46 +0000 (23:42 +0000)
committerivan <ivan>
Mon, 28 Feb 2011 23:42:46 +0000 (23:42 +0000)
FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm

index 1cc5d2a..f2194f8 100644 (file)
@@ -137,7 +137,8 @@ sub add_router {
 sub add_interface {
   my($self, $router_ip, $interface, $serviceid ) = @_;
 
-  $interface =~ s(\/)(_)g;
+  $interface =~ s(\/)(_)g; #slashes become underscores
+  $interface =~ s(\.)(_)g; #periods too, huh
 
   #should just use a proper XML parser huh