package reservation import ( "git.staur.ca/stobbsm/kea-manage/lib/types" ) type ReservationV4 struct { Type int SubnetID int MacAddr string Ipv4 string Hostname string } func ReserveV4MacAddr(rtype string, mac string, addr string, hostname string, subnet int) *ReservationV4 { r := &ReservationV4{ MacAddr: mac, Type: types.Lookup(rtype), SubnetID: subnet, Ipv4: addr, Hostname: hostname, } return r }