fix(Xapi#createBondedNetwork): mac param should be a string (#588)
This commit is contained in:
parent
f05117b6a4
commit
e5bd024de2
@ -54,6 +54,7 @@ createBonded.params = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mtu: { type: ['integer', 'string'], optional: true },
|
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
|
// RegExp since schema-inspector does not provide a param check based on an enumeration
|
||||||
bondMode: { type: 'string', pattern: new RegExp(`^(${getBondModes().join('|')})$`) }
|
bondMode: { type: 'string', pattern: new RegExp(`^(${getBondModes().join('|')})$`) }
|
||||||
}
|
}
|
||||||
|
@ -1999,7 +1999,7 @@ export default class Xapi extends XapiBase {
|
|||||||
@deferrable.onFailure
|
@deferrable.onFailure
|
||||||
async createBondedNetwork ($onFailure, {
|
async createBondedNetwork ($onFailure, {
|
||||||
bondMode,
|
bondMode,
|
||||||
mac,
|
mac = '',
|
||||||
pifIds,
|
pifIds,
|
||||||
...params
|
...params
|
||||||
}) {
|
}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user