Using Smarts dmctl
You cannot create and pass a list object through the command line using the Smarts dmctl command tool. To see why, run getCommunities as follows:
dmctl -s <AM_DOMAIN> invoke ICF_TopologyManager::ICF-TopologyManager getCommunities
{ "public" }
The above result indicates that the community strings are stored in a list ({} means "public" is a list). Therefore, you cannot create and pass a list object through the command line using the Smarts dmctl command tool. However, you can use an ASL script as described in the following section.
Using Smarts ASL script setCommunities
You can use setCommunities through an ASL script as in the following example (see Note statement):
List objects can also be initialized on create as in the following example:
Instead of using:
communityList = list();
communityList[0]="public";
communityList[1]="private";
You can use the following:
communityList = list("public", "private");