Comment 5 for bug 1433498

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/8441
Committed: http://github.org/Juniper/contrail-generateDS/commit/d5835439f8383352a77b5bf9b1319eb503177b60
Submitter: Zuul
Branch: master

commit d5835439f8383352a77b5bf9b1319eb503177b60
Author: Prakash Bailkeri <email address hidden>
Date: Wed Mar 18 05:58:58 2015 -0700

Clean up fq_name_to_id mapping if parent_type is missing in obj_dict

If the parent_type field is missing in the JSON body if POST request, an exception
is raised while access it. This exception occurs after the uuid is allocated in zookeeper
Since the exception is not cause, the dbe_release is not called to release the fq_name_to_id
binding

Fix return error from ifmap_<type>_alloc function if parent type is required and missing in the POST request

Change-Id: Ia9fee6b7bb8d7a3641cdccaae4ecf8fe73235c70
Closes-Bug: 1433498