Skip to content

Non-pool IPv6 prefixes think the 0th address is available #4264

@ktims

Description

@ktims

Environment

  • Python version: 3.6.7
  • NetBox version: 2.7.7

Steps to Reproduce

  1. Create an IPv6 prefix (tested /64) that is not configured as a pool
  2. Add an address to the prefix (::1 is the simplest test case)
  3. Visit the ip-addresses view for this prefix

Expected Behavior

The count of available IPs 'below' the first allocated IP should not include the 0th address, unless the prefix is configured as a pool (not sure address pools make sense in IPv6 context at all, tbh) or is a /127.

Observed Behavior

The 0th IP is counted as 'available' in the address list. For example, allocating the ::1 address shows a list entry with '1 IP Available' below the ::1 address. The count will be off-by-one for other cases where there are actually available IPs. See screenshot.

Clicking 'Add an IP address' chooses ::2 as the default as expected, and the available-ips API call also correctly does not include the 0th address.

image

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions