fix(xo-server/pif.reconfigureIp): accepts empty strings for dns, gateway, ip and netmask params
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||
|
||||
- [Host/Network] Fix IP configuration not working with empty fields
|
||||
- [Import/VM/From VMware] Fix `Property description must be an object: undefined` [Forum#61834](https://xcp-ng.org/forum/post/61834) [Forum#61900](https://xcp-ng.org/forum/post/61900)
|
||||
- [Import/VM/From VMware] Fix `Cannot read properties of undefined (reading 'stream')` [Forum#59879](https://xcp-ng.org/forum/post/59879) (PR [#6825](https://github.com/vatesfr/xen-orchestra/pull/6825))
|
||||
|
||||
|
||||
@@ -84,10 +84,10 @@ export async function reconfigureIp({ pif, mode = 'DHCP', ip = '', netmask = '',
|
||||
reconfigureIp.params = {
|
||||
id: { type: 'string', optional: true },
|
||||
mode: { type: 'string', optional: true },
|
||||
ip: { type: 'string', optional: true },
|
||||
netmask: { type: 'string', optional: true },
|
||||
gateway: { type: 'string', optional: true },
|
||||
dns: { type: 'string', optional: true },
|
||||
ip: { type: 'string', minLength: 0, optional: true },
|
||||
netmask: { type: 'string', minLength: 0, optional: true },
|
||||
gateway: { type: 'string', minLength: 0, optional: true },
|
||||
dns: { type: 'string', minLength: 0, optional: true },
|
||||
}
|
||||
|
||||
reconfigureIp.resolve = {
|
||||
|
||||
Reference in New Issue
Block a user