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
…6259)

The call currently calls `network.attach` on all networks, but this
fails for PIFs that are not managed by xapi. Simply skip those.
  • Loading branch information
robhoes authored Jan 28, 2025
2 parents 8a293a0 + fa6a82c commit 03e82b6
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
Expand Up @@ -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'
Expand Down

0 comments on commit 03e82b6

Please sign in to comment.