xenserver: Fix use of VLAN as primary management interface.
authorBen Pfaff <blp@nicira.com>
Wed, 20 May 2009 21:57:06 +0000 (14:57 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 May 2009 16:42:54 +0000 (09:42 -0700)
commit9e21caa0c4896324b24163fa4bef4676ad5dd439
treec7947a772a1226c321e61dc9f3d071f096b2c501
parent42b1abcb454bb4aff50131b31f05e4432c664bf5
xenserver: Fix use of VLAN as primary management interface.

xapi insists that the device that carries the IP address for a VLAN is
the bridge that it thinks the VLAN is on.  This commit makes it so.

xapi also will do the ioctl equivalent of "brctl addbr xapi#" if that
bridge appears to be missing when it reconfigures the interface.  If we
return EEXIST or any other error, then it gives up at that point.  So we
have to return "success" to that attempt regardless of whether we really
want to do so.
vswitchd/brcompatd.c
xenserver/etc_init.d_vswitch
xenserver/opt_xensource_libexec_interface-reconfigure