Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cable termination update via API results in empty trace and "connection" column on device interfaces page #14200

Closed
PackeTsar opened this issue Nov 6, 2023 · 2 comments
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application

Comments

@PackeTsar
Copy link

NetBox version

v3.6.4

Python version

3.10

Steps to Reproduce

  1. Create two devices and some interfaces on each
  2. Create a cable between two of the interfaces
  3. Use the below pynetbox script to update a termination of one side of the cable to an interface on a different device
orig_switch = nb.dcim.devices.get(name='OLD_SWITCH')
new_switch = nb.dcim.devices.get(name='NEW_SWITCH')
cable_label = 'C001916'
port_name = 'Ethernet1/5'

new_intf = list(nb.dcim.interfaces.filter(device_id=new_switch.id,
                                          name=port_name
                                          ))[0]

cable = nb.dcim.cables.get(label=cable_label)

if cable.a_terminations[0].device == orig_switch:
    print('Moving A term')
    cable.a_terminations = [{'object_type': 'dcim.interface', 'object_id': new_intf.id}]
else:
    print('Moving B term')
    cable.b_terminations = [{'object_type': 'dcim.interface', 'object_id': new_intf.id}]

cable.save()

Expected Behavior

Cable termination should be updated. Interfaces page on the new device should show the remote device and interface name in the "Connection" column.

Observed Behavior

Cable gets updated and cable label shows up on new device interfaces page. But "Connection" column is empty and the cable's trace page is empty.

@PackeTsar PackeTsar added the type: bug A confirmed report of unexpected behavior in the application label Nov 6, 2023
@jeremystretch
Copy link
Member

We are unable to accept bug reports that involve third party tools. Please provide the raw REST API request someone can use to reproduce the reported behavior.

@jeremystretch jeremystretch added the status: revisions needed This issue requires additional information to be actionable label Nov 7, 2023
@jeremystretch
Copy link
Member

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@jeremystretch jeremystretch closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants