[Kea-users] "Unsupported 'shared-networks' parameter."
Jeronimo
jscmenezes at gmail.com
Wed May 18 17:11:05 UTC 2022
Thanks a lot! That's it!
Jeronimo
Em qua., 18 de mai. de 2022 às 13:33, Wlodek Wencel <wlodek at isc.org>
escreveu:
> Hello,
>
> this is because 'shared-networks' is a list that suppose to be inside
> "Dhcp4": {}.
>
> In your case:
>
> {
> "command": "config-test",
> "service": [ "dhcp4" ],
> "arguments": {
> "Dhcp4": {
> "interfaces-config": {
> "interfaces": ["eth0/192.168.0.1"]},
> "control-socket": {
> "socket-name": "/tmp/kea4-ctrl-socket",
> "socket-type": "unix"
> },
> "expired-leases-processing": {
> "reclaim-timer-wait-timer": 10,
> "flush-reclaimed-timer-wait-time": 25,
> "hold-reclaimed-time": 3600,
> "max-reclaim-leases": 100,
> "max-reclaim-time": 250,
> "unwarned-reclaim-cycles": 5
> },
> "valid-lifetime": 4000,
> "renew-timer": 1000,
> "rebind-timer": 2000,
> "preferred-lifetime": 3000,
> "option-data": [
> {
> "name": "dns-servers",
> "data": "8.8.8.8, 8.8.4.4"
> }
> ],
> "shared-networks": [
> {
> "name": "3M",
> "interface": "eth0",
> "subnet4":[
> {
> "subnet": "192.168.2.0/24",
> "pools": [
> { "pool": "192.168.2.10 - 192.168.2.20" }
> ]
> }
> ]
> }
> ],
> "loggers": [
> {
> "debuglevel": 99,
> "name": "kea-dhcp4",
> "output_options": [
> {
> "output":
> "/var/log/kea/kea-dhcp4-server.log"
> }
> ],
> "severity": "INFO"
> }
> ]
> }
> }
> }
>
> Regards
>
> Wlodek Wencel
>
> ISC QA engineer
> On 18/05/2022 17:51, Jeronimo wrote:
>
> Hi all,
>
> I'm getting the error "Unsupported 'shared-networks' parameter." while
> trying to test config with Kea Ctrl-Agent.
>
> Any help?
>
> Jeronimo
>
> API Request
> {
> "command": "config-test",
> "service": [ "dhcp4" ],
> "arguments": {
> "Dhcp4": {
> "interfaces-config": {
> "interfaces": ["eth0/192.168.0.1"]},
> "control-socket": {
> "socket-name": "/tmp/kea4-ctrl-socket",
> "socket-type": "unix"
> },
> "expired-leases-processing": {
> "reclaim-timer-wait-timer": 10,
> "flush-reclaimed-timer-wait-time": 25,
> "hold-reclaimed-time": 3600,
> "max-reclaim-leases": 100,
> "max-reclaim-time": 250,
> "unwarned-reclaim-cycles": 5
> },
> "valid-lifetime": 4000,
> "renew-timer": 1000,
> "rebind-timer": 2000,
> "preferred-lifetime": 3000,
> "option-data": [
> {
> "name": "dns-servers",
> "data": "8.8.8.8, 8.8.4.4"
> }
> ],
> "loggers": [
> {
> "debuglevel": 99,
> "name": "kea-dhcp4",
> "output_options": [
> {
> "output":
> "/var/log/kea/kea-dhcp4-server.log"
> }
> ],
> "severity": "INFO"
> }
> ]
> },
> "shared-networks": [
> {
> "name": "3M",
> "interface": "eth0",
> "subnet4":[
> {
> "subnet": "192.168.2.0/24",
> "pools": [
> { "pool": "192.168.2.10 - 192.168.2.20" }
> ]
> }
> ]
> }
> ]
> }
> }
>
>
>
> kea-ctrl-agent.conf
> { "Control-agent": { "http-host": "0.0.0.0", "http-port": 8000,
> "control-sockets": { "dhcp4": { "socket-type":
> "unix", "socket-name": "/tmp/kea4-ctrl-socket" },
> "dhcp6": { "socket-type": "unix", "socket-name":
> "/tmp/kea6-ctrl-socket" }, "d2": {
> "socket-type": "unix", "socket-name":
> "/tmp/kea-ddns-ctrl-socket" } }, "hooks-libraries": [ {
> "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_bootp.so"
> }, { "library":
> "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so" }, {
> "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_mysql_cb.so"
> }, { "library":
> "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so" } ],
> "loggers": [ { "name": "kea-ctrl-agent",
> "output_options": [ { "output":
> "syslog:kea-ctrl-agent", "pattern": "%-5p %m\n",
> "flush": false, "maxsize": 1048576,
> "maxver": 8 } ], "severity": "DEBUG",
> "debuglevel": 99 } ] } }
>
> --
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220518/e24e53df/attachment-0001.htm>
More information about the Kea-users
mailing list