<div dir="ltr">I have found this documentation <a href="https://gitlab.isc.org/isc-projects/kea/-/wikis/docs/editing-host-reservations">https://gitlab.isc.org/isc-projects/kea/-/wikis/docs/editing-host-reservations</a> this what I was looking for.<div>But I cannot find information, how to configure the "hosts" table :( In my database I have that table name already so I can prepare view but this cannot be named 'hosts" but kea make SELECT on this table :(</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">niedz., 31 maj 2020 o 10:04 Marcin Romanowski <<a href="mailto:marcin@nicram.net">marcin@nicram.net</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br clear="all"><div><br></div><div dir="ltr"><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" target="_blank">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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Marcin Romanowski / nicraM<br></div><div><img src="https://docs.google.com/uc?export=download&id=1tF66ovI5kS7h-4bp0atR0UMIQMnsAEbm&revid=0B1o0UzQJ45KxQ3VhbEhEQ2szRXV6SEhaS1hpVmx6UWNxV2pFPQ" width="96" height="26"><br><br></div></div></div></div></div>