From: Ben Pfaff Date: Thu, 20 Aug 2009 22:39:01 +0000 (-0700) Subject: xenserver: Compute correct physical PIFs for VLANs on bonds. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb569bf8ccb5760154205d0ccdef56ff0e9c5a7;p=openvswitch xenserver: Compute correct physical PIFs for VLANs on bonds. Otherwise the bond device is considered the physical PIF of a VLAN-on-bond PIF, and various bad stuff happens. --- diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 24b160fe..301251f7 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -467,7 +467,7 @@ For a non-VLAN, non-bond master PIF, the PIF is its own physical device PIF. pifrec = db.get_pif_record(pif) if pifrec['VLAN'] != '-1': - return [get_vlan_slave_of_pif(pif)] + return get_physdev_pifs(get_vlan_slave_of_pif(pif)) elif len(pifrec['bond_master_of']) != 0: return get_bond_slaves_of_pif(pif) else: