Hi,
config-set will rewrite the whole config file. You cannot "append" a 
configuration bit. To do so you need to use the API.
Cheers,
V.
________________________________
From: Kea-users <kea-users-boun...@lists.isc.org> on behalf of Andrew Mulheirn 
via Kea-users <kea-users@lists.isc.org>
Sent: Tuesday, March 5, 2024 10:06 AM
To: kea-users@lists.isc.org <kea-users@lists.isc.org>
Cc: Andrew Mulheirn <andrew.mulhe...@vorboss.com>
Subject: [Kea-users] Problem using 'config-set' in API


Hi,



I am trying to use the API and reading it seems to work fine.  However, when I 
write to it using a config-set action, it seems to stop working until I restart 
the service.  Here is an example of what I am sending in the API call.   I am 
trying to add an IP address reservation for a device connected on a particular 
switch port (using option 18):



{

    "command": "config-set",

    "service": [ "dhcp6" ],

    "arguments":  {

        "Dhcp6": {

            "subnet6": [

                {

                    "subnet": "2a00:e300:1102::/64",

                    "reservations": [

                            {

                            "flex-id": "'xe-0/0/4:rsw001'",

                            "ip-addresses": [ "2a00:e300:1102::8" ]

                            }

                    ]

                }

            ]

        }

    }

}





Perhaps I have misread the documentation – do I need to be sending the entire 
config in the config-set command?  Or can I add IP address reservations in an 
additive way like I am trying to do here?

Any help appreciated,



Kind regards,

Andy

Andrew Mulheirn

Senior Network Architect

M: +44 (0) 74 3654 8126 <tel:+44%20(0)%2074%203654%208126>

E: andrew.mulhe...@vorboss.com <mailto:andrew.mulhe...@vorboss.com>

vorboss.com <https://vorboss.com>


Not sure who currently provides your internet?
Find out here and take our speed test. <https://check.vorboss.com/>


Disclaimer: This message is private and confidential. If you have received this 
message in error, please remove it from your system and notify us at 
sysad...@vorboss.net <mailto:sysad...@vorboss.net> or by telephone +44(0)20 
3582 8500. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon, this information by persons or entities other 
than the intended recipient is prohibited.   Privacy Note: Vorboss Limited may 
monitor email traffic data and also the content of email for the purposes of 
security. This email does not create or vary any contractual obligations 
between Vorboss Limited and the intended recipient.

Vorboss Limited is a limited company registered in England and Wales. 
Registered number: 05678571. Registered Office: Vorboss Limited, Broadwalk 
House, 5 Appold Street, London, EC2A 2AG, UNITED KINGDOM.
-- 
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@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to