f-50: lab: image vérifiée, disques et seeds des VM #50

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-04 14:21:20 +02:00
commit d1cd943d86
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
7 changed files with 999 additions and 20 deletions

View file

@ -18,6 +18,7 @@ const (
type Plan struct {
Name string
Images []Image
Segments []SegmentPlan
Nodes []NodePlan
Cables []Cable
@ -62,7 +63,7 @@ func Compute(t *Topology) (*Plan, error) {
return nil, err
}
p := &Plan{Name: t.Name}
p := &Plan{Name: t.Name, Images: append([]Image(nil), t.Images...)}
for i, n := range t.Nodes {
p.Nodes = append(p.Nodes, NodePlan{
Name: n.Name,