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:
badrAZ 2020-10-02 14:12:53 +02:00 committed by GitHub
parent fc81cf4d70
commit 2291986e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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) =>