Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.21 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.21 KB

License

netbox-initializers

This repository contains yaml and csv files used to import various object types into NetBox

Building the csv files from the yaml sources

The csv files are built from git hooks but this may be useful for local generation

  1. It is recommended that you setup your own "virtual environment"
  2. Install requirements:
    pip install -r requirements.txt
    
  3. Execute the build process
    venv~> ./build_csv_files.py
    

Pre-commit

Run pre-commit install to install pre-commit into your git hooks. pre-commit will now run on every commit.

If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files. To run individual hooks use pre-commit run <hook_id>.

The first time pre-commit runs on a file it will automatically download, install, and run the hook. Note that running a hook for the first time may be slow. For example: If the machine does not have a specific python package installed, pre-commit will download and install it.