add mac addrs
This commit is contained in:
parent
3a62f10d20
commit
6e948e0736
9
doGui.go
9
doGui.go
|
@ -7,6 +7,7 @@ package main
|
|||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.wit.com/gui"
|
||||
|
@ -130,6 +131,14 @@ func makeDropletsWindow(pb *virtpb.Droplets) *GenericWindow {
|
|||
}
|
||||
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 {
|
||||
return findVersion(m, "zood")
|
||||
|
|
Loading…
Reference in New Issue