Clean up fq_name_to_id mapping if parent_type is missing in obj_dict
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

JioCloud/contrail-generateDS,vpramo/contrail-generateDS,vpramo/contrail-generateDS,JioCloud/contrail-generateDS,varunarya10/contrail-generateDS,varunarya10/contrail-generateDS,JioCloud/contrail-generateDS,JioCloud/contrail-generateDS,JioCloud/contrail-generateDS,varunarya10/contrail-generateDS,varunarya10/contrail-generateDS,vpramo/contrail-generateDS,vpramo/contrail-generateDS,varunarya10/contrail-generateDS,vpramo/contrail-generateDS