projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec7674d
)
fix interface addition for ports with dashes (Juniper, others), RT#14703
author
ivan
<ivan>
Thu, 6 Oct 2011 01:21:11 +0000
(
01:21
+0000)
committer
ivan
<ivan>
Thu, 6 Oct 2011 01:21:11 +0000
(
01:21
+0000)
FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
patch
|
blob
|
history
diff --git
a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
index
bd016a1
..
6b89090
100644
(file)
--- a/
FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
+++ b/
FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm
@@
-178,6
+178,7
@@
sub add_interface {
$interface =~ s(\/)(_)g; #slashes become underscores
$interface =~ s(\.)(_)g; #periods too, huh
$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
#should just use a proper XML parser huh