fix(xo-web/new/network): omit bond slave PIFs from selection (#5262)
See xcp-ng.org/forum/topic/3524/old-networks-not-removed-after-creating-bond/8
This commit is contained in:
parent
fc81cf4d70
commit
2291986e2c
@ -15,6 +15,7 @@
|
||||
|
||||
- [XOA/Notifications] Don't show expired notifications (PR [#5304](https://github.com/vatesfr/xen-orchestra/pull/5304))
|
||||
- [Backup/S3] Fix secret key edit form [#5233](https://github.com/vatesfr/xen-orchestra/issues/5233) (PR[#5305](https://github.com/vatesfr/xen-orchestra/pull/5305))
|
||||
- [New network] Remove the possibility of creating a network on a bond member interface (PR [#5262](https://github.com/vatesfr/xen-orchestra/pull/5262))
|
||||
|
||||
### Packages to release
|
||||
|
||||
|
@ -163,7 +163,9 @@ const NewNetwork = decorate([
|
||||
({ pool }) => pool !== undefined && pool.id === host.$pool
|
||||
),
|
||||
pifPredicate: (_, { pool }) => pif =>
|
||||
pif.vlan === -1 && pif.$host === (pool && pool.master),
|
||||
!pif.isBondSlave &&
|
||||
pif.vlan === -1 &&
|
||||
pif.$host === (pool && pool.master),
|
||||
pifPredicateSdnController: (_, { pool }) => pif =>
|
||||
canSupportPrivateNetwork(pool, pif),
|
||||
networkPifPredicate: ({ networks }) => (pif, key) =>
|
||||
|
Loading…
Reference in New Issue
Block a user