Multiple IPv6 subnets with SLAAC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
For one network with multiple slaac IPv6 subnets, the created port will have all IPv6 subnets address automatically by default. For some use case, we do not want the port to have all the IPv6 address from all IPv6 subnets, but only one of it. It is a behavior for neutron now. This is the code:
https:/
How to reproduce:
$ openstack network create ipv6-net
$ openstack subnet create --network ipv6-net --ip-version 4 --subnet-range 192.168.1.0/24 ipv4-sub-1
$ openstack subnet create --network ipv6-net --ip-version 4 --subnet-range 192.168.2.0/24 ipv4-sub-2
$ openstack subnet create --network ipv6-net --ip-version 6 --subnet-range 2001::/64 --ipv6-ra-mode slaac --ipv6-address-mode slaac ipv6-sub-1
$ openstack subnet create --network ipv6-net --ip-version 6 --subnet-range 2002::/64 --ipv6-ra-mode slaac --ipv6-address-mode slaac ipv6-sub-2
create a port, you will see it will have all IPv6 address from all IPv6 subnets:
openstack port create --network ipv6-net ipv6-port-1
| fixed_ips | ip_address=
| | ip_address=
| | ip_address=
| id | 1736e437-
| ip_address | None |
| mac_address | fa:16:3e:49:65:1b |
Just to make it clear, event set two specific subnet IDs for the port creation fixed_ips, it sill will also have all IPv6 subnets IPs: 8e0d9fc0- de72-47fa- b3fc-384f19f6c0 ae --fixed-ip subnet= 193b76ec- 8527-4c48- 9ad6-7922d0d2e6 3d ipv6-port-2
$ openstack port create --network ipv6-net --fixed-ip subnet=
| fixed_ips | ip_address= '192.168. 1.8', subnet_ id='8e0d9fc0- de72-47fa- b3fc-384f19f6c0 ae' | '2001:: f816:3eff: fe3c:a095' , subnet_ id='6352875f- c406-4a7c- 9722-857ee9c584 55' | '2002:: f816:3eff: fe3c:a095' , subnet_ id='193b76ec- 8527-4c48- 9ad6-7922d0d2e6 3d' | 3af8-45f0- 9712-81bb326b59 cf |
| | ip_address=
| | ip_address=
| id | 3c8e4aa8-
| ip_address | None |
| mac_address | fa:16:3e:3c:a0:95 |