xenserver: Accept VLAN PIFs in pif_bridge_name().
authorBen Pfaff <blp@nicira.com>
Mon, 22 Feb 2010 20:53:17 +0000 (12:53 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 23 Feb 2010 17:51:59 +0000 (09:51 -0800)
commit6987c81c05f21c579fbe60e9b6693862abbbb762
tree1fa3f1cade222c66a9c38d5a62cea97fc2f24d5d
parent7c79588e006eb28e51ca8b715e22abce0c81f5d4
xenserver: Accept VLAN PIFs in pif_bridge_name().

pif_bridge_name() was written when the vswitch interface-reconfigure was
working with the raw Open vSwitch configuration via ovs-cfg-mod.  Then,
it made no sense to ask for the "bridge name" of a VLAN PIF, because a
VLAN PIF didn't have a bridge.

Now, however, the vSwitch interface-reconfigure works with ovs-vsctl, which
provides a thin layer over the OVS configuration that makes VLAN bridges
appear to exist.  So now it makes sense to ask for the bridge of a VLAN
PIF, and this commit enables that.

Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py