summaryrefslogtreecommitdiff
path: root/FS/FS/NetworkMonitoringSystem
diff options
context:
space:
mode:
authorivan <ivan>2011-02-28 23:42:46 +0000
committerivan <ivan>2011-02-28 23:42:46 +0000
commit8c60c13c61af9bb555bba77f3591b378f4c3b72e (patch)
treefc950c5db0e4939ecc9ec03b72624f4f7c371cf4 /FS/FS/NetworkMonitoringSystem
parentae97c1ccb5052608d65ca30f073029d38d0d9a4e (diff)
periods become underscores in router.ddx interface names too
Diffstat (limited to 'FS/FS/NetworkMonitoringSystem')
-rw-r--r--FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
index 1cc5d2a..f2194f8 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