From f30bf552c812e29273ba5982e92c03a393ba380d Mon Sep 17 00:00:00 2001 From: Rob Hoes Date: Thu, 17 Jun 2010 17:31:00 +0100 Subject: [PATCH] CA-40910: Only copy physical PIFs on pool join On pool join, any bonds or VLANs on the joining host are supposed to be ignored. When the host reboots after the join, it will inherit the bond/VLAN setup from the pool master. Therefore, Bond and VLAN objects are not copied from the joining host to the pool. However, bond and VLAN master PIFs are, with is not good. This patch fixes that. Signed-off-by: Rob Hoes --- ocaml/xapi/xapi_pool.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/ocaml/xapi/xapi_pool.ml b/ocaml/xapi/xapi_pool.ml index fa05a15c..aa4d0f48 100644 --- a/ocaml/xapi/xapi_pool.ml +++ b/ocaml/xapi/xapi_pool.ml @@ -484,6 +484,7 @@ let update_non_vm_metadata ~__context ~rpc ~session_id = (* update PIFs *) let my_pifs = Db.PIF.get_all_records ~__context in + let my_pifs = List.filter (fun (_, pif) -> pif.API.pIF_physical) my_pifs in let (_ : API.ref_PIF option list) = List.map (protect_exn (create_or_get_pif_on_master __context rpc session_id)) my_pifs in -- 2.39.5