netbox_device_interface_template A- llow bulk creation #7047

Closed
opened 2025-12-29 19:48:18 +01:00 by adam · 3 comments
Owner

Originally created by @jsalatiel on GitHub (Sep 29, 2022).

NetBox version

v3.2.5

Python version

3.8

Steps to Reproduce

- name: Adding ports
  netbox.netbox.netbox_device_interface_template:
    data:
      device_type: some_device
      name: '[ge,xe]-0/0/[0-9]' 
      type: 1000BASE-T

Expected Behavior

Just like the behaviour on the webui, the following interfaces should have been created:
image

Observed Behavior

One single interface named [ge,xe]-0/0/[0-9] is created

Originally created by @jsalatiel on GitHub (Sep 29, 2022). ### NetBox version v3.2.5 ### Python version 3.8 ### Steps to Reproduce ``` - name: Adding ports netbox.netbox.netbox_device_interface_template: data: device_type: some_device name: '[ge,xe]-0/0/[0-9]' type: 1000BASE-T ``` ### Expected Behavior Just like the behaviour on the webui, the following interfaces should have been created: ![image](https://user-images.githubusercontent.com/5522389/193078696-f6568962-72d7-4251-b113-6185fbe52207.png) ### Observed Behavior One single interface named [ge,xe]-0/0/[0-9] is created
adam added the type: bugstatus: revisions needed labels 2025-12-29 19:48:18 +01:00
adam closed this issue 2025-12-29 19:48:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 29, 2022):

Thank you for submitting this issue. Before any further work can be done, please upgrade to the most recent stable release of NetBox (currently v3.3.4) as this issue may have already been addressed. Please then update your issue to indicate whether further action is needed.

@jeremystretch commented on GitHub (Sep 29, 2022): Thank you for submitting this issue. Before any further work can be done, please upgrade to the most recent stable release of NetBox (currently v3.3.4) as this issue may have already been addressed. Please then update your issue to indicate whether further action is needed.
Author
Owner

@jeremystretch commented on GitHub (Sep 29, 2022):

Also, please revise your issue above to describe exactly what you are doing. Note that name expansion is supported only when creating interfaces via the web UI.

@jeremystretch commented on GitHub (Sep 29, 2022): Also, please revise your issue above to describe _exactly_ what you are doing. Note that name expansion is supported only when creating interfaces via the web UI.
Author
Owner

@jeremystretch commented on GitHub (Oct 10, 2022):

Closing as there's been no further reply.

@jeremystretch commented on GitHub (Oct 10, 2022): Closing as there's been no further reply.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7047