kea-manage/lib/types/types.go
Matthew Stobbs a78f001a41 working configuration for reservations
- Make ipv4 reservations in kea by directly writing to the database
- uses same configuration file as database configuration under the
heading reservationV4
2024-09-24 14:43:54 -06:00

18 lines
256 B
Go

package types
import "strings"
var types = map[string]int{
"macaddr": 0,
"hwaddr": 0,
"invalid": 255,
}
func Lookup(rtype string) int {
rtype = strings.ToLower(rtype)
if t, ok := types[rtype]; ok == true {
return t
}
return types["invalid"]
}