def delete_os_in_nwk(self, tenant_id, fw_dict, is_fw_virt=False):
        """Deletes the Openstack In network and update the DB. """
        ret = True
        tenant_name = fw_dict.get('tenant_name')
        try:
            ret = self._delete_os_nwk(tenant_id, tenant_name, "in",
                                      is_fw_virt=is_fw_virt)
        except Exception as exc:
            LOG.error("Deletion of In Openstack Network failed tenant "
                      "%(tenant)s Exception %(exc)s",
                      {'tenant': tenant_id, 'exc': str(exc)})
            ret = False
        # Updating the FW DB
        if ret:
            res = fw_const.OS_IN_NETWORK_DEL_SUCCESS
        else:
            res = fw_const.OS_IN_NETWORK_DEL_FAIL
        self.update_fw_db_result(tenant_id, os_status=res)
        return ret
def delete_os_in_nwk ( self , tenant_id , fw_dict , is_fw_virt = False ) : ret = True tenant_name = fw_dict . get ( 'tenant_name' ) try : ret = self . _delete_os_nwk ( tenant_id , tenant_name , "in" , is_fw_virt = is_fw_virt ) except Exception as exc : LOG . error ( "Deletion of In Openstack Network failed tenant " "%(tenant)s Exception %(exc)s" , { 'tenant' : tenant_id , 'exc' : str ( exc ) } ) ret = False if ret : res = fw_const . OS_IN_NETWORK_DEL_SUCCESS else : res = fw_const . OS_IN_NETWORK_DEL_FAIL self . update_fw_db_result ( tenant_id , os_status = res ) return ret
Deletes the Openstack In network and update the DB.