[PATCH] xenserver: Fix bringing up VLAN PIFs.
[PATCH] xenserver: Fix bringing up VLAN PIFs.

From d77ffabfbcf9eb04b7e69ff6b34e12f000d314ee Mon Sep 17 00:00:00 2001
Date: Mon, 22 Feb 2010 13:08:10 -0800
In configure_datapath(), bringing up a VLAN PIF's datapath is no different
from bringing up a non-VLAN PIF's datapath, but the code was making
unnecessary distinctions.  Also, the test
	if parent and datapath:
did not work at all, because there was no variable named 'datapath' in
scope and no obvious source of one.

In preconfigure(), it then becomes necessary to create a VLAN bridge for a
VLAN PIF, in a straightforward way.

Signed-off-by: Ben Pfaff <6f50513b21952446fbc8c95a8f361b7aa434b7c7@nicira.com>
Signed-off-by: Ian Campbell <9be92b3dbbd6611e3e4c9209fb3d04b4919e7cca@citrix.com>
---
 ...ensource_libexec_InterfaceReconfigureVswitch.py |   34 ++++++++++---------
 1 files changed, 18 insertions(+), 16 deletions(-)

thomassa/xen-api,rafalmiel/xen-api,salvocambria/xen-api,thomassa/xen-api,agimofcarmen/xen-api,srowe/xen-api,rafalmiel/xen-api,agimofcarmen/xen-api,huizh/xen-api,koushikcgit/xen-api,vasilenkomike/xen-api,guard163/xen-api,salvocambria/xen-api,Frezzle/xen-api,djs55/xen-api,cheng--zhang/xen-api,cheng-z/xen-api,rafalmiel/xen-api,robertbreker/xen-api,Frezzle/xen-api,salvocambria/xen-api,cheng--zhang/xen-api,thomassa/xen-api,anoobs/xen-api,robertbreker/xen-api,anoobs/xen-api,djs55/xen-api,cheng--zhang/xen-api,anoobs/xen-api,vasilenkomike/xen-api,anoobs/xen-api,ravippandey/xen-api,djs55/xen-api,agimofcarmen/xen-api,thomassa/xen-api,huizh/xen-api,simonjbeaumont/xen-api,cheng-z/xen-api,rafalmiel/xen-api,srowe/xen-api,Frezzle/xen-api,koushikcgit/xen-api,srowe/xen-api,anoobs/xen-api,euanh/xen-api,agimofcarmen/xen-api,jjd27/xen-api,ravippandey/xen-api,cheng--zhang/xen-api,cheng--zhang/xen-api,vasilenkomike/xen-api,simonjbeaumont/xen-api,huizh/xen-api,simonjbeaumont/xen-api,robertbreker/xen-api,cheng-z/xen-api,thomassa/xen-api,ravippandey/xen-api,simonjbeaumont/xen-api,koushikcgit/xen-api,agimofcarmen/xen-api,anoobs/xen-api,simonjbeaumont/xen-api,djs55/xen-api,huizh/xen-api,jjd27/xen-api,rafalmiel/xen-api,robertbreker/xen-api,koushikcgit/xen-api,Frezzle/xen-api,guard163/xen-api,guard163/xen-api,cheng-z/xen-api,cheng-z/xen-api,euanh/xen-api,Frezzle/xen-api,cheng-z/xen-api,huizh/xen-api,guard163/xen-api,salvocambria/xen-api,guard163/xen-api,huizh/xen-api,thomassa/xen-api,euanh/xen-api,simonjbeaumont/xen-api,cheng--zhang/xen-api,koushikcgit/xen-api,ravippandey/xen-api,jjd27/xen-api,jjd27/xen-api,euanh/xen-api,robertbreker/xen-api,jjd27/xen-api,salvocambria/xen-api,jjd27/xen-api,ravippandey/xen-api,euanh/xen-api,guard163/xen-api,vasilenkomike/xen-api,srowe/xen-api,srowe/xen-api,koushikcgit/xen-api,euanh/xen-api,rafalmiel/xen-api,djs55/xen-api,cheng-z/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,ravippandey/xen-api,salvocambria/xen-api,djs55/xen-api,agimofcarmen/xen-api