fix(xo-web/New network): only hide bond-PIFs when creating a bonded network (#7151)
Fixes #7150
See https://xcp-ng.org/forum/topic/7918
Introduced by dbdc5f3e3b
This commit is contained in:
@@ -154,9 +154,9 @@ const NewNetwork = decorate([
|
||||
host =>
|
||||
host.$pool === pool.id || networks.some(({ pool }) => pool !== undefined && pool.id === host.$pool),
|
||||
pifPredicate:
|
||||
(_, { pool }) =>
|
||||
({ bonded }, { pool }) =>
|
||||
pif =>
|
||||
!pif.isBondSlave && !pif.isBondMaster && pif.vlan === -1 && pif.$host === (pool && pool.master),
|
||||
!pif.isBondSlave && !(bonded && pif.isBondMaster) && pif.vlan === -1 && pif.$host === (pool && pool.master),
|
||||
pifPredicateSdnController:
|
||||
(_, { pool }) =>
|
||||
pif =>
|
||||
|
||||
Reference in New Issue
Block a user