Skip to content

Commit

Permalink
raise subnet_not_found if we dont find any ipam refs
Browse files Browse the repository at this point in the history
Change-Id: Ia9d5c213fe9f748e1c528553f79718baa8fbd982
Closes-bug: 1524079
  • Loading branch information
Praneet Bachheti committed Dec 14, 2015
1 parent 2c11c33 commit 8c818af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
Expand Up @@ -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
Expand Down

0 comments on commit 8c818af

Please sign in to comment.