Cable import for rear ports failing #4312

Closed
opened 2025-12-29 18:34:40 +01:00 by adam · 6 comments
Owner

Originally created by @elixdreamer on GitHub (Nov 30, 2020).

Environment

  • Python version:
  • NetBox version: 84cbad8821ca (v2.9.9)

Steps to Reproduce

  1. adding cables in bulk for Rear Port is failing: used the following template:
side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name
P8_409-432,Rear port,5,G10_409-423,Rear port,5

Expected Behavior

Cable to be create

Observed Behavior

Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes.
Row 1 side_a_type: Object not found.
Row 1 side_b_type: Object not found.
Row 1 __all__: Termination A type has not been specified
Originally created by @elixdreamer on GitHub (Nov 30, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/g/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: * NetBox version: 84cbad8821ca (v2.9.9) <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. adding cables in bulk for Rear Port is failing: used the following template: ``` side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name P8_409-432,Rear port,5,G10_409-423,Rear port,5 ``` <!-- What did you expect to happen? --> ### Expected Behavior Cable to be create <!-- What happened instead? --> ### Observed Behavior ``` Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes. Row 1 side_a_type: Object not found. Row 1 side_b_type: Object not found. Row 1 __all__: Termination A type has not been specified ```
adam added the status: revisions needed label 2025-12-29 18:34:40 +01:00
adam closed this issue 2025-12-29 18:34:41 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 30, 2020):

Rear port is not a valid type: Use dcim.rearport.

@jeremystretch commented on GitHub (Nov 30, 2020): `Rear port` is not a valid type: Use `dcim.rearport`.
Author
Owner

@elixdreamer commented on GitHub (Nov 30, 2020):

Could we add a help comment to 'side_a_type' that specifies the available options?
Probably other questions will be raised about this to.

@elixdreamer commented on GitHub (Nov 30, 2020): Could we add a help comment to 'side_a_type' that specifies the available options? Probably other questions will be raised about this to.
Author
Owner

@jeremystretch commented on GitHub (Nov 30, 2020):

@elixdreamer please feel free to open a feature request for it.

@jeremystretch commented on GitHub (Nov 30, 2020): @elixdreamer please feel free to open a feature request for it.
Author
Owner

@elixdreamer commented on GitHub (Nov 30, 2020):

Still encountering the issue with following import:

side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name,status,type
P8_409-432,dcim.rearport,5,G10_409-432,dcim.rearport,5,Connected,CAT6

Reply is still the same

@elixdreamer commented on GitHub (Nov 30, 2020): Still encountering the issue with following import: ``` side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name,status,type P8_409-432,dcim.rearport,5,G10_409-432,dcim.rearport,5,Connected,CAT6 ``` Reply is still the same
Author
Owner

@jeremystretch commented on GitHub (Nov 30, 2020):

@elixdreamer please update your original post with the entire set of steps that someone else can follow to reproduce the issue, beginning with the creation of all involved objects.

@jeremystretch commented on GitHub (Nov 30, 2020): @elixdreamer please update your original post with the _entire_ set of steps that someone else can follow to reproduce the issue, beginning with the creation of all involved objects.
Author
Owner

@elixdreamer commented on GitHub (Nov 30, 2020):

Ok, got it solved. it isn't dcim.rearport but just rearport.
Will open feature request, @jeremystretch

@elixdreamer commented on GitHub (Nov 30, 2020): Ok, got it solved. it isn't `dcim.rearport` but just `rearport`. Will open feature request, @jeremystretch
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4312