Hello everyone !! :-)
I am currently testing the NCM for my company.
And in order to present it to the IT team I would like to have a nice template config change.
I did some work with these templates but I am stuck on one thing ...
How to enable or disable ( shut - no shut ) an interface ( with a list box ) after having it moved to the correct vlan.
Here what I've done but it does'nt work...
Could some one help me out or share some documentation about the template Semanttics ( the one I have is poor )
Thank's in advance for your help.
Blaise
.PARAMETER_LABEL @Status
Status Type
.PARAMETER_DESCRIPTION @Status
Enable (no shut) or Disable (shut) the interface.
.PARAMETER_DISPLAY_TYPE @Status
listbox: 1=shut|2=no shut
*/
script ConfigureVLANmembershipCiscoIOS (
NCM.Nodes @ContextNode,
NCM.Interfaces[] @TargetPorts,
NCM.VLANs[] @VlansToRemove,
NCM.VLANs @VlanToAssign,
string @InterfaceDescription,
string @Speed,
string @Duplex,
string @Status )
{
if (@Status==';no shut')
{
CLI {Status @Status}
}
else
{
if (@Status==';shut')
{
CLI {Status @Status}
}
}