topology-map/internal/models/mikrotik.go

24 lines
449 B
Go
Raw Normal View History

2024-09-23 11:45:30 +00:00
package models
type ARPRecord struct {
Device *Device `json:"-"`
2024-09-23 15:34:40 +00:00
VM *VM `json:"-"`
2024-09-23 11:45:30 +00:00
Address string `json:"address"`
MacAddress string `json:"mac-address"`
}
type UnmonitoredDevice struct {
Address string
MacAddress string
}
func (d UnmonitoredDevice) Element() Element {
return Element{
Classes: []string{"unmonitored"},
Data: ElementData{
ID: "unmonitored-" + d.MacAddress,
Label: d.Address,
},
}
}