Add Config Contexts assignment by regex on name #11624

Closed
opened 2025-12-29 21:47:46 +01:00 by adam · 1 comment
Owner

Originally created by @Etibru on GitHub (Sep 17, 2025).

NetBox version

v4.2.7

Feature type

Data model extension

Proposed functionality

Add an assignment type in the Config Contexts that is based on the device name following a given regex.

Use case

Add Regex name assignment :

  • [a-zA-Z]{4}[0-9]{2}.[a-zA-Z]{4}[0-9]{2}

To match all devices like : toto01.tata01 or titi88.lulu21 ...

Database changes

No response

External dependencies

No response

Originally created by @Etibru on GitHub (Sep 17, 2025). ### NetBox version v4.2.7 ### Feature type Data model extension ### Proposed functionality Add an assignment type in the Config Contexts that is based on the device name following a given regex. ### Use case Add Regex name assignment : - `[a-zA-Z]{4}[0-9]{2}.[a-zA-Z]{4}[0-9]{2}` To match all devices like : toto01.tata01 or titi88.lulu21 ... ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:47:46 +01:00
adam closed this issue 2025-12-29 21:47:46 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 18, 2025):

Sorry, but the proposed functionality is not technically feasible, due to the manner in which applicable config contexts are selected.

@jeremystretch commented on GitHub (Sep 18, 2025): Sorry, but the proposed functionality is not technically feasible, due to the manner in which applicable config contexts are selected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11624