{module} variable is not replaced when installing a module that has submodules (modules bays) in a device #10213

Closed
opened 2025-12-29 21:28:28 +01:00 by adam · 0 comments
Owner

Originally created by @marcusyuri on GitHub (Sep 10, 2024).

Originally assigned to: @bctiemann, @renatoalmeidaoliveira on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.1.0

Python Version

3.10

Steps to Reproduce

  1. Create a new device and add a module bay (ex: module bay name = Slot 0, position = 0)

image

  1. Create a new module type and add a component 'module bayf', with name containing the expression {module} (ex: module bay name = Subslot {module}/0, position=0

image

  1. Install this module on the device module bay.
    image

Expected Behavior

The submodule was created with the word {module} replaced by the position value. In the example, the expected name was "Subslot 0/0"

Observed Behavior

The {module} word is not replaced, and the module bay name is wrong named as "Subslot {module}/0" instead of "Subslot 0/0"

Originally created by @marcusyuri on GitHub (Sep 10, 2024). Originally assigned to: @bctiemann, @renatoalmeidaoliveira on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.1.0 ### Python Version 3.10 ### Steps to Reproduce 1. Create a new device and add a module bay (ex: module bay name = Slot 0, position = 0) 2. ![image](https://github.com/user-attachments/assets/39b90f49-ae6d-4c9f-8f84-377649557120) 3. Create a new module type and add a component 'module bayf', with name containing the expression {module} (ex: module bay name = Subslot {module}/0, position=0 4. ![image](https://github.com/user-attachments/assets/f01a232f-7b89-4cfb-a183-ca589df6c6d5) 5. Install this module on the device module bay. ![image](https://github.com/user-attachments/assets/0cfe7520-47a2-4a3f-b465-6a61ab63d239) ### Expected Behavior The submodule was created with the word {module} replaced by the position value. In the example, the expected name was "Subslot 0/0" ### Observed Behavior The {module} word is not replaced, and the module bay name is wrong named as "Subslot {module}/0" instead of "Subslot 0/0"
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:28:28 +01:00
adam closed this issue 2025-12-29 21:28:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10213