add mac addrs

This commit is contained in:
Jeff Carr 2025-02-23 01:45:14 -06:00
parent 3a62f10d20
commit 6e948e0736
1 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ package main
import ( import (
"os" "os"
"strings"
"time" "time"
"go.wit.com/gui" "go.wit.com/gui"
@ -130,6 +131,14 @@ func makeDropletsWindow(pb *virtpb.Droplets) *GenericWindow {
} }
return "UNKNOWN" return "UNKNOWN"
}) })
t.AddStringFunc("mac addr", func(d *virtpb.Droplet) string {
var macs []string
for _, n := range d.Networks {
macs = append(macs, n.Mac)
}
tmp := strings.Join(macs, "\n")
return strings.TrimSpace(tmp)
})
/* /*
t.AddStringFunc("zood", func(m *zoopb.Machine) string { t.AddStringFunc("zood", func(m *zoopb.Machine) string {
return findVersion(m, "zood") return findVersion(m, "zood")