Skip to content

Commit

Permalink
Update the ACL event fields to align with the spec (#13738)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Feb 9, 2022
1 parent 0c16bba commit 4650701
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ server cluster AccessControl = 31 {

info event AccessControlEntryChanged = 0 {
fabric_idx adminFabricIndex = 0;
node_id adminNodeID = 1;
INT16U adminPasscodeID = 2;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
AccessControlEntry latestValue = 4;
nullable AccessControlEntry latestValue = 4;
}

info event AccessControlExtensionChanged = 1 {
fabric_idx adminFabricIndex = 0;
node_id adminNodeID = 1;
INT16U adminPasscodeID = 2;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
ExtensionEntry latestValue = 4;
nullable ExtensionEntry latestValue = 4;
}

attribute AccessControlEntry acl[] = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ limitations under the License.
<event side="server" code="0x0000" name="AccessControlEntryChanged" priority="info" optional="false">
<description>The cluster SHALL send AccessControlEntryChanged events whenever its ACL attribute data is changed by an Administrator.</description>
<field id="0" name="AdminFabricIndex" type="fabric_idx"/>
<field id="1" name="AdminNodeID" type="node_id"/>
<field id="2" name="AdminPasscodeID" type="INT16U"/>
<field id="1" name="AdminNodeID" type="node_id" isNullable="true"/>
<field id="2" name="AdminPasscodeID" type="INT16U" isNullable="true"/>
<field id="3" name="ChangeType" type="ChangeTypeEnum"/>
<field id="4" name="LatestValue" type="AccessControlEntry"/>
<field id="4" name="LatestValue" type="AccessControlEntry" isNullable="true"/>
</event>
<event side="server" code="0x0001" name="AccessControlExtensionChanged" priority="info" optional="false">
<description>The cluster SHALL send AccessControlExtensionChanged events whenever its extension attribute data is changed by an Administrator.</description>
<field id="0" name="AdminFabricIndex" type="fabric_idx"/>
<field id="1" name="AdminNodeID" type="node_id"/>
<field id="2" name="AdminPasscodeID" type="INT16U"/>
<field id="1" name="AdminNodeID" type="node_id" isNullable="true"/>
<field id="2" name="AdminPasscodeID" type="INT16U" isNullable="true"/>
<field id="3" name="ChangeType" type="ChangeTypeEnum"/>
<field id="4" name="LatestValue" type="ExtensionEntry"/>
<field id="4" name="LatestValue" type="ExtensionEntry" isNullable="true"/>
</event>
</cluster>
</configurator>
12 changes: 6 additions & 6 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ client cluster AccessControl = 31 {

info event AccessControlEntryChanged = 0 {
fabric_idx adminFabricIndex = 0;
node_id adminNodeID = 1;
INT16U adminPasscodeID = 2;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
AccessControlEntry latestValue = 4;
nullable AccessControlEntry latestValue = 4;
}

info event AccessControlExtensionChanged = 1 {
fabric_idx adminFabricIndex = 0;
node_id adminNodeID = 1;
INT16U adminPasscodeID = 2;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
ExtensionEntry latestValue = 4;
nullable ExtensionEntry latestValue = 4;
}

attribute AccessControlEntry acl[] = 0;
Expand Down
24 changes: 12 additions & 12 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions zzz_generated/app-common/app-common/zap-generated/cluster-objects.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4650701

Please sign in to comment.