Commit 99441af4 authored by Leigh B Stoller's avatar Leigh B Stoller

Do not return control interfaces that underly vinterfaces; they do not

need to get setup and should not be messed with.
parent 581a51fe
......@@ -2073,7 +2073,9 @@ COMMAND_PROTOTYPE(doifconfig)
/*
* First, return config info for physical interfaces underlying
* the virtual interfaces or delay interfaces. These are marked
* with a current_speed!=0 but no IP address.
* with a current_speed!=0 but no IP address. Note that we never
* want to return control network interfaces here, even though
* there might be vinterfaces on top of a control interface.
*/
if (vers >= 18 && !reqp->isvnode) {
char *aliasstr;
......@@ -2082,6 +2084,8 @@ COMMAND_PROTOTYPE(doifconfig)
" i.current_speed,i.duplex "
" from interfaces as i "
"where i.current_speed!='0' and "
" i.current_speed!='' and "
" i.role!='ctrl' and "
" (i.IP='' or i.IP is null) and "
" i.role='expt' and i.node_id='%s'",
4, reqp->pnodeid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment