<?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 SDWAN terraform in DevNet General Discussions</title>
    <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022287#M2263</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a device template with many variables. they look like this in the csv file&lt;/P&gt;&lt;P&gt;csv-deviceId,csv-deviceIP,csv-host-name,pnp_dhcp_defaultrouter_527,pnp_dhcp_network,/70/vpn70_internal_svc_Sec_if_name/interface/if-name,&lt;/P&gt;&lt;P&gt;is there a way to print out all the variables in a&amp;nbsp;device template with terraform so that i can make the call correct?&lt;/P&gt;&lt;P&gt;i need to attach the template to a device like this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;resource&lt;/SPAN&gt; &lt;SPAN&gt;"sdwan_attach_feature_device_template"&lt;/SPAN&gt; &lt;SPAN&gt;"branch"&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;provider&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;sdwan&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"9e6044a3-afdb-"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;devices&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"ISR4451-X/K9-FOC24"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;variables&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;???????&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 23:11:39 GMT</pubDate>
    <dc:creator>TahirAli12881</dc:creator>
    <dc:date>2024-02-21T23:11:39Z</dc:date>
    <item>
      <title>SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022287#M2263</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a device template with many variables. they look like this in the csv file&lt;/P&gt;&lt;P&gt;csv-deviceId,csv-deviceIP,csv-host-name,pnp_dhcp_defaultrouter_527,pnp_dhcp_network,/70/vpn70_internal_svc_Sec_if_name/interface/if-name,&lt;/P&gt;&lt;P&gt;is there a way to print out all the variables in a&amp;nbsp;device template with terraform so that i can make the call correct?&lt;/P&gt;&lt;P&gt;i need to attach the template to a device like this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;resource&lt;/SPAN&gt; &lt;SPAN&gt;"sdwan_attach_feature_device_template"&lt;/SPAN&gt; &lt;SPAN&gt;"branch"&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;provider&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;sdwan&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"9e6044a3-afdb-"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;devices&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;id&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"ISR4451-X/K9-FOC24"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;variables&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;???????&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 23:11:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022287#M2263</guid>
      <dc:creator>TahirAli12881</dc:creator>
      <dc:date>2024-02-21T23:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022595#M2264</link>
      <description>&lt;P&gt;I do not think you can do this with TF, what you could do is create a local value in your TF config to hold the list of variables extracted from the CSV file you have, then use a&amp;nbsp;file&amp;nbsp;function to read the CSV file and parse it to extract the variable names. Finally, iterate through the extracted variable names and add them to the&amp;nbsp;variables&amp;nbsp;block in your&amp;nbsp;sdwan_attach_feature_device_template&amp;nbsp;resource.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 10:53:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022595#M2264</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-02-22T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022620#M2265</link>
      <description>&lt;P&gt;Thanks for ur reply. think I was not clear in explaining.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know the name of the variables that Vmange will accept as key values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TahirAli12881_0-1708602268046.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/210842i8CD80625D332FA2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TahirAli12881_0-1708602268046.png" alt="TahirAli12881_0-1708602268046.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get all these values somehow.&lt;/P&gt;&lt;P&gt;Because I need to build the terraform &amp;nbsp;&lt;SPAN&gt;resource with these vaules I belive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 11:47:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022620#M2265</guid>
      <dc:creator>TahirAli12881</dc:creator>
      <dc:date>2024-02-22T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022661#M2266</link>
      <description>&lt;P&gt;No problem.&amp;nbsp;The documentation does not explain the format and expected key names.&amp;nbsp;&lt;SPAN class="pending"&gt;Each Vmange service typically has dedicated documentation outlining available APIs,&lt;/SPAN&gt;&lt;SPAN class="pending"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;functionalities,&lt;/SPAN&gt;&lt;SPAN class="pending"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and accepted parameters.&lt;/SPAN&gt;&amp;nbsp;Like for example I&lt;SPAN class="s1"&gt;&amp;nbsp;think the the vars in the example usage - &lt;A href="https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/guides/updating_templates" target="_blank"&gt;&lt;SPAN class="s2"&gt;https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/guides/updating_templates&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Required:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;- `id` (String) Device ID&lt;/P&gt;
&lt;P class="p3"&gt;- `variables` (Map of String) Device variables&lt;/P&gt;
&lt;P class="p3"&gt;But i do not think you can pull all the variables sadly, much like the missing payload information in the docs. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 13:01:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022661#M2266</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-02-22T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022662#M2267</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 13:03:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5022662#M2267</guid>
      <dc:creator>TahirAli12881</dc:creator>
      <dc:date>2024-02-22T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: SDWAN terraform</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5032071#M2274</link>
      <description>&lt;P&gt;These are the variables as shown in the picture. all values with in () are the variables..&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TahirAli12881_0-1709334326716.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/211553i1B40B391C4EEB165/image-size/large?v=v2&amp;amp;px=999" role="button" title="TahirAli12881_0-1709334326716.png" alt="TahirAli12881_0-1709334326716.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and this did work for me..Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 17:49:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sdwan-terraform/m-p/5032071#M2274</guid>
      <dc:creator>TahirAli12881</dc:creator>
      <dc:date>2024-03-02T17:49:20Z</dc:date>
    </item>
  </channel>
</rss>

