From 8c818af88cd4b82cc19a55333d2567d8b1b3fc0b Mon Sep 17 00:00:00 2001 From: Praneet Bachheti Date: Thu, 10 Dec 2015 13:45:02 -0800 Subject: [PATCH] raise subnet_not_found if we dont find any ipam refs Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982 Closes-bug: 1524079 --- src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py index cdce9d7d8ad..d71d9387b2e 100644 --- a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py +++ b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py @@ -2566,7 +2566,8 @@ def subnet_read(self, subnet_id): subnet_vnc, net_obj, ipam_ref['to']) return ret_subnet_q - return {} + self._raise_contrail_exception('SubnetNotFound', + subnet_id=subnet_id) #end subnet_read @wait_for_api_server_connection