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. Export the existing template stack variables.
    1. Select
      Panorama
      Templates
      and select a template or template stack.
    2. Select
      Variable CSV
      Export
      . The configured template stack variables are downloaded locally as a CSV file.
    3. Open the exported CSV.
  2. 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
        Number
        Text
        and click
        OK
        .
      3. Add a
        0
        at the beginning of the serial number.
      panorama-interconnect-edit-serial-number.png
    2. Enter a new value for the desired template variable.
    3. Select
      File
      Save As
      and save the file in
      CSV UTF-8
      format.
      panorama-interconnect-import-variables-csv.png
  3. Import the CSV file to the template stack.
    1. Select
      Panorama
      Templates
      and select the template stack for which you exported the variables in Step 2.
    2. Select
      Variable CSV
      Import
      and
      Browse
      for the CSV file edited in Step 3.
    3. Click
      OK
      to import the template stack variables.
  4. Select
    Commit
    Commit to Panorama
    and
    Commit
    your changes.
  5. Enter the variables in the appropriate locations.
  6. 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
    .

Related Documentation