[ipam] Why prevent first ip < (subnet.first + 1) if version of subnet is ipv6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Liu Xie |
Bug Description
As we know, we can use ipv6 address end with '0' like 2001::.
But when we allocate ipv6 pool use neutron, we could find the error like follows:
neutron net-create net-v6
neutron subnet-create --ip-version 6 --allocation-pool start=2001:
The allocation pool 2001::-2001::2 spans beyond the subnet cidr 2001::/64.
Neutron server returns request_ids: ['req-9a6569ed-
We found that the error info from the func 'validate_
else: # IPv6 case
ip_sets = []
for ip_pool in ip_pools:
end_ip = netaddr.
if (start_ip.version != subnet.version or
if start_ip < subnet_first_ip or end_ip > subnet_last_ip:
Why neutron ipam force first ip of one pool >= (subnet.first + 1) if version of subnet is ipv6 ?
summary: |
- [ip allocation_pools] Why force first ip < (subnet.first + 1) if - version of subnet is ipv6 + [ipam] Why force first ip < (subnet.first + 1) if version of subnet is + ipv6 |
Changed in neutron: | |
assignee: | nobody → Liu Xie (liushy) |
summary: |
- [ipam] Why force first ip < (subnet.first + 1) if version of subnet is - ipv6 + [ipam] Why prevent first ip < (subnet.first + 1) if version of subnet + is ipv6 |
description: | updated |
tags: | added: ipv6 l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Medium |
importance: | Medium → Undecided |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/899374
Review: https:/