<div dir="ltr"><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>I'd like to store dhcpv4 host reservations in my database which is currently in production. In documentation I've found, that I can create my own view and configure it as read-only.</div><div><br></div><div>In kea database schema there are columns in host table:</div><div><font face="monospace">  host_id SERIAL PRIMARY KEY NOT NULL,<br>  dhcp_identifier BYTEA NOT NULL,<br>  dhcp_identifier_type SMALLINT NOT NULL,<br>  dhcp4_subnet_id INT DEFAULT NULL,<br>  dhcp6_subnet_id INT DEFAULT NULL,<br>  ipv4_address BIGINT DEFAULT NULL,<br>  hostname VARCHAR(255) DEFAULT NULL,<br>  dhcp4_client_classes VARCHAR(255) DEFAULT NULL,<br>  dhcp6_client_classes VARCHAR(255) DEFAULT NULL</font></div><div><br></div><div><br></div><div>My question is about `dhcp_identifier` column and ipv4_address. This should be hw-address, duid corresponding to dhcp_identifier_type. In my database ipv4 address I store as ::inet.</div><div>dhcp4_subnet_id is integer. So I have to in config add subnet_id argument or I can return string for example "<a href="http://192.168.12.0/24">192.168.12.0/24</a>" as subnet?  </div><div>How could I return data in my view to be proper format for kea?</div><div><br></div><div>Best regards</div><div>MarcinR</div><div><br></div><div><br></div><div><br></div></div></div></div></div>