Merge "Add test cases: invalidate CIDR"

changes/41/406841/19
Zuul 4 years ago committed by Gerrit Code Review
commit 09d5cb8bc0

@ -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'],

@ -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'],

Loading…
Cancel
Save