Hi
Very new to Config Change Templates..
I like populate interface CP to the desc.
Can I just only modified the interface desc. by add just add @myintrfaceCP
/*
.CHANGE_TEMPLATE_DESCRIPTION
Change Interface Description on Juniper devices
.CHANGE_TEMPLATE_TAGS
Juniper
.PLATFORM_DESCRIPTION
Juniper
.PARAMETER_LABEL @ContextNode
NCM Node
.PARAMETER_DESCRIPTION @ContextNode
The node the template will operate on. All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables.
.PARAMETER_LABEL @PhysicalInterfaces
Select Interface(s)
.PARAMETER_DESCRIPTION @PhysicalInterfaces
Select Interface(s) you would like to change description on.
.PARAMETER_LABEL @NewInterfaceDescription
Interface Description
.PARAMETER_DESCRIPTION @NewInterfaceDescription
Enter new description for interface(s).
*/
script ChangeInterfaceDescriptionCiscoIOS (
NCM.Nodes @ContextNode,
NCM.Interfaces[] @PhysicalInterfaces,
string @NewInterfaceDescription )
{
// Enter config terminal mode
CLI
{
configure
}
foreach (@itf in @PhysicalInterfaces)
{
CLI
{
interface @itf.InterfaceDescription
delete description
description @NewInterfaceDescription
exit
}
}
//Exit Config mode
CLI {exit}