ctucx.git: dnsmasq-lease-overview

web-overview for dhcp-leases from dnsmasq

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
import std/[options, times]

type
  Type* = enum
    v4, v6
  Lease* = object
    expiry*       : DateTime
    address*      : string
    hostname*     : Option[string]
    clientId*     : Option[string]
    case `type`*  : Type
    of v4:
      macAddress* : string
    of v6:
      iaid*       : string