Manually provided DHCP option in host reservation form produces backend error
The issue found during the 1.5 sanity checks Source
Providing option code by hand in the host reservation form causes GO unmarshal error. Selecting the option code from the dropdown works well, the option is forwarded to the Kea.
Error:
Cannot commit new host
The transaction adding new host failed: parsing host body from "" failed, because json: cannot unmarshal string into Go struct field DHCPOption.localHosts.options.code of type int64
Parameters to reproduce:
- Global reservation: true
- DHCP Servers: kea@agent-kea-premium/dhcp6
- DHCP Identifier: flex-id / text / xa<zsc
- IP Reservations: IPv6 address / 2001:db8:1::2
- DHCP options:
- Option code: 92 (manually provided)
- Payload: hex-bytes 123445