From eeb569bf8ccb5760154205d0ccdef56ff0e9c5a7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 20 Aug 2009 15:39:01 -0700 Subject: [PATCH] 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. --- xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 24b160fef..301251f76 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: -- 2.45.2