Skip to content
GitLab
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
965f635d
Commit
965f635d
authored
Mar 09, 2011
by
Leigh B Stoller
Browse files
Minor change to reflect wher we know get the vlan tag from; no longer
a lan attribute, get it directly from the vlans table.
parent
2b66364b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
965f635d
...
...
@@ -1689,7 +1689,7 @@ COMMAND_PROTOTYPE(doifconfig)
* Find all the virtual interfaces.
*/
res
=
mydb_query
(
"select v.unit,v.IP,v.mac,i.mac,v.mask,v.rtabid, "
" v.type,vll.vname,v.virtlanidx,la
.attrvalue
, "
" v.type,vll.vname,v.virtlanidx,
v
la
ns.tag
, "
" l.lanid "
" from vinterfaces as v "
"left join interfaces as i on "
...
...
@@ -1699,8 +1699,8 @@ COMMAND_PROTOTYPE(doifconfig)
"left join lans as l on "
" l.exptidx=vll.exptidx and l.vname=vll.vname and "
" l.link is null "
"left join lan
_attributes as la
on "
" la
.lanid=v.vlanid and la.attrkey='vlantag'
"
"left join
v
lan
s
on "
"
v
la
ns.id=l.lanid
"
"left join lan_attributes as la2 on "
" la2.lanid=v.vlanid and la2.attrkey='stack' "
"where v.exptidx='%d' and v.node_id='%s' and "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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