From 26bfa08b23060800a5daf3ab9aa3b8f3019f7f0c Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Fri, 11 May 2018 06:47:34 +0200 Subject: [PATCH] Disable subnet CIDR reservation Reserving subnet CIDR make impossible to reuse the same CIDR for a subnet twice for the test case class. Change-Id: Ia32f0e3fea509d1eb0074f5d4bdaf5b02b6dcae0 Depends-On: I421dd28999086ee0af9246121f4f033291e341b4 Closes-Bug: #1766702 --- neutron_dynamic_routing/tests/tempest/scenario/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neutron_dynamic_routing/tests/tempest/scenario/base.py b/neutron_dynamic_routing/tests/tempest/scenario/base.py index 3f887df0..322b6f89 100644 --- a/neutron_dynamic_routing/tests/tempest/scenario/base.py +++ b/neutron_dynamic_routing/tests/tempest/scenario/base.py @@ -195,7 +195,8 @@ class BgpSpeakerScenarioTestJSONBase(base.BaseAdminNetworkTest): mask_bits=exsubnet.mask, ip_version=ip_version, client=self.admin_client, - subnetpool_id=ext_subnetpool['id']) + subnetpool_id=ext_subnetpool['id'], + reserve_cidr=False) # tenant network tenant_subnetpool = self.create_subnetpool( tpool.name, @@ -209,7 +210,8 @@ class BgpSpeakerScenarioTestJSONBase(base.BaseAdminNetworkTest): cidr=netaddr.IPNetwork(tsubnet.cidr), mask_bits=tsubnet.mask, ip_version=ip_version, - subnetpool_id=tenant_subnetpool['id']) + subnetpool_id=tenant_subnetpool['id'], + reserve_cidr=False) # router ext_gw_info = {'network_id': ext_net_id} router_cr = self.admin_client.create_router(