f-88: api: nom obligatoire des interfaces de VM, migration nic-<i> #88
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
8e144817c5
commit
6ecac451ee
15 changed files with 244 additions and 25 deletions
|
|
@ -636,8 +636,17 @@ components:
|
|||
|
||||
VMInterface:
|
||||
type: object
|
||||
required: [subnet, ip, mac, primary]
|
||||
required: [name, subnet, ip, mac, primary]
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: >
|
||||
Name of the interface, chosen by the caller and unique within the VM. It is an API
|
||||
identifier only, used to point at the interface (a floating IP for instance): no
|
||||
Linux interface is named after it, neither in the guest nor on the host. The agent
|
||||
does not check its format. Missing, empty or used twice in the VM → 400. Interfaces
|
||||
of VMs created before it was required are named nic-<index> at agent start.
|
||||
example: nic-a1b2
|
||||
subnet:
|
||||
type: string
|
||||
example: sn-00001
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue