Merge "Add test cases: invalidate CIDR"

This commit is contained in:
Zuul 2019-01-26 12:37:59 +00:00 committed by Gerrit Code Review
commit 09d5cb8bc0
2 changed files with 11 additions and 1 deletions

View File

@ -3813,7 +3813,9 @@ class TestSubnetsV2(NeutronDbPluginV2TestCase):
[{'nexthop': '10.0.2.20',
'destination': '100.0.0.0/8'},
{'nexthop': '10.0.2.20',
'destination': '100.0.0.0/8'}]]
'destination': '100.0.0.0/8'}],
[{'destination': '100.1.1.1/8',
'nexthop': '10.0.2.20'}]]
tenant_id = network['network']['tenant_id']
for hostroutes in hostroute_pools:
data = {'subnet': {'network_id': network['network']['id'],

View File

@ -377,6 +377,14 @@ class ExtraRouteDBTestCaseBase(object):
routes}},
expected_code=exc.HTTPBadRequest.code)
routes = [{'destination': '1.1.1.1/24',
'nexthop': '10.0.1.3'}]
self._update('routers', r['router']['id'],
{'router': {'routes':
routes}},
expected_code=exc.HTTPBadRequest.code)
# clean-up
self._router_interface_action('remove',
r['router']['id'],