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

DNA Center 1.3.3.6 - Template editor - Banner

palonso_3
Level 1
Level 1

Hi,

 

I'm trying to create a template to configure the banner of the Fabric devices using the template editor in DNAC.

It is similar like this,

 

<MLTCMD>banner motd ^

Banner Line 1

Banner Line 2

Banner Line N
^</MLTCMD>

 

The template saves and commits successfully. But when I enter any fabric device, the banner shows with a blank line between the text lines I have defined in the banner.

 

Is this a bug in DNAC version, or am I doing something wrong that I didnt realize?

 

Thanks for your help.

Best regards

2 Replies 2

gbieli
Level 1
Level 1

Hi,

I managed to fix this by assigning the banner text to a variable and use that variable in the multiline command section:

#set($banner = "

Customer Name:  ...
Solution:       SD-Access with Cisco DNA Center
Switch Name:    $(hostname)

...

")
<MLTCMD>banner exec @${banner}@
</MLTCMD>

Best regards

Hi @gbieli ,

 

Thank you very much for your sugguestion.

 

But I have tested again after upgrading to the new version 2.1.2.3 , and it worked as expected at the beginning.

 

Best regards