<?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 Re: Loop over access interfaces in template? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4533982#M8980</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/178469"&gt;@misch1942&lt;/a&gt;&amp;nbsp;good stuff, my Google-Fu is strong! Hopefully, this thread helps others too.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 09:25:17 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2022-01-19T09:25:17Z</dc:date>
    <item>
      <title>Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532515#M8974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in a template I want to interate over all access interfaces (Gi...) but not over the uplink unterfaces (Te...). In the samples I found the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% for interface in __interface %}&lt;/P&gt;&lt;P&gt;&amp;nbsp; {% if interface.portType == 'Ethernet Port' %}&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the any list of values that the key "interface.portType" can be? Is there any other solution to loop only over access ports?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:27:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532515#M8974</guid>
      <dc:creator>misch1942</dc:creator>
      <dc:date>2022-01-17T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532620#M8975</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/178469"&gt;@misch1942&lt;/a&gt;&amp;nbsp;you could use conditionals, these&amp;nbsp;&lt;SPAN&gt;render content based on when a condition is either&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="emphasize-text"&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="emphasize-text"&gt;False&lt;/SPAN&gt; like here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{% if stuff in things %}
    {{ stuff }}
{% endif %} # note: if statements need to be ended

{% if stuff not in things %}
    no stuff here
{% endif %} # note: if statements need to be ended&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jan 2022 13:11:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532620#M8975</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-01-17T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532646#M8976</link>
      <description>&lt;P&gt;Well, I am quite familiar with conditionals in jinja. My question was related to the values that the key interface.portType of the Template System Variables of DNAC can become. Is the any documentation of these variables (keys and values)?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 13:56:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532646#M8976</guid>
      <dc:creator>misch1942</dc:creator>
      <dc:date>2022-01-17T13:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532660#M8977</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/178469"&gt;@misch1942&lt;/a&gt;&amp;nbsp;the only thing i could find was&amp;nbsp;&lt;A href="https://developer.cisco.com/codeexchange/github/repo/kebaldwi/DNAC-TEMPLATES/" target="_blank"&gt;https://developer.cisco.com/codeexchange/github/repo/kebaldwi/DNAC-TEMPLATES/&lt;/A&gt;&amp;nbsp;there is also docs here --&amp;gt;&amp;nbsp;&lt;A href="https://developer.cisco.com/dnacenter/" target="_blank"&gt;https://developer.cisco.com/dnacenter/&lt;/A&gt;&amp;nbsp;if nothing is found, i would also ask in the DNA Centre community here --&amp;gt;&amp;nbsp;&lt;A href="https://community.cisco.com/t5/cisco-digital-network/bd-p/discussions-dna" target="_blank"&gt;https://community.cisco.com/t5/cisco-digital-network/bd-p/discussions-dna&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:12:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532660#M8977</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-01-17T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532685#M8978</link>
      <description>&lt;P&gt;Thanks. Will try that.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:58:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4532685#M8978</guid>
      <dc:creator>misch1942</dc:creator>
      <dc:date>2022-01-17T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4533980#M8979</link>
      <description>&lt;P&gt;In the docs given, the link &lt;A href="https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/LAB7-Advanced-Automation/" target="_blank"&gt;https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/LAB7-Advanced-Automation/&lt;/A&gt; helps. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 09:19:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4533980#M8979</guid>
      <dc:creator>misch1942</dc:creator>
      <dc:date>2022-01-19T09:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over access interfaces in template?</title>
      <link>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4533982#M8980</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/178469"&gt;@misch1942&lt;/a&gt;&amp;nbsp;good stuff, my Google-Fu is strong! Hopefully, this thread helps others too.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 09:25:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/loop-over-access-interfaces-in-template/m-p/4533982#M8980</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-01-19T09:25:17Z</dc:date>
    </item>
  </channel>
</rss>

