netbox-qrcode icon indicating copy to clipboard operation
netbox-qrcode copied to clipboard

FR: Add reading of (custom) QR codes

Open jbemmel opened this issue 3 years ago • 4 comments

Some devices come with a QR code printed on them. It would be great if this plug-in could be extended to read such QR codes, and onboard the device into Netbox

As a starting point: See https://github.com/mebjas/html5-qrcode (open source HTML5 QR code reader library)

The idea would be to add HTML/web code along those lines, making it part of the Netbox UI.

Apologies if something like this already exists/is possible - I am not aware of anything like this existing today

jbemmel avatar Oct 24 '22 16:10 jbemmel

Hi @jbemmel ! QRCode,Barcode or any other *code labels on devices contain various information, mainly intended for internal purposes. I do not think that it can be useful for use in NetBox

k01ek avatar Oct 26 '22 04:10 k01ek

I made a start here: https://github.com/jbemmel/netbox-qrprovision/blob/master/develop/qrdecode.js

I agree that it's different from what the current plugin does, but there are customers asking for this kind of functionality. The product code and serial number can help to map the physical device deployment to the virtual topology and the Netbox data base

image

jbemmel avatar Oct 26 '22 04:10 jbemmel

Can you give some examples of these codes? If they contain useful information such as serial number, manufacturer, model it can be used.

k01ek avatar Oct 26 '22 04:10 k01ek

image

The idea would be to make this multi-vendor: Based on the company id, lookup a plugin to handle the conversion into the Netbox data model. In this case (for example) the part number would be part of the device template, so we can look it up and create a device in the rack based on that type

jbemmel avatar Oct 26 '22 12:10 jbemmel