https://github.com/natecohen/netbox-binary-prefix
NetBox plugin to display disk and memory units with IEC binary prefixes
https://github.com/natecohen/netbox-binary-prefix
netbox-plugin
Last synced: 20 days ago
JSON representation
NetBox plugin to display disk and memory units with IEC binary prefixes
- Host: GitHub
- URL: https://github.com/natecohen/netbox-binary-prefix
- Owner: natecohen
- License: mit
- Created: 2025-10-27T15:45:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-10-27T16:56:23.000Z (3 months ago)
- Last Synced: 2025-10-27T18:35:06.389Z (3 months ago)
- Topics: netbox-plugin
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NetBox Binary Prefix
A simple NetBox plugin that patches the display of disk and memory sizes to use proper IEC binary prefixes (KiB, MiB, GiB, etc.) instead of the default decimal ones (KB, MB, GB).
## Compatibility
| NetBox Version | Plugin Version |
|----------------|----------------|
| 4.2 | 1.0.0 |
| 4.3 | 1.0.0 |
| 4.4 | 1.0.0 |
## Installation
Install the plugin from PyPI:
```bash
pip install netbox-binary-prefix
```
or by adding to your `local_requirements.txt` or `plugin_requirements.txt` (netbox-docker):
```bash
netbox-binary-prefix
```
Enable the plugin in `/opt/netbox/netbox/netbox/configuration.py`,
or if you use netbox-docker, your `/configuration/plugins.py` file :
```python
PLUGINS = [
"netbox_binary_prefix",
]
```
## Usage
Once installed and enabled, the plugin will automatically patch the `_humanize_megabytes` helper function to display sizes with binary units.
This functionality is dependent on the `DISK_BASE_UNIT` and `RAM_BASE_UNIT` configuration variables being set to `1024` as [documented here](https://netboxlabs.com/docs/netbox/configuration/miscellaneous/#disk_base_unit).