kea return error when receive 'get-config' command after being reconfigured with kea-netconf
Yang configuration:
<?xml version="1.0" ?>
<config xmlns="urn:ietf:params:xml:ns:yang:kea-dhcp4-server">
<interfaces-config>
<interfaces>enp0s9</interfaces>
</interfaces-config>
<client-classes/>
<expired-leases-processing/>
<option-data-list>
<option-data>
<code>2</code>
<space>dhcp4</space>
<data>50</data>
<name>time-offset</name>
</option-data>
</option-data-list>
<control-socket>
<socket-name>/home/wlodek/installed/git/var/kea/control_socket</socket-name>
<socket-type>unix</socket-type>
</control-socket>
<lease-database>
<database-type>memfile</database-type>
<name>/home/wlodek/installed/git/var/kea/kea-leases4.csv</name>
</lease-database>
<subnet4>
<subnet4>
<id>1</id>
<subnet>192.168.51.0/24</subnet>
<valid-lifetime>4000</valid-lifetime>
<renew-timer>1000</renew-timer>
<rebind-timer>2000</rebind-timer>
<interface>enp0s9</interface>
<option-data-list/>
<relay>
<ip-addresses>192.12.11.4</ip-addresses>
</relay>
<pools>
<pool>
<start-address>192.168.51.50</start-address>
<end-address>192.168.51.50</end-address>
<option-data-list/>
</pool>
</pools>
</subnet4>
</subnet4>
</config>
Kea uses this configuration and assign address 192.168.51.50, but when I send 'get-config' to kea4 it sends back:
{
"result": 1,
"text": "Error during command processing: unknown DB access parameter: max-reconnect-tries=0"
}
and logs:
2018-11-07 08:02:00.045 INFO [kea-dhcp4.commands/5027] COMMAND_RECEIVED Received command 'config-get'
2018-11-07 08:02:00.045 WARN [kea-dhcp4.commands/5027] COMMAND_PROCESS_ERROR2 Error while processing command: unknown DB access parameter: max-reconnect-tries=0
When I checked logs from reconfiguration it looks like not everything went 100% correct:
2018-11-07 07:58:21.431 INFO [kea-dhcp4.dhcpsrv/5027] DHCPSRV_CFGMGR_NEW_SUBNET4 a new subnet has been added to configuration: 192.168.51.0/24 with params: t1=1000, t2=2000, valid-lifetime=4000
2018-11-07 07:58:21.431 INFO [kea-dhcp4.dhcp4/5027] DHCP4_CONFIG_COMPLETE DHCPv4 server has completed configuration: added IPv4 subnets: 1; DDNS: disabled
2018-11-07 07:58:21.431 INFO [kea-dhcp4.dhcpsrv/5027] DHCPSRV_MEMFILE_DB opening memory file lease database: lfc-interval=3600 max-reconnect-tries=0 name=/home/wlodek/installed/git/var/kea/kea-leases4.csv persist=true readonly=false reconnect-wait-time=0 tcp-keepalive=0 tcp-nodelay=true type=memfile universe=4
2018-11-07 07:58:21.431 INFO [kea-dhcp4.dhcpsrv/5027] DHCPSRV_MEMFILE_LEASE_FILE_LOAD loading leases from file /home/wlodek/installed/git/var/kea/kea-leases4.csv
Why values readonly=false reconnect-wait-time=0 tcp-keepalive=0 tcp-nodelay=true max-reconnect-tries=0 are added to memfile configuration?