Skip to content

Conversation

@DanSheps
Copy link
Member

Fixes: #18433 - Add missing is_primary property on MACAddress model

  • Added missing is_primary property method on MACAddress model

@DanSheps DanSheps requested a review from bctiemann January 21, 2025 04:23
@DanSheps DanSheps self-assigned this Jan 21, 2025
@bctiemann
Copy link
Contributor

I had is_primary on the model as a concrete field initially, then changed it to primary_for_interface field on the related model during development/review. I guess the template still had the vestigial mention. I'm not sure why we didn't put it back in as a property, but I seem to remember wanting to but there was some argument against it?

Approved for the moment, but there might be some discussion to be had.

bctiemann
bctiemann previously approved these changes Jan 21, 2025
@DanSheps
Copy link
Member Author

I had is_primary on the model as a concrete field initially, then changed it to primary_for_interface field on the related model during development/review. I guess the template still had the vestigial mention. I'm not sure why we didn't put it back in as a property, but I seem to remember wanting to but there was some argument against it?

I think is_primary as a "Boolean" makes sense. If it was is_primary as the reverse relation it would be kind of weird IMO.

bctiemann
bctiemann previously approved these changes Jan 24, 2025
@bctiemann
Copy link
Contributor

@DanSheps please fix merge conflict

@bctiemann bctiemann merged commit cf64f3c into main Jan 27, 2025
6 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 27, 2025
@jnovinger jnovinger deleted the 18433-fix-macaddress-primary-for-interface branch August 20, 2025 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MAC address not shown as "primary for interface" in MAC address detail view

4 participants