Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a46aa6f6
Commit
a46aa6f6
authored
Aug 31, 2007
by
David Johnson
Browse files
Fix a naughty query.
parent
2c3851ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/plab/libplab.py.in
View file @
a46aa6f6
...
...
@@ -617,13 +617,12 @@ class Plab:
getFree helper function. Returns a dict of IP:node_id pairs
for the Plab nodes that currently exist in the DB.
"""
res
=
DBQueryFatal
(
"select plab_mapping.node_id,plab_id,"
"plab_mapping.hostname,IP,mac,site,latitude,"
"longitude,bwlimit"
" from plab_mapping"
" left join widearea_nodeinfo on"
" plab_mapping.node_id = "
" widearea_nodeinfo.node_id"
)
res
=
DBQueryFatal
(
"select pm.node_id,pm.plab_id,pm.hostname,"
"pm.IP,pm.mac,wni.site,wni.latitude,"
"wni.longitude,wni.bwlimit"
" from plab_mapping as pm"
" left join widearea_nodeinfo as wni on"
" pm.node_id = wni.node_id"
)
ret
=
{}
for
(
nodeid
,
plabid
,
hostname
,
ip
,
mac
,
site
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment