<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DNA Templates: Variable inside a variable? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dna-templates-variable-inside-a-variable/m-p/4146076#M9110</link>
    <description>&lt;P&gt;Hello and thanks for taking the time to read over my post. I'm trying to reference a Velocity variable ($Data_Vlan) inside another variable($Access_Port_Config). I'm not sure the best way to accomplish this task. I've not been able to figure it out yet and was hoping someone might point my in the right direction. Thanks in advance!&lt;/P&gt;&lt;PRE&gt;#set ($Access_Port_Config="
 description LAN
 switchport access vlan $Data_Vlan
 switchport mode access
 switchport voice vlan $Voice_Vlan
 line
 line")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 22:11:51 GMT</pubDate>
    <dc:creator>no_prop4500</dc:creator>
    <dc:date>2020-09-03T22:11:51Z</dc:date>
    <item>
      <title>DNA Templates: Variable inside a variable?</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-templates-variable-inside-a-variable/m-p/4146076#M9110</link>
      <description>&lt;P&gt;Hello and thanks for taking the time to read over my post. I'm trying to reference a Velocity variable ($Data_Vlan) inside another variable($Access_Port_Config). I'm not sure the best way to accomplish this task. I've not been able to figure it out yet and was hoping someone might point my in the right direction. Thanks in advance!&lt;/P&gt;&lt;PRE&gt;#set ($Access_Port_Config="
 description LAN
 switchport access vlan $Data_Vlan
 switchport mode access
 switchport voice vlan $Voice_Vlan
 line
 line")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 22:11:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-templates-variable-inside-a-variable/m-p/4146076#M9110</guid>
      <dc:creator>no_prop4500</dc:creator>
      <dc:date>2020-09-03T22:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Templates: Variable inside a variable?</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-templates-variable-inside-a-variable/m-p/4150955#M9111</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/864763"&gt;@no_prop4500&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The operation your looking for is #define, not #set. &lt;A href="https://explore.cisco.com/dnac-use-cases/apache-velocity" target="_self"&gt;Here&lt;/A&gt; is my go-to resource for everything Velocity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#define ($Access_Port_Config)
 description LAN
 switchport access vlan $Data_Vlan
 switchport mode access
 switchport voice vlan $Voice_Vlan
#end&lt;BR /&gt;&lt;BR /&gt;$Access_Port_Config&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 20:37:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-templates-variable-inside-a-variable/m-p/4150955#M9111</guid>
      <dc:creator>Kenneth.Grace</dc:creator>
      <dc:date>2020-09-14T20:37:36Z</dc:date>
    </item>
  </channel>
</rss>

