From e5bd024de22ae815792d5456029cb79d7d8b5a29 Mon Sep 17 00:00:00 2001 From: Pierre Donias Date: Mon, 17 Jul 2017 20:58:15 +0200 Subject: [PATCH] fix(Xapi#createBondedNetwork): mac param should be a string (#588) --- src/api/network.js | 1 + src/xapi/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 }) {