Skip to content

Commit

Permalink
CA-400272: pool.set_igmp_snooping_enabled: ignore non-managed PIFs
Browse files Browse the repository at this point in the history
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 <rob.hoes@citrix.com>
  • Loading branch information
robhoes committed Jan 28, 2025
1 parent 8a293a0 commit fa6a82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocaml/xapi/xapi_pool.ml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit fa6a82c

Please sign in to comment.