From fa6a82cb4ccdf892910e2e2edf2b34b3ea420006 Mon Sep 17 00:00:00 2001 From: Rob Hoes Date: Tue, 28 Jan 2025 15:18:12 +0000 Subject: [PATCH] CA-400272: pool.set_igmp_snooping_enabled: ignore non-managed PIFs The call currently calls `network.attach` on all networks, but this fails for PIFs that are not managed by xapi. Simply skip those. 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 b73d7fbf0dd..97e0617bff1 100644 --- a/ocaml/xapi/xapi_pool.ml +++ b/ocaml/xapi/xapi_pool.ml @@ -3309,6 +3309,7 @@ let set_igmp_snooping_enabled ~__context ~self ~value = if pif_record.API.pIF_VLAN = -1L && pif_record.API.pIF_bond_slave_of = Ref.null + && pif_record.API.pIF_managed then Client.Network.attach ~rpc ~session_id ~network ~host ; fail'