commit 4ecfdb6fd0e89f3b0ff6ca345d18c0db66e2eaeb
Author: Harald Jensås <email address hidden>
Date: Thu Jun 6 03:06:17 2019 +0200
Turn CIDR in query filter into proper subnet
Use netaddr.IPNetwork to convert CIDRs in a query
into proper subnets.
When creating subnets the CIDR is converted into
a proper subnet. i.e a subnet can be created with
cidr=10.0.0.11/24 in the create request. On create
the cidr is turned into a proper subnet resulting
in a subnet with cidr=10.0.0.0/24.
This change does the same to CIDRs when used as
query filters during a list subnet request, so
that the same value that was used to create the
subnet can be used to find the subnet.
Conflicts: neutron/db/db_base_plugin_common.py
Closes-Bug: #1831811
Change-Id: I8ae478a03ceedc6c3b1ae1d40081b5e5158813e6
(cherry picked from commit af773557323580c7b07bd41dd1f524e81530c939)
Reviewed: https:/ /review. opendev. org/667560 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=4ecfdb6fd0e 89f3b0ff6ca345d 18c0db66e2eaeb
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 4ecfdb6fd0e89f3 b0ff6ca345d18c0 db66e2eaeb
Author: Harald Jensås <email address hidden>
Date: Thu Jun 6 03:06:17 2019 +0200
Turn CIDR in query filter into proper subnet
Use netaddr.IPNetwork to convert CIDRs in a query
into proper subnets.
When creating subnets the CIDR is converted into 10.0.0. 11/24 in the create request. On create
a proper subnet. i.e a subnet can be created with
cidr=
the cidr is turned into a proper subnet resulting
in a subnet with cidr=10.0.0.0/24.
This change does the same to CIDRs when used as
query filters during a list subnet request, so
that the same value that was used to create the
subnet can be used to find the subnet.
Conflicts:
neutron/ db/db_base_ plugin_ common. py
Closes-Bug: #1831811 6c3b1ae1d40081b 5e5158813e6 7b07bd41dd1f524 e81530c939)
Change-Id: I8ae478a03ceedc
(cherry picked from commit af773557323580c