07-30-2020 10:47 PM - edited 07-30-2020 11:56 PM
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
10-23-2020 08:15 AM - edited 10-23-2020 08:16 AM
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
10-30-2020 06:36 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide