f-62: vm: MAC fournie à la création par interface, fin de la table préchargée, migration #62

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-19 21:25:18 +02:00
commit 077141443e
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
20 changed files with 338 additions and 171 deletions

View file

@ -534,7 +534,7 @@ components:
VMInterface:
type: object
required: [subnet, ip, primary]
required: [subnet, ip, mac, primary]
properties:
subnet:
type: string
@ -543,6 +543,15 @@ components:
type: string
format: ipv4
example: "10.0.0.5"
mac:
type: string
pattern: '^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$'
description: >
MAC address of the interface, chosen by the caller. It is given to
QEMU and to the DHCP reservation as is, and returned unchanged by
GET. The agent does not check its format nor its uniqueness: that
is the caller's job. Missing or empty → 400.
example: "52:54:00:00:00:05"
primary:
type: boolean
example: true