python-netbox-network-importer
Port variant py311
Summary Tool to import network into Netbox (3.11)
Package version 1.1.2
Homepage https://gitlab.cesnet.cz/701/done/netbox_network_importer
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 07 JAN 2023, 04:18:24 UTC
Port created 07 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
single # Netbox Network Importer Tool to analyze and synchronize an existing network with a Netbox (SOT). The main use cases for the network importer: - Import an existing network into a Netbox - ~~Check the differences between the running network and the Netbox~~ --- ## Install 1. Clone repository - `git clone git@gitlab.cesnet.cz:701/done/netbox_network_importer.git` 2. Go into the repository - `cd netbox_network_importer ` 3. Create `virtualenv` - `python3 -m venv venv` 3. Activate it - `source venv/bin/activate` 3. Install the tool - `pip install .` --- ## Pre-requisite To operate, the Netbox Network Importer is dependent on the following items: - Access to Netbox API - Access to Network Devices via SSH - Created Custom Field on Netbox ```json { "display": "Ignore Importer", "content_types": [ "dcim.interface", ], "type": { "value": "boolean", "label": "Boolean (true/false)" }, "object_type": null, "data_type": "boolean", "name": "ignore_importer", "label": "Ignore Importer", "description": "Will be ignored when processed by Network Importer", "required": true, "filter_logic": { "value": "exact", "label": "Exact" }, "default": false, "weight": 100, } ``` --- ## Inventory A device inventory must be available in NetBox. To be able to connect to the device the following information needs to be defined : - Primary ip address - Platform (must be a one of the following ['iosxr', 'ios', 'iosxe']) --- ## Configuration file The information to connect to NetBox must be provided via the configuration file. The configuration file below present standard options that can be provided to control the behavior of the Netbox Network Importer. Netbox Network Importer try to find the configuration file at: - `/home//.config/netbox_network_importer/config.yml` - `/etc/netbox_network_importer/config.yml` - Or you can set path to configuratin file like: - `netbox_network_importer --config path_to_dir_with_config/ synchronize` ``` --- netbox: NETBOX_API_TOKEN: "API_TOKEN" NETBOX_INSTANCE_URL: "https://netbox.done-test.cesnet.cz/" NETBOX_GRAPHQL_URL: "https://netbox.done-test.cesnet.cz/graphql/" tacacs: TACACS_USERNAME: "username" TACACS_PASSWORD: "password" config: LOG_DIR: "path_where_output.log_will_be_stored" LOG_LEVEL: "DEBUG" OUTPUT_DIR: "output_folder_where_results_will_be_stored" ``` --- ## Execute The Netbox Network Importer runs only in apply mode. - ~~In check mode, no modification will be made to the SOT, the differences will be printed on the screen~~ - In apply mode, the NETBOX will be updated with: - interfaces - IPs - vlans - LAGs ### Apply Mode The Netbox Network Importer will attempt to create/update or delete all elements in the Netbox that do not match what has been observed in the
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY311 ON Build using Python 3.11
Package Dependencies by Type
Build (only) python-setuptools:single:py311
autoselect-python:single:standard
Build and Runtime python-click:single:py311
python-kani-fork-pynetbox:single:py311
python-python-slugify:single:py311
python-appdirs:single:py311
python-PyYAML:single:py311
python-python-dotenv:single:py311
python-netutils:single:py311
python-nornir:single:py311
python-nornir-netbox:single:py311
python-nornir-utils:single:py311
python-nornir-rich:single:py311
python-deepdiff:single:py311
python-napalm:single:py311
python-ncclient:single:py311
python-loguru:single:py311
python-dictdiffer:single:py311
python-json2html:single:py311
python-jsonpickle:single:py311
python-pytest-runner:single:py311
python311:single:standard
Download groups
main mirror://PYPI/n/netbox-network-importer
Distribution File Information
153588999b02fbbc38e3b3f5741e601a63bf25d139886f84c91b106a92e719e4 25007 netbox_network_importer-1.1.2.tar.gz
Ports that require python-netbox-network-importer:py311
No other ports depend on this one.