IPv6 DHCP leases are not visible in the NSX UI and cannot be retrieved or deleted using the Policy API
search cancel

IPv6 DHCP leases are not visible in the NSX UI and cannot be retrieved or deleted using the Policy API

book

Article ID: 418792

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Unable to Query or Delete IPv6 DHCP Leases via Policy API (/leases endpoint) for Segment-Attached DHCP Servers.
  • Attempts to fetch IPv6 lease information result in a generic Policy error, while IPv4 leases continue to work as expected.
  • The below provides a sample API call:
    • GET /policy/api/v1/infra/dhcp-server-configs/<DHCP_SERVER_CONFIG_ID>/leases?connectivity_path=/infra/segments/<segment_id>&address=<IPv6_address>
    • This request fails with the following response: { "httpStatus": "BAD_REQUEST", "error_code": 500016, "module_name": "Policy", "error_message": "Error: Unable to retrieve DHCP server leases at /infra/segments/##### from enforcement-point /infra/sites/default/enforcement-points/default." }

Environment

VMware NSX 4.1.x or earlier

Cause

This is not a product implementation bug, but an un-supported feature.  In NSX 4.1.x or earlier, this functionality is not implemented, resulting in a generic error when the Policy API attempts to retrieve IPv6 lease data.

The capability to manage IPv6 DHCP leases through the API or NSX UI was introduced only in NSX 4.2.

Resolution

For getting/ retrieving the IPv6 DHCP leases, upgrade the NSX environment to NSX 4.2 or later, where full IPv6 DHCP lease visibility and management support is available.

For deleting a DHCPv6 lease, there is no resolution as of VCF 9.1

Workaround:
No workaround exists in earlier version than 4.2, as IPv6 lease support is not included in this release.