Ability to apply parent platform config context values to device in children platforms #11753

Closed
opened 2025-12-29 21:49:27 +01:00 by adam · 4 comments
Owner

Originally created by @Alex-Ignatov on GitHub (Oct 21, 2025).

Originally assigned to: @pheus on GitHub.

NetBox version

v4.4.2

Feature type

Change to existing functionality

Proposed functionality

Config contexts can use Platforms as conditions to apply given context to a particular device. With introduction of parent field for the platforms I believe it would be beneficial for Config Contexts to apply data to device based on parent as well and not just a child.

Currently, only if device is assigned to exactly that specific platform config contexts would be applied, but we have following platform hierarchy:

  • SROS:
    • SROS-21
    • SROS-24

Config contexts defined for parent SROS will be rendered/applied for devices that have platforms SROS-21 and SROS-24.

Use case

This will remove duplication of values between children platforms, that could have been defined at parent level.

Database changes

N/A

External dependencies

N/A

Originally created by @Alex-Ignatov on GitHub (Oct 21, 2025). Originally assigned to: @pheus on GitHub. ### NetBox version v4.4.2 ### Feature type Change to existing functionality ### Proposed functionality Config contexts can use `Platforms` as conditions to apply given context to a particular device. With introduction of parent field for the platforms I believe it would be beneficial for Config Contexts to apply data to device based on parent as well and not just a child. Currently, only if device is assigned to exactly that specific platform config contexts would be applied, but we have following platform hierarchy: - SROS: - SROS-21 - SROS-24 Config contexts defined for parent SROS will be rendered/applied for devices that have platforms SROS-21 and SROS-24. ### Use case This will remove duplication of values between children platforms, that could have been defined at parent level. ### Database changes N/A ### External dependencies N/A
adam added the status: acceptedtype: featurenetboxbreaking changecomplexity: low labels 2025-12-29 21:49:27 +01:00
adam closed this issue 2025-12-29 21:49:28 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 24, 2025):

We've flagged this as a breaking change because it will cause a change to the content of rendered config contexts in the case where a config context is already assigned to a parent platform.

@jeremystretch commented on GitHub (Oct 24, 2025): We've flagged this as a breaking change because it will cause a change to the content of rendered config contexts in the case where a config context is already assigned to a parent platform.
Author
Owner

@Alex-Ignatov commented on GitHub (Oct 29, 2025):

Do I understand correctly that this is not possible to implement?

@Alex-Ignatov commented on GitHub (Oct 29, 2025): Do I understand correctly that this is not possible to implement?
Author
Owner

@pheus commented on GitHub (Nov 26, 2025):

Hi! I’d be interested in working on this enhancement. I realize that feature requests are typically only open for external contribution when they have the needs owner label, so I wanted to check first rather than assuming.

Would it be okay for me to take this on, and if so, could you please assign me to the issue?

Thanks a lot for your time!

@pheus commented on GitHub (Nov 26, 2025): Hi! I’d be interested in working on this enhancement. I realize that feature requests are typically only open for external contribution when they have the `needs owner` label, so I wanted to check first rather than assuming. Would it be okay for me to take this on, and if so, could you please assign me to the issue? Thanks a lot for your time!
Author
Owner

@jeremystretch commented on GitHub (Nov 26, 2025):

Sure thing @pheus!

@jeremystretch commented on GitHub (Nov 26, 2025): Sure thing @pheus!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11753