fix(pif.reconfigureIp): send '' to XAPI for null values (#607)
Fixes vatesfr/xo-web#2346
This commit is contained in:
committed by
Julien Fontanet
parent
1715dadf8f
commit
c996b61eae
@@ -60,7 +60,7 @@ connect.resolve = {
|
||||
// ===================================================================
|
||||
// Reconfigure IP
|
||||
|
||||
export async function reconfigureIp ({ pif, mode = 'DHCP', ip, netmask, gateway, dns }) {
|
||||
export async function reconfigureIp ({ pif, mode = 'DHCP', ip = '', netmask = '', gateway = '', dns = '' }) {
|
||||
await this.getXapi(pif).call('PIF.reconfigure_ip', pif._xapiRef, mode, ip, netmask, gateway, dns)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user