Skip to content

Commit 03e82b6

Browse files
authored
CA-400272: pool.set_igmp_snooping_enabled: ignore non-managed PIFs (#6259)
The call currently calls `network.attach` on all networks, but this fails for PIFs that are not managed by xapi. Simply skip those.
2 parents 8a293a0 + fa6a82c commit 03e82b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/xapi_pool.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3309,6 +3309,7 @@ let set_igmp_snooping_enabled ~__context ~self ~value =
33093309
if
33103310
pif_record.API.pIF_VLAN = -1L
33113311
&& pif_record.API.pIF_bond_slave_of = Ref.null
3312+
&& pif_record.API.pIF_managed
33123313
then
33133314
Client.Network.attach ~rpc ~session_id ~network ~host ;
33143315
fail'

0 commit comments

Comments
 (0)