Skip to content

Commit 144fa87

Browse files
authored
Generate AccessControl cluster with Alchemy (project-chip#38249)
* Generate AccessControl cluster with Alchemy * Add matter files generated by ZAP * Update generated files
1 parent 04e45ca commit 144fa87

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<!--
3-
Copyright (c) 2021 Project CHIP Authors
3+
Copyright (c) 2021-2025 Project CHIP Authors
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -14,9 +14,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<configurator>
17+
<!--
18+
XML generated by Alchemy; DO NOT EDIT.
19+
Source: src/data_model/ACL-Cluster.adoc
20+
Parameters: in-progress
21+
Git:
22+
-->
23+
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
1824
<domain name="CHIP"/>
19-
2025
<enum name="AccessControlEntryPrivilegeEnum" type="enum8">
2126
<cluster code="0x001F"/>
2227
<item name="View" value="0x01"/>
@@ -98,8 +103,8 @@ limitations under the License.
98103
<feature bit="0" code="EXTS" name="Extension" summary="Device provides ACL Extension attribute">
99104
<optionalConform/>
100105
</feature>
101-
<feature bit="1" code="MNGD" name="Managed Device" summary="Device is managed">
102-
<optionalConform/>
106+
<feature bit="1" code="MNGD" name="ManagedDevice" summary="Device is managed">
107+
<describedConform/>
103108
</feature>
104109
</features>
105110
<server init="false" tick="false">true</server>
@@ -108,30 +113,20 @@ limitations under the License.
108113
Node&apos;s Access Control List (ACL), which codifies the rules used to manage
109114
and enforce Access Control for the Node&apos;s endpoints and their associated
110115
cluster instances.</description>
111-
112116
<attribute side="server" code="0x0000" name="ACL" define="ACL" type="array" entryType="AccessControlEntryStruct" writable="true">
113117
<access op="read" privilege="administer"/>
114118
<access op="write" privilege="administer"/>
115-
<mandatoryConform/>
116119
</attribute>
117-
118120
<attribute side="server" code="0x0001" name="Extension" define="EXTENSION" type="array" entryType="AccessControlExtensionStruct" writable="true" optional="true">
119121
<access op="read" privilege="administer"/>
120122
<access op="write" privilege="administer"/>
121123
<mandatoryConform>
122124
<feature name="EXTS"/>
123125
</mandatoryConform>
124126
</attribute>
125-
126-
<attribute side="server" code="0x0002" name="SubjectsPerAccessControlEntry" define="SUBJECTS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="4" default="4">
127-
<mandatoryConform/>
128-
</attribute>
129-
<attribute side="server" code="0x0003" name="TargetsPerAccessControlEntry" define="TARGETS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="3" default="3">
130-
<mandatoryConform/>
131-
</attribute>
132-
<attribute side="server" code="0x0004" name="AccessControlEntriesPerFabric" define="ACCESS_CONTROL_ENTRIES_PER_FABRIC" type="int16u" min="4" default="4">
133-
<mandatoryConform/>
134-
</attribute>
127+
<attribute side="server" code="0x0002" name="SubjectsPerAccessControlEntry" define="SUBJECTS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="4" default="4"/>
128+
<attribute side="server" code="0x0003" name="TargetsPerAccessControlEntry" define="TARGETS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="3" default="3"/>
129+
<attribute side="server" code="0x0004" name="AccessControlEntriesPerFabric" define="ACCESS_CONTROL_ENTRIES_PER_FABRIC" type="int16u" min="4" default="4"/>
135130
<attribute code="0x0005" side="server" name="CommissioningARL" define="COMMISSIONING_ARL" type="array" entryType="CommissioningAccessRestrictionEntryStruct" optional="true">
136131
<mandatoryConform>
137132
<feature name="MNGD"/>
@@ -142,10 +137,9 @@ limitations under the License.
142137
<feature name="MNGD"/>
143138
</mandatoryConform>
144139
</attribute>
145-
146140
<command code="0x00" source="client" name="ReviewFabricRestrictions" isFabricScoped="true" optional="true" response="ReviewFabricRestrictionsResponse">
147141
<description>This command signals to the service associated with the device vendor that the fabric administrator would like a review of the current restrictions on the accessing fabric.</description>
148-
<access op="invoke" privilege="administer"/>
142+
<access op="invoke" privilege="administer"/>
149143
<arg id="0" name="ARL" array="true" type="CommissioningAccessRestrictionEntryStruct"/>
150144
<mandatoryConform>
151145
<feature name="MNGD"/>
@@ -161,17 +155,16 @@ limitations under the License.
161155
</command>
162156

163157
<event side="server" code="0x0000" name="AccessControlEntryChanged" priority="info" isFabricSensitive="true">
164-
<description>The cluster SHALL send AccessControlEntryChanged events whenever its ACL attribute data is changed by an Administrator.</description>
158+
<description>The cluster SHALL generate AccessControlEntryChanged events whenever its ACL attribute data is changed by an Administrator.</description>
165159
<field id="1" name="AdminNodeID" type="node_id" isNullable="true"/>
166160
<field id="2" name="AdminPasscodeID" type="int16u" isNullable="true"/>
167161
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
168162
<field id="4" name="LatestValue" type="AccessControlEntryStruct" isNullable="true"/>
169163
<access op="read" privilege="administer"/>
170-
<mandatoryConform/>
171164
</event>
172165

173166
<event side="server" code="0x0001" name="AccessControlExtensionChanged" priority="info" isFabricSensitive="true" optional="true">
174-
<description>The cluster SHALL send AccessControlExtensionChanged events whenever its extension attribute data is changed by an Administrator.</description>
167+
<description>The cluster SHALL generate AccessControlExtensionChanged events whenever its extension attribute data is changed by an Administrator.</description>
175168
<field id="1" name="AdminNodeID" type="node_id" isNullable="true"/>
176169
<field id="2" name="AdminPasscodeID" type="int16u" isNullable="true"/>
177170
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
@@ -183,7 +176,7 @@ limitations under the License.
183176
</event>
184177

185178
<event side="server" code="0x0002" name="FabricRestrictionReviewUpdate" priority="info" isFabricSensitive="true" optional="true">
186-
<description>The cluster SHALL send FabricRestrictionReviewUpdate events to indicate completion of a fabric restriction review.</description>
179+
<description>The cluster SHALL generate a FabricRestrictionReviewUpdate event to indicate completion of a fabric restriction review.</description>
187180
<field id="0" name="Token" type="int64u"/>
188181
<field id="1" name="Instruction" type="long_char_string" optional="true" length="512"/>
189182
<field id="2" name="ARLRequestFlowUrl" type="long_char_string" optional="true" length="256"/>
@@ -192,5 +185,6 @@ limitations under the License.
192185
<feature name="MNGD"/>
193186
</mandatoryConform>
194187
</event>
188+
195189
</cluster>
196190
</configurator>

0 commit comments

Comments
 (0)