Skip to content

Commit 5768745

Browse files
tianfeng-yangpull[bot]
authored andcommitted
[Python] CreateControllersOnFabric support paaTrustStorePath (#28049)
1 parent d233ef7 commit 5768745

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/controller/python/chip/utils/CommissioningBuildingBlocks.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ async def CreateControllersOnFabric(fabricAdmin: FabricAdmin,
118118
controllerNodeIds: typing.List[int],
119119
privilege: Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum,
120120
targetNodeId: int,
121-
catTags: typing.List[int] = []) -> typing.List[ChipDeviceController]:
121+
catTags: typing.List[int] = [],
122+
paaTrustStorePath: str = "") -> typing.List[ChipDeviceController]:
122123
''' Create new ChipDeviceController instances on a given fabric with a specific privilege on a target node.
123124
124125
Args:
@@ -130,12 +131,13 @@ async def CreateControllersOnFabric(fabricAdmin: FabricAdmin,
130131
targetNodeId: The Node ID of the target.
131132
catTags: CAT Tags to include in the NOC of controller, as well as when setting
132133
up the ACLs on the target.
134+
paaTrustStorePath: Path to the PAA trust store. If one isn't provided, a suitable default is selected.
133135
'''
134136

135137
controllerList = []
136138

137139
for nodeId in controllerNodeIds:
138-
newController = fabricAdmin.NewController(nodeId=nodeId, catTags=catTags)
140+
newController = fabricAdmin.NewController(nodeId=nodeId, paaTrustStorePath=paaTrustStorePath, catTags=catTags)
139141
await GrantPrivilege(adminDevCtrl, newController, privilege, targetNodeId, catTags)
140142
controllerList.append(newController)
141143

0 commit comments

Comments
 (0)