diff --git a/src/api/network.js b/src/api/network.js index 3c6de2e98..a32fb5c5a 100644 --- a/src/api/network.js +++ b/src/api/network.js @@ -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('|')})$`) } } diff --git a/src/xapi/index.js b/src/xapi/index.js index 1c0d90a64..c2a8d07b3 100644 --- a/src/xapi/index.js +++ b/src/xapi/index.js @@ -1999,7 +1999,7 @@ export default class Xapi extends XapiBase { @deferrable.onFailure async createBondedNetwork ($onFailure, { bondMode, - mac, + mac = '', pifIds, ...params }) {