<?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: Template Variables in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/253929#M72092</link>
    <description>&lt;P&gt;Awesome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for this!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 13:56:31 GMT</pubDate>
    <dc:creator>reaper</dc:creator>
    <dc:date>2019-03-15T13:56:31Z</dc:date>
    <item>
      <title>Template Variables</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/253804#M72057</link>
      <description>&lt;P&gt;I didn't find the documentation that helpful regarding template and template stack variables, so I'm writing this post that will hopefully help someone out with creating their first variable. In my example below, we used a template variable to change the next hop IP address in a static route used by the virtual router. Each branch had a different IP address for this static route. As long as Panorama is on version 8.1, variables can be applied to firewalls on a lower version. At the time of writing this, our Panorama was on 8.1 and our firewalls were on 8.0. The variables applied successfully since Panorama is handling the variable logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a template variable in Panorama:&lt;/P&gt;&lt;P&gt;1. Navigate to Panorama &amp;gt; Templates&lt;/P&gt;&lt;P&gt;2. Find the template you want to add a variable to&lt;/P&gt;&lt;P&gt;3. Click the "Manage..." link under the Variables column for that template&lt;/P&gt;&lt;P&gt;4. Click the Add button and name your variable&lt;/P&gt;&lt;P&gt;5. Select the type of variable&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;a. You can apply a default value here or select "None" from the drop down list.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;b. IP Netmask was selected in this example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Template Variable" style="width: 500px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/19070i5334D91D2A402A4D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="Template Variable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Template Variable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. [Example scenario] Navigate to Network &amp;gt; Virtual Routers&lt;/P&gt;&lt;P&gt;7.&amp;nbsp;[Example scenario] Select the template you added the variable to&lt;/P&gt;&lt;P&gt;8. [Example scenario] Select the virtual router you want to edit&lt;/P&gt;&lt;P&gt;9.&amp;nbsp;[Example scenario] Open the "Static Routes" tab&lt;/P&gt;&lt;P&gt;10.&amp;nbsp;[Example scenario] Edit the static route, below Next Hop: IP Address select the variable you created earlier from the drop down list&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Using the variable" style="width: 300px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/19071iE3762AE9D3124774/image-size/small/is-moderation-mode/true?v=v2&amp;amp;px=200" role="button" title="2.jpg" alt="Using the variable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Using the variable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;11. Navigate to Panorama &amp;gt; Managed Devices &amp;gt; Summary&lt;/P&gt;&lt;P&gt;12. Find the firewall(s) you want to add a variable to and click the "Create" link under the Variables column&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;a. "Create" will change to "Edit" if you already have a variable applied here&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;b. If you want to clone a variable definition, select "Yes", if not select "No". I selected No in this example since it was the first variable we have created so there was nothing to clone from&lt;/P&gt;&lt;P&gt;13. The variable you created earlier will be displayed in the list here&lt;/P&gt;&lt;P&gt;14. Click on the variable you want to edit&lt;/P&gt;&lt;P&gt;15. Enter the value you want to apply to this specific firewall&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Entering the firewall specific value" style="width: 500px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/19072i277CE968D558F3D3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="3.jpg" alt="Entering the firewall specific value" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Entering the firewall specific value&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;16. Click OK and then Close&lt;/P&gt;&lt;P&gt;17. Repeat steps 12 - 16 for each firewall you want a variable applied to&lt;/P&gt;&lt;P&gt;18. Commit the changes&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:58:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/253804#M72057</guid>
      <dc:creator>kalakai</dc:creator>
      <dc:date>2019-03-14T20:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Template Variables</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/253929#M72092</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for this!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 13:56:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/253929#M72092</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2019-03-15T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Template Variables</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/292179#M77365</link>
      <description>&lt;P&gt;While this is helpful, I'm having a problem.&amp;nbsp; I need to use that same variable you created in your example for a virtual router address, however I also need to use that same address in a Policy Based Forwarding Rule.&amp;nbsp; I cannot figure out how to apply those variables to anything within Policies.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 18:41:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/template-variables/m-p/292179#M77365</guid>
      <dc:creator>BobSpencer</dc:creator>
      <dc:date>2019-10-09T18:41:27Z</dc:date>
    </item>
  </channel>
</rss>

