projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c330a1
)
r1377 + queryGateway(): don't fail on common name containing space
author
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 15:09:45 +0000
(15:09 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 15:09:45 +0000
(15:09 +0000)
inc/gateways.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/gateways.php
b/inc/gateways.php
index 95b57042e8699648ef21ab21758a6ef42462f061..40a269dfe1a6e92d3dabafd970ff77ede037dec1 100644
(file)
--- a/
inc/gateways.php
+++ b/
inc/gateways.php
@@
-93,9
+93,10
@@
function getSwitchVLANs ($object_id = 0)
if ($record['name'] == 'HW type' && !empty ($record['value']))
$hwtype = str_replace (' ', '+', $record['value']);
}
+ $endpoint = str_replace (' ', '+', $endpoints[0]);
$commands = array
(
- "connect ${endpoint
s[0]} $hwtype $swtype
${remote_username}",
+ "connect ${endpoint
} ${hwtype} ${swtype}
${remote_username}",
'listvlans',
'listports',
'listmacs'