nautobot-app-bgp-models icon indicating copy to clipboard operation
nautobot-app-bgp-models copied to clipboard

Add tenant attribute to AutonomousSystem model

Open byrn-baker opened this issue 9 months ago • 4 comments

Closes: Add tenant attribute to AutonomousSystem model #191

What's Changed

Add a ForeignKey field for Tenant to the AutonomousSystem model, update the forms.py and autonomoussystemrange_retrieve.html to reference the Tenant field for display and input.

image image image

To Do

  • [ x] Explanation of Change(s)
  • [ ] Added change log fragment(s) (for more information see the documentation)
  • [ x] Attached Screenshots, Payload Example
  • [ ] Unit, Integration Tests
  • [ ] Documentation Updates (when adding/changing features)
  • [ ] Outline Remaining Work, Constraints from Design

byrn-baker avatar Feb 26 '25 19:02 byrn-baker

Maybe also add an appropriate TenantColumn to the AutonomousSystem Table class?

glennmatthews avatar Feb 27 '25 14:02 glennmatthews

I will take a look at the above and make those updates.

byrn-baker avatar Feb 28 '25 17:02 byrn-baker

Updated the code to this PR. Let me know if this is what you were requesting. One minor update to the models under AutonomousSytem for the tenant field was to include a related_name.

byrn-baker avatar Feb 28 '25 22:02 byrn-baker

Please update unit tests too.

mzbroch avatar Mar 04 '25 10:03 mzbroch