networktocode / diffsync

A utility library for comparing and synchronizing different datasets.
https://diffsync.readthedocs.io/
Other
155 stars 26 forks source link

Add Depends On Attribute #268

Open jdrew82 opened 9 months ago

jdrew82 commented 9 months ago

Environment

Proposed Functionality

Add the ability to define dependencies on DiffSyncModels. An example of this would be an Interface depending on a Device, a Device depending upon a Location, etc. This is typically done through the parent/child relationship but there are situations where you don't necessarily want to rely on the parent/child relationship to determine if a model should be processed.

Use Case

There are situations where a DiffSyncModel might depend on various other models that don't fit well into the parent/child relationship paradigm. Being able to define dependency relationships between models in a better way could be very useful.