fix(Xapi#createBondedNetwork): mac param should be a string (#588)

This commit is contained in:
Pierre Donias 2017-07-17 20:58:15 +02:00 committed by Julien Fontanet
parent f05117b6a4
commit e5bd024de2
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ createBonded.params = {
}
},
mtu: { type: ['integer', 'string'], optional: true },
mac: { type: 'string', optional: true },
// RegExp since schema-inspector does not provide a param check based on an enumeration
bondMode: { type: 'string', pattern: new RegExp(`^(${getBondModes().join('|')})$`) }
}

View File

@ -1999,7 +1999,7 @@ export default class Xapi extends XapiBase {
@deferrable.onFailure
async createBondedNetwork ($onFailure, {
bondMode,
mac,
mac = '',
pifIds,
...params
}) {