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
02c9af99
Commit
02c9af99
authored
Aug 22, 2017
by
Leigh B Stoller
Browse files
Replace card with iface in join.
parent
36f81cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/named_setup.in
View file @
02c9af99
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
# Copyright (c) 2000-201
7
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -154,7 +154,7 @@ $db_result =
"
left join interfaces as i on i.node_id=n.phys_nodeid
"
.
"
left join interfaces as i2 on i2.node_id=n.node_id
"
.
"
left join reserved as r on r.node_id=n.node_id
"
.
"
where n.role='virtnode' and i2.
card
is null and
"
.
"
where n.role='virtnode' and i2.
iface
is null and
"
.
"
(i.IP is not null or n.jailip is not null) and
"
.
"
i.role='
"
.
TBDB_IFACEROLE_CONTROL
()
.
"
'
");
...
...
@@ -170,7 +170,7 @@ $db_result =
"
on n.phys_nodeid=i.node_id and n.node_id!=i.node_id
"
.
"
where n.role='testnode'
"
.
"
and (i.IP is not null or n.jailip is not null)
"
.
"
and (i.
card
is null or
"
.
"
and (i.
iface
is null or
"
.
"
i.role='
"
.
TBDB_IFACEROLE_GW
()
.
"
')
");
process_nodes
(
$db_result
);
...
...
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