From 57687454f7cba17dd9a8183051253df3b6d0b1d9 Mon Sep 17 00:00:00 2001 From: tianfeng-yang <130436698+tianfeng-yang@users.noreply.github.com> Date: Fri, 21 Jul 2023 23:53:52 +0800 Subject: [PATCH] [Python] CreateControllersOnFabric support paaTrustStorePath (#28049) --- .../python/chip/utils/CommissioningBuildingBlocks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controller/python/chip/utils/CommissioningBuildingBlocks.py b/src/controller/python/chip/utils/CommissioningBuildingBlocks.py index efa104258a0e25..8fa80223b14316 100644 --- a/src/controller/python/chip/utils/CommissioningBuildingBlocks.py +++ b/src/controller/python/chip/utils/CommissioningBuildingBlocks.py @@ -118,7 +118,8 @@ async def CreateControllersOnFabric(fabricAdmin: FabricAdmin, controllerNodeIds: typing.List[int], privilege: Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum, targetNodeId: int, - catTags: typing.List[int] = []) -> typing.List[ChipDeviceController]: + catTags: typing.List[int] = [], + paaTrustStorePath: str = "") -> typing.List[ChipDeviceController]: ''' Create new ChipDeviceController instances on a given fabric with a specific privilege on a target node. Args: @@ -130,12 +131,13 @@ async def CreateControllersOnFabric(fabricAdmin: FabricAdmin, targetNodeId: The Node ID of the target. catTags: CAT Tags to include in the NOC of controller, as well as when setting up the ACLs on the target. + paaTrustStorePath: Path to the PAA trust store. If one isn't provided, a suitable default is selected. ''' controllerList = [] for nodeId in controllerNodeIds: - newController = fabricAdmin.NewController(nodeId=nodeId, catTags=catTags) + newController = fabricAdmin.NewController(nodeId=nodeId, paaTrustStorePath=paaTrustStorePath, catTags=catTags) await GrantPrivilege(adminDevCtrl, newController, privilege, targetNodeId, catTags) controllerList.append(newController)