Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Resconf API - KEA - Release Lease?

    Scheduled Pinned Locked Moved TNSR
    4 Posts 2 Posters 858 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dbeyzade
      last edited by

      http://10.2.0.3/restconf/data/netgate-kea:kea-state/dhcp4-server/leases/
      

      I can see all leases.

      How about releasing one? Doesn't seem possible. If I try:

      http://10.2.0.3/restconf/data/netgate-kea:kea-state/dhcp4-server/leases/lease=193.145.4.133
      
      {
      "ietf-restconf:errors" : {
        "error": {
          "error-type": "protocol",
          "error-tag": "invalid-value",
          "error-severity": "error",
          "error-message": "State data not allowed"
        }
      }
      
      }
      
      1 Reply Last reply Reply Quote 0
      • dennis_sD
        dennis_s
        last edited by

        I'm not sure if you can release a lease from the server. According to our API documentation, you can delete a lease, but I think the client may still have the lease.

        D 1 Reply Last reply Reply Quote 0
        • D
          dbeyzade @dennis_s
          last edited by

          @dennis_s Indeed, its not possible. Being their is a command line on the terminal I would think it should be easy to add to the API. Feature request?

          dennis_sD 1 Reply Last reply Reply Quote 0
          • dennis_sD
            dennis_s @dbeyzade
            last edited by

            @dbeyzade Can't promise, but I will certainly pass this along to our product manager.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.