f-28: vms: Add uefi param
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
325f1acff5
commit
ec613996a0
3 changed files with 60 additions and 10 deletions
|
|
@ -14,7 +14,7 @@ import (
|
|||
type vmData struct {
|
||||
subnetName string
|
||||
vpcName string
|
||||
interfaceIP string
|
||||
interfaceIP string
|
||||
bridge string
|
||||
tapID int
|
||||
ip string
|
||||
|
|
@ -23,6 +23,7 @@ type vmData struct {
|
|||
volumePath string
|
||||
memory int
|
||||
cpus int
|
||||
uefi bool
|
||||
password string
|
||||
sshkey string
|
||||
}
|
||||
|
|
@ -105,6 +106,9 @@ func loadVM(db *badger.DB, name string) (vmData, error) {
|
|||
return d, fmt.Errorf("parse cpus: %w", err)
|
||||
}
|
||||
|
||||
if v, _ := kv.GetFromDB(db, "vm/"+name+"/uefi"); v == "true" {
|
||||
d.uefi = true
|
||||
}
|
||||
d.password, _ = kv.GetFromDB(db, "vm/"+name+"/password")
|
||||
d.sshkey, _ = kv.GetFromDB(db, "vm/"+name+"/sshkey")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue