I am trying to figure out how to use CCT to configure the interface description for ports on Cisco switches using the following script: (beginning comments removed, the script does fully validate)
script WhseASWPorts(NCM.Nodes @ContextNode,
string @IDFNumber,
string @SiteID)
{
//TODO - enter port configuration settings on Warehouse IDF-ASW switches
//Enter CLI commands
CLI
{
configure terminal
!
interface GigabitEthernet1/0/1
description @SiteID-@IDFNumber-WAP-01
end
}
}
But every time I try and run it I receive the following error:
Error:Variable @SiteID-@IDFNumber-WAP-01 could not be matched. Possible causes of this are:
1) It has not been declared.
2) You are referencing an entity property which does not exist.
3) You are missing a closing bracket in a prior native block.
How do I escape the different sections of the interface description '@SiteID-@IDFNumber-WAP-01'; to be seen as two separate variables that can each be updated independently?