函数:set_attr_list_string
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
设置字符串类型列表的属性值。
函数原型
- C函数原型
1
aclError aclopSetAttrListString(aclopAttr *attr, const char *attrName, int numValues, const char **attrValue)
- python函数
1
ret = acl.op.set_attr_list_string(attr, attr_name , attr_value)
参数说明
参数名 |
说明 |
---|---|
attr |
int,aclopAttr类型数据的指针地址。 需提前调用acl.op.create_attr接口创建aclopAttr类型数据。 |
attr_name |
str,属性名。 |
attr_value |
同时支持两种数据类型作为输入。
|
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码。
|
父主题: aclopAttr