Work with ipv4 in NetBox
Project description
netbox-ipv4-tools
Work with ipv4 in NetBox. This project includes code from netmask (rewritten in Vanilla Javascript), which is licensed under the MIT license: original license
This plugin offers a place to retrieve
- A table with the CIDR to netmask conversion, inluding the wildcard bits and the total hosts available per CIDR
- A tool to convert a CIDR into an IP range including information such the usable host count, the netmask in decimal dotted format and the wildcard bits
Install
The plugin is available as a Python package and can be installed with pip.
Run pip install netbox-ipv4-tools
in your virtual env.
Create a file named local_requirements.txt
(if not already existing) in the NetBox root directory (alongside requirements.txt
) and list the netbox-ipv4-tools
package:
# echo netbox-ipv4-tools >> local_requirements.txt
Once installed, the plugin needs to be enabled in your configuration.py
# In your configuration.py
PLUGINS = ["netbox_ipv4_tools"]
First run source /opt/netbox/venv/bin/activate
to enter the Python virtual environment.
Then run
cd /opt/netbox/netbox
pip3 install netbox-ipv4-tools
python3 manage.py collectstatic --no-input
Versions
This plugin requires netbox >= 4.0.0
Thanks
Thanks to rs for the work on netmask
Thanks to mattieserver and his project netbox-topology-view. I used his work to get a working plugin and to publish it to pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for netbox_ipv4_tools-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4a7ae85383df767e993735b3fffa8b844a03d9476030a35d760d96274691bd |
|
MD5 | 07aa97d15519e3e2f7036ee69bf8b9ff |
|
BLAKE2b-256 | 6fdc788d7c22d3fa5093f42c4765f4a56fc263c7ef8c0465f85538584de136ea |