nautobot-app-ssot icon indicating copy to clipboard operation
nautobot-app-ssot copied to clipboard

Create Reusable Nautobot Models

Open jdrew82 opened this issue 2 years ago • 5 comments

Environment

  • Nautobot version: 1.4.5
  • nautobot-ssot version: 1.2.0

Proposed Functionality

It would be useful to have defined models for the Nautobot SoR that can be reused across SSoT plugins.

Use Case

During the course of building an SSoT plugin there is a lot of replicated code on the Nautobot side as the models and CRUD operations don't change. It'd be helpful if we had defined models that cover all attributes of importable Nautobot models and the appropriate CRUD methods for each and allow the plugin developer to define the objects to import and attributes to match on.

jdrew82 avatar Oct 05 '22 14:10 jdrew82

@itdependsnetworks is working on something that should address this

Kircheneer avatar Nov 11 '22 13:11 Kircheneer

@itdependsnetworks is working on something that should address this

I think that the approach from @itdependsnetworks helps on that line, but what this FR is about is adding support for "all" Nautobot models, with their diffsync version (plus the adapters).

chadell avatar Nov 14 '22 14:11 chadell

I agree, that being said, I think we should hold off looking to make any more progress until this initial feature set is added. I think while technically feasible, I am not sure the complication will make it "worth it", and would like to pause after this section.

itdependsnetworks avatar Nov 14 '22 15:11 itdependsnetworks

No tests or anything and in draft, but some rough idea where this is going #69

itdependsnetworks avatar Nov 23 '22 04:11 itdependsnetworks

#153 too

Kircheneer avatar Aug 04 '23 13:08 Kircheneer