fix(xo-web/new-network): PIF should not be required (#4010)
Introduced by 7a2a88b7ad
Requiring a PIF prevented from creating private networks
This commit is contained in:
parent
008eb995ed
commit
312b33ae85
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
|
- [New network] PIF was wrongly required which prevented from creating a private network (PR [#4010](https://github.com/vatesfr/xen-orchestra/pull/4010))
|
||||||
|
|
||||||
### Released packages
|
### Released packages
|
||||||
|
|
||||||
- xo-server v5.37.0
|
- xo-server v5.37.0
|
||||||
|
@ -92,7 +92,7 @@ const NewNetwork = decorate([
|
|||||||
description,
|
description,
|
||||||
mtu,
|
mtu,
|
||||||
name,
|
name,
|
||||||
pif: pif.id,
|
pif: pif == null ? undefined : pif.id,
|
||||||
pool: pool.id,
|
pool: pool.id,
|
||||||
vlan,
|
vlan,
|
||||||
})
|
})
|
||||||
@ -160,7 +160,7 @@ const NewNetwork = decorate([
|
|||||||
multi={bonded}
|
multi={bonded}
|
||||||
onChange={effects.onChangePif}
|
onChange={effects.onChangePif}
|
||||||
predicate={pifPredicate}
|
predicate={pifPredicate}
|
||||||
required
|
required={bonded}
|
||||||
value={bonded ? pifs : pif}
|
value={bonded ? pifs : pif}
|
||||||
/>
|
/>
|
||||||
<label>{_('newNetworkName')}</label>
|
<label>{_('newNetworkName')}</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user