Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support Role based Setting #71

Open
Daniel-Dietz opened this issue May 21, 2024 · 0 comments
Open

Feature Request: Support Role based Setting #71

Daniel-Dietz opened this issue May 21, 2024 · 0 comments

Comments

@Daniel-Dietz
Copy link

Depending on the Role, a different QR code Text would be very Helpful.

Suggestion add a new “layer” to the Config

PLUGINS_CONFIG = { '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, } # per role options 'dell': { 'qr_box_size': 6, 'custom_text': 'Dell Hotline 12345', 'text_fields': [ 'serial' ] } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant