File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -118,17 +118,23 @@ let pre_join_checks ~__context ~rpc ~session_id ~force =
118
118
| pif when pif = Ref. null ->
119
119
()
120
120
| pif -> (
121
- match Client.PIF. get_VLAN ~rpc ~session_id ~self: pif with
122
- | vlan when vlan > 0L ->
123
- error " Cannot join pool whose clustering is enabled on VLAN network" ;
121
+ match
122
+ ( Client.PIF. get_VLAN ~rpc ~session_id ~self: pif
123
+ , Client.PIF. get_management ~rpc ~session_id ~self: pif
124
+ )
125
+ with
126
+ | vlan , false when vlan > 0L ->
127
+ error
128
+ " Cannot join pool whose clustering is enabled on a \
129
+ non-management VLAN network" ;
124
130
raise
125
131
(Api_errors. Server_error
126
132
( Api_errors
127
133
.pool_joining_pool_cannot_enable_clustering_on_vlan_network
128
134
, [Int64. to_string vlan]
129
135
)
130
136
)
131
- | 0L | _ -> (
137
+ | _ -> (
132
138
let clustering_bridges_in_pool =
133
139
( match
134
140
Client.PIF. get_bond_master_of ~rpc ~session_id ~self: pif
You can’t perform that action at this time.
0 commit comments