Function: set_attr_bool

C Prototype

aclError aclopSetAttrBool(aclopAttr *attr, const char *attrName, uint8_t attrValue)

Python Function

ret = acl.op.set_attr_bool(attr, attr_name, attr_value)

Function Usage

Sets the value (a scalar of the bool type) of an attribute.

Input Description

attr: int, pointer address of the aclopAttr type data.

Call acl.op.create_attr to create data of the aclopAttr type in advance.

attr_name: str, attribute name.

attr_value: int, attribute value.

Return Value

ret: int, error code.

Restrictions

None