Fix bridging in net-common
authorSebastian Gebhard <sege@fs.ei.tum.de>
Wed, 4 Sep 2013 13:12:02 +0000 (13:12 +0000)
committerKlaus Aehlig <aehlig@google.com>
Mon, 9 Sep 2013 09:28:29 +0000 (11:28 +0200)
commite46de62a05c6d05554cc7859cea258b5a63c6154
treef6dbfecd9701c731b780e2e500dc239314cecbed
parente2bbdded9029cc121b6f81f78733c0f9d4832b3a
Fix bridging in net-common

Bridging does not work correctly in net-common. The parameters passed
by Ganeti are put in /var/run/ganeti/xen-hypervisor/nic/$domname/$devid
and read again from there before running the setup functions according
to the $MODE which is read from the file.

When using MODE=bridged, the script expects to get the name of the
bridge passed as $BRIDGE, but is actually stored and passed as $LINK.
This patch fixes the issue.

Signed-off-by: Sebastian Gebhard <sege@fs.ei.tum.de>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
tools/net-common.in