: Import and Overwrite Existing Template Stack Variables
Focus
Focus

Import and Overwrite Existing Template Stack Variables

Table of Contents
End-of-Life (EoL)

Import and Overwrite Existing Template Stack Variables

Import template or template stack variables to easily reuse template or template stacks.
Use template stack variables to replace IP addresses, IP ranges, FQDN, interfaces, or group ID in your firewall configurations. Variables allow you to reduce the total number of templates and template stacks you need to manage, while allowing you to preserve any firewall-specific values.
Importing template stack variables allows you to overwrite the values of multiple existing variables, and you cannot create new template stack variables when importing. For more information how on how to create new template or template stack variable, see Configure a Template or Template Stack Variable.
  1. Log in to the Panorama Web Interface.
  2. Export the existing template stack variables.
    1. Select PanoramaTemplates and select a template or template stack.
    2. Select Variable CSVExport. The configured template stack variables are downloaded locally as a CSV file.
    3. Open the exported CSV.
  3. Edit the CSV file containing the template stack variables to import to Panorama in the following format:
    Values that display as #inherited# are values that are defined in the template stack.
    1. Correct the number of the cells containing the firewall serial number. Repeat this step for all firewalls in the CSV file.
      1. Right-click the cell containing the firewall serial number and select Format Cells.
      2. Select NumberText and click OK.
      3. Add a 0 at the beginning of the serial number.
    2. Enter a new value for the desired template variable.
    3. Select FileSave As and save the file in CSV UTF-8 format.
  4. Import the CSV file to the template stack.
    1. Log in to the Panorama Web Interface.
    2. Select PanoramaTemplates and select the template stack for which you exported the variables in Step 2.
    3. Select Variable CSVImport and Browse for the CSV file edited in Step 3.
    4. Click OK to import the template stack variables.
  5. Select CommitCommit to Panorama and Commit your changes.
  6. Enter the variables in the appropriate locations.
  7. Click Commit and Commit and Push your changes to managed firewalls.
    When you push a device group configuration with references to template or template stack variables, you must Edit Selections and Include Device and Network Templates.