Allow {module} variable in position field #10827

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

Originally created by @mattg66 on GitHub (Feb 28, 2025).

NetBox version

v4.2.4

Feature type

New functionality

Proposed functionality

Allow the {module} variable to be used in the Position field. Currently the text is not parsed and {module} remains as text. The position of the module then has to be manually updated after it has been instantiated into a module within a device.

Image

Use case

When modules have nested modules such as PSUs, it would be useful to have the parent modules position passed down to the child module so that interfaces and ports can be renamed based on their parents position.

Database changes

No response

External dependencies

No response

Originally created by @mattg66 on GitHub (Feb 28, 2025). ### NetBox version v4.2.4 ### Feature type New functionality ### Proposed functionality Allow the {module} variable to be used in the Position field. Currently the text is not parsed and {module} remains as text. The position of the module then has to be manually updated after it has been instantiated into a module within a device. ![Image](https://github.com/user-attachments/assets/59a195cf-d298-4d33-a63a-92b02227aa32) ### Use case When modules have nested modules such as PSUs, it would be useful to have the parent modules position passed down to the child module so that interfaces and ports can be renamed based on their parents position. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:36:22 +01:00
adam closed this issue 2025-12-29 21:36:22 +01:00
Author
Owner

@mattg66 commented on GitHub (Feb 28, 2025):

Realised this is implemented with the multiple {module} syntax, the error message for this is confusing.

@mattg66 commented on GitHub (Feb 28, 2025): Realised this is implemented with the multiple {module} syntax, the error message for this is confusing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10827