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
Reviewed: https:/ /review. opencontrail. org/8441 github. org/Juniper/ contrail- generateDS/ commit/ d5835439f838335 2a77b5bf9b1319e b503177b60
Committed: http://
Submitter: Zuul
Branch: master
commit d5835439f838335 2a77b5bf9b1319e b503177b60
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: Ia9fee6b7bb8d7a 3641cdccaae4ecf 8fe73235c70
Closes-Bug: 1433498