diff --git a/neutron/tests/unit/db/test_db_base_plugin_v2.py b/neutron/tests/unit/db/test_db_base_plugin_v2.py index 22fdef55c3e..13ff036d069 100644 --- a/neutron/tests/unit/db/test_db_base_plugin_v2.py +++ b/neutron/tests/unit/db/test_db_base_plugin_v2.py @@ -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'], diff --git a/neutron/tests/unit/extensions/test_extraroute.py b/neutron/tests/unit/extensions/test_extraroute.py index 162403d06c7..ee0bb51970e 100644 --- a/neutron/tests/unit/extensions/test_extraroute.py +++ b/neutron/tests/unit/extensions/test_extraroute.py @@ -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'],