View on GitHub

panco

Command-line tool that interacts with Palo Alto firewalls and Panorama

panco.dev | Documentation Home | Policy Command

Importing/Modifying A Policy

Usage:
  panco policy import [flags]

Flags:
  -d, --device string        Device to connect to
  -g, --devicegroup string   Device Group name when importing to Panorama (default "shared")
  -f, --file string          Name of the CSV file to export to
  -h, --help                 help for import
  -l, --location string      Location of the rulebase - <pre|post> (default "pre")
  -t, --type string          Type of policy to import
  -u, --user string          User to connect to the device as
  -v, --vsys string          Vsys name when importing to a firewall (default "vsys1")

Overview

Using the import command allows you to create new rules, or modify existing rules by adding new values to them. You can create/modify the following types of policies at this time:

Please use the below link as a guide on how to structure your CSV file when importing rules:

CSV Structure - Policies