Netbox QR-Code

In Rechenzentren und gerade bei größeren Installationen empfiehlt es sich die Geräte mit QR Codes (Als Link zum Netbox Eintrag) zu labeln.

Installation

pip3.8 install netbox-qrcode

Aktivierung und Neustart /opt/netbox/netbox/netbox/configuration.py

PLUGINS_CONFIG = {
    "netbox_icinga": {
        "icinga_base_url" : "netbox.domain.de",
        "icinga_username" : "netbox",
        "icinga_password" : "netbox",
    },
    'netbox_qrcode': {
        'with_text': True,
        'text_fields': ['name', 'serial'],
        'font': 'ArialMT',
        'custom_text': 'Property of SomeCompany\ntel.8.800333554-CALL',
        'text_location': 'up',
        'qr_version': 1,
        'qr_error_correction': 0,
        'qr_box_size': 4,
        'qr_border': 4,
        # per object options
        'cable': None,  # disable QR code for Cable object
        'rack': {
            'text_fields': [
                'site',
                'name',
                'facility_id',
                'tenant',
                'cf.cf_name'
            ]
        },
        'device': {
            'qr_box_size': 6,
            'custom_text': None,
        }
    }
systemctl restart netbox
systemctl restart netbox-rq