checks of t1-percent and t2-percent values in config backend not sufficient
our Use's Guide:
t1-percent - the percentage of the valid lease time to use for T1. It is expressed as a real number between 0.0 and 1.0 and must be less than t2-percent. The default value is 0.50 per RFC 2131.
t2-percent - the percentage of the valid lease time to use for T2. It is expressed as a real number between 0.0 and 1.0 and must be greater than t1-percent. The default value is .875 per RFC 2131.
I was able to save into database t2-percent smaller than t1-percent - after sending config-reload
command kea accepted such values as correct (haven't try to send traffic)
- command set:
{
"arguments": {
"remote": {
"type": "mysql"
},
"server-tags": [
"abc"
],
"shared-networks": [
{
"calculate-tee-times": true,
"interface": "enp0s9",
"name": "net1",
"subnet4": [
{
"interface": "enp0s9",
"subnet": "192.8.0.0/24"
}
],
"t1-percent": 0.5,
"t2-percent": 0.1
}
]
},
"command": "remote-network4-set"
}
- response:
{
"arguments": {
"shared-networks": [
{
"name": "net1"
}
]
},
"result": 0,
"text": "IPv4 shared network successfully set."
}
- config-reload
- config-get:
"shared-networks": [
{
"calculate-tee-times": true,
"interface": "enp0s9",
"name": "net1",
"option-data": [],
"relay": {
"ip-addresses": []
},
"subnet4": [
{
"4o6-interface": "",
"4o6-interface-id": "",
"4o6-subnet": "",
"id": 3,
"interface": "enp0s9",
"option-data": [],
"pools": [],
"relay": {
"ip-addresses": []
},
"reservations": [],
"subnet": "192.8.0.0/24"
}
],
"t1-percent": 0.5,
"t2-percent": 0.1
}
],