Merge "Add test cases: invalidate CIDR"
This commit is contained in:
commit
09d5cb8bc0
|
@ -3813,7 +3813,9 @@ class TestSubnetsV2(NeutronDbPluginV2TestCase):
|
||||||
[{'nexthop': '10.0.2.20',
|
[{'nexthop': '10.0.2.20',
|
||||||
'destination': '100.0.0.0/8'},
|
'destination': '100.0.0.0/8'},
|
||||||
{'nexthop': '10.0.2.20',
|
{'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']
|
tenant_id = network['network']['tenant_id']
|
||||||
for hostroutes in hostroute_pools:
|
for hostroutes in hostroute_pools:
|
||||||
data = {'subnet': {'network_id': network['network']['id'],
|
data = {'subnet': {'network_id': network['network']['id'],
|
||||||
|
|
|
@ -377,6 +377,14 @@ class ExtraRouteDBTestCaseBase(object):
|
||||||
routes}},
|
routes}},
|
||||||
expected_code=exc.HTTPBadRequest.code)
|
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
|
# clean-up
|
||||||
self._router_interface_action('remove',
|
self._router_interface_action('remove',
|
||||||
r['router']['id'],
|
r['router']['id'],
|
||||||
|
|
Loading…
Reference in New Issue