Is it possible to do a script that outputs 2 looped variables with the below
i input 10,20 and data,voice and get
vlan 10
name data
vlan 20
name voice
The closest i have been able to come is the below
script ConfigureVLANCisco (
NCM.Nodes @ContextNode,
string [] @vlans,
string [] @vlansname )
{
CLI
{
configure terminal
}
foreach (@vlan in @vlans)
foreach (@name in @vlansname)
{
CLI
{
vlan @vlan
name name
}
}
}
which outputs
vlan 10
name data
name voice
vlan 20
name data
name voice
any help is appreciated.