Skip to content

Update uri_to_obj_class_map to support additional supported termination endpoints #675

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bcollet
Copy link

@bcollet bcollet commented Apr 11, 2025

Closes: #674

The PR proposes to add the following types to uri_to_obj_class_map to return the appropriate object type when tracing a path:

  • CircuitTerminations
  • ConsolePorts
  • ConsoleServerPorts
  • PowerOutlets
  • PowerPorts

Copy link
Collaborator

@arthanson arthanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcollet sorry for the late response on this, getting caught up after NetBox 4.3 work. This looks good and thank you for the work. I think it also needs PowerFeed (looking at https://github.com/netbox-community/netbox/blob/main/netbox/dcim/constants.py#L99) Can you please check and add that one is as well.

@bcollet
Copy link
Author

bcollet commented Apr 21, 2025

@arthanson no worries! I added support for PowerFeeds as well.

@bcollet bcollet requested a review from arthanson April 21, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update uri_to_obj_class_map to support additional supported termination endpoints in trace() method
2 participants