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

Add IPAddress.assigned_objects Helper Property #4108

Open
bryanculver opened this issue Jul 11, 2023 · 0 comments
Open

Add IPAddress.assigned_objects Helper Property #4108

bryanculver opened this issue Jul 11, 2023 · 0 comments
Labels
type: feature Introduction of new or enhanced functionality to the application

Comments

@bryanculver
Copy link
Member

bryanculver commented Jul 11, 2023

IPAddress had assigned_object but because of the M2M change, that is not applicable.

Currently you must access the assigned interfaces via instance.interfaces and instance.vminterfaces.

Proposal is to introduce assigned_objects which would return something to the effect of [*self.interfaces, *self.vminterfaces].

Context: https://github.com/nautobot/nautobot/pull/3399/files#diff-15c6afc90d7ab9ffc408a2b7c6857caf4c3ebb9bc1213aa5340cbc301f85e7c0L597)

Also worth considering #1178

@bryanculver bryanculver changed the title IPAddress assigned_object to assigned_objects (see: https://github.com/nautobot/nautobot/pull/3399/files#diff-15c6afc90d7ab9ffc408a2b7c6857caf4c3ebb9bc1213aa5340cbc301f85e7c0L597): Probably a convenience method to just return [*self.interfaces, *self.vminterfaces] Add IPAddress.assign_objects Helper Property Jul 12, 2023
@bryanculver bryanculver changed the title Add IPAddress.assign_objects Helper Property Add IPAddress.assigned_objects Helper Property Jul 12, 2023
@bryanculver bryanculver added the type: feature Introduction of new or enhanced functionality to the application label Jul 12, 2023
@bryanculver bryanculver added this to the v2.x.0 milestone Jul 12, 2023
@lampwins lampwins removed this from the v2.x.0 milestone Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Introduction of new or enhanced functionality to the application
Projects
No open projects
Status: To Groom
Development

No branches or pull requests

2 participants