From 8c60c13c61af9bb555bba77f3591b378f4c3b72e Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 28 Feb 2011 23:42:46 +0000 Subject: [PATCH] periods become underscores in router.ddx interface names too --- FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm index 1cc5d2af5..f2194f811 100644 --- a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm +++ b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm @@ -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 -- 2.11.0