From: ivan Date: Mon, 28 Feb 2011 23:42:46 +0000 (+0000) Subject: periods become underscores in router.ddx interface names too X-Git-Tag: freeside_2_3_0~544 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8c60c13c61af9bb555bba77f3591b378f4c3b72e periods become underscores in router.ddx interface names too --- 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