'Update objects that match filtering criteria from DB.
:param context:
:param values: multiple keys to update in matching objects
:param validate_filters: Raises an error in case of passing an unknown
filter
:param kwargs: multiple keys defined by key=value pairs
:return: Number of entries updated'

@classmethod
def update_objects(cls, context, values, validate_filters=True, **kwargs):

    if validate_filters:
        cls.validate_filters(**kwargs)
    if cls.has_standard_attributes():
        return super(NeutronDbObject, cls).update_objects(context, values, validate_filters=False, **kwargs)
    with db_api.autonested_transaction(context.session):
        return obj_db_api.update_objects(context, cls.db_model, cls.modify_fields_to_db(values), **cls.modify_fields_to_db(kwargs))
