commit efd09e6295db0a890ad45f894e649afa31f36522
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/667542 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=efd09e6295d b0a890ad45f894e 649afa31f36522
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit efd09e6295db0a8 90ad45f894e649a fa31f36522
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