Fixes #19918: Resolve {module} placeholders in nested module bay labels #768

Closed
opened 2026-04-05 17:32:55 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 12/5/2025

Fixes: #19918

ModuleBayTemplate.instantiate() now calls resolve_name() and resolve_label() to properly resolve {module} placeholders, making it consistent with other modular components like InterfaceTemplate.

When a module with nested module bays is installed (e.g., a module with SFP bays in position "A"), the nested bay labels now correctly show "A-21" instead of "{module}-21".

This also removes the inconsistent fix from #17436 which only handled name resolution post-instantiation. The proper resolution now happens during instantiation using the existing resolve methods.

*Originally created by @jnovinger on 12/5/2025* ### Fixes: #19918 `ModuleBayTemplate.instantiate()` now calls `resolve_name()` and `resolve_label()` to properly resolve `{module}` placeholders, making it consistent with other modular components like InterfaceTemplate. When a module with nested module bays is installed (e.g., a module with SFP bays in position "A"), the nested bay labels now correctly show "A-21" instead of "{module}-21". This also removes the inconsistent fix from #17436 which only handled name resolution post-instantiation. The proper resolution now happens during instantiation using the existing resolve methods.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#768