Can't import cables #2753

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

Originally created by @StevenRB on GitHub (Jul 22, 2019).

Environment

  • Python version:
  • NetBox version:

Steps to Reproduce

  1. Select import cables
  2. input data. All interfaces exist on the mentioned devices. example data below:
side_a_type,side_b_type,side_a_device,side_b_device,side_a_name,side_b_name
Interface,Interface,GJCORE01,GJSW08,GigabitEthernet2/18,GigabitEthernet0/1
Interface,Interface,GJCORE01,GJSW09,GigabitEthernet2/19,GigabitEthernet0/1
Interface,Interface,GJCORE01,GJSW06,GigabitEthernet2/23,GigabitEthernet0/2
Interface,Interface,GJCORE01,GJSW24,GigabitEthernet3/4,GigabitEthernet0/2
Interface,Interface,GJCORE01,GJSW07,GigabitEthernet2/17,GigabitEthernet0/1
  1. Click submit

Expected Behavior

Cables created linking the stated interfaces/devices

Observed Behavior

Netbox returned an error:

-- | --
https://netbox.xxxx.com/dcim/cables/import/
2.1.4
RelatedObjectDoesNotExist
Cable has no termination_a_type.
/home/service.net.scripts@xxxx.com/.local/lib/python3.5/site-packages/django/db/models/fields/related_descriptors.py  in __get__, line 188
/usr/bin/python3
3.5.3
['/opt/netbox/netbox',  '/opt/netbox-2.6.1/netbox',  '/usr/local/bin',  '/usr/lib/python35.zip',  '/usr/lib/python3.5',  '/usr/lib/python3.5/plat-x86_64-linux-gnu',  '/usr/lib/python3.5/lib-dynload',  '/home/service.net.scripts@corpit.startek.com/.local/lib/python3.5/site-packages',  '/usr/local/lib/python3.5/dist-packages',  '/usr/lib/python3/dist-packages']
Mon, 22 Jul 2019 17:55:36 +0000

This happened under 2.5.1 as well but, taking the advice given in #2801 I upgraded. The issue has persisted

Originally created by @StevenRB on GitHub (Jul 22, 2019). <!-- NOTE: 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/forum/#!forum/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. --> ### Environment * Python version: <!-- Example: 3.5.3 --> * NetBox version: <!-- Example: 2.6.1 --> <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). 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 wrapper like pynetbox. --> ### Steps to Reproduce 1. Select import cables 2. input data. All interfaces exist on the mentioned devices. example data below: ``` side_a_type,side_b_type,side_a_device,side_b_device,side_a_name,side_b_name Interface,Interface,GJCORE01,GJSW08,GigabitEthernet2/18,GigabitEthernet0/1 Interface,Interface,GJCORE01,GJSW09,GigabitEthernet2/19,GigabitEthernet0/1 Interface,Interface,GJCORE01,GJSW06,GigabitEthernet2/23,GigabitEthernet0/2 Interface,Interface,GJCORE01,GJSW24,GigabitEthernet3/4,GigabitEthernet0/2 Interface,Interface,GJCORE01,GJSW07,GigabitEthernet2/17,GigabitEthernet0/1 ``` 3. Click submit <!-- What did you expect to happen? --> ### Expected Behavior Cables created linking the stated interfaces/devices <!-- What happened instead? --> ### Observed Behavior Netbox returned an error: ```Request Method: | POST -- | -- https://netbox.xxxx.com/dcim/cables/import/ 2.1.4 RelatedObjectDoesNotExist Cable has no termination_a_type. /home/service.net.scripts@xxxx.com/.local/lib/python3.5/site-packages/django/db/models/fields/related_descriptors.py in __get__, line 188 /usr/bin/python3 3.5.3 ['/opt/netbox/netbox', '/opt/netbox-2.6.1/netbox', '/usr/local/bin', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/service.net.scripts@corpit.startek.com/.local/lib/python3.5/site-packages', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages'] Mon, 22 Jul 2019 17:55:36 +0000 ``` This happened under 2.5.1 as well but, taking the advice given in #2801 I upgraded. The issue has persisted
adam closed this issue 2025-12-29 18:21:46 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 23, 2019):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Jul 23, 2019): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/digitalocean/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/digitalocean/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2753