Skip to main content

Capirca

Project description

BuildStatus

Capirca

Capirca is a tool designed to utilize common definitions of networks, services and high-level policy files to facilitate the development and manipulation of network access control lists (ACLs) for various platforms. It was developed by Google for internal use, and is now open source.

To install the dev environment in machines that support bash files, run the dev-install script provided.

$ dev-install

Configuring Capirca with YAML files

Capirca's aclgen can be configured with one or more yaml files. These files will be prioritized from left to right, meaning any duplicate configurations will be overriden, not merged.

Command line flags can still be used when running aclgen with configuration files, and are treated as higher priority than configuration files.

The default capirca configurations for aclgen can be expressed in a YAML file as follows:

base_directory: ./policies
definitions_directory: ./def
output_directory: ./
optimize: false
recursive: true
debug: false
verbose: false
ignore_directories:
  - DEPRECATED
  - def
max_renderers: 10
shade_check: true
exp_info: 2

Community

Capirca has a channel on the NetworkToCode slack.

Running with Docker

If your usecase is to just use the CLI and you don't want to go through the process of installing Capirca, you can use the dockerized version. Just pipe your CLI arguments onto the container instead and mount your working directory to the /data directory of the container!

Example:

$ docker run -v "${PWD}:/data" docker.pkg.github.com/google/capirca/capirca:latest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capirca-2.0.2.tar.gz (147.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capirca-2.0.2-py3-none-any.whl (185.6 kB view details)

Uploaded Python 3

File details

Details for the file capirca-2.0.2.tar.gz.

File metadata

  • Download URL: capirca-2.0.2.tar.gz
  • Upload date:
  • Size: 147.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for capirca-2.0.2.tar.gz
Algorithm Hash digest
SHA256 b98bf78eae132ae8899a8d1e628ae26e07456d3bc381482d54049b69e63d4cf8
MD5 e003ed96511edc3529021e3ed6692676
BLAKE2b-256 853e997e25d0d0a1ff2cee19c3d2c7396dac0329a067b3b1dbdb913d8903f454

See more details on using hashes here.

File details

Details for the file capirca-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: capirca-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 185.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for capirca-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65ac558edbe40c598ab6f1695afdcde28e849897683fd5e0e8e62a76fd68e89f
MD5 0055742167c0f8fad0acfb315fa4688d
BLAKE2b-256 00942888bc029eee3abe7e75ad927657cec5d574fc8ca81d0b1dce05284e3b0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page