cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
502
Views
0
Helpful
0
Replies

Cisco DCNM Template assistance

junajunction
Level 1
Level 1

Hi Guys,

 

Need support in creating a DCNM deployment template for creating or renaming a layer 2 vlan on the nexus switches.

I was able to find the below two templates, but neither of them seem to be working. Where the first template is validated and gets deployed successfully but the change is not reflected on the switch or configuration change on the switch does not occur. and the Second template fails in validating the template and gives errors.

 

First Template:

##template variables

# Copyright (c) 2018 by Cisco Systems, Inc.
# All rights reserved.

@(PrimaryAssociation=true, IsMandatory=true)
integer vlan;

@(IsMandatory=false, DisplayName="Name")
string nme;

##

##template content
vlan $$vlan$$
if($$nme$$ !=""){
name $$nme$$
}

##

 

**************************************************************************************************

 

Second Template:

##template variables

integerRange vlan_range;

@(internal=true)

integer vlanName;

##

##template content

foreach vlanID in $$vlan_range$${

vlan @vlanID

$$vlanName$$=@vlanID

name myvlan$$vlanName$$

}

##

 

Thank you all

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: