Exclude changes of being changeloged or other options? #9747
Unanswered
MalfuncEddie
asked this question in
Q&A
Replies: 1 comment
-
After reading the documentation of developing a plugin I think I just create a new model that links a vm to an Datadump object
Will update this post when it is complete |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
To enrich netbox we use ansible to fill in some custom fields.
The sync scripts works by first checking if something is changed and only is something is different post an update to netbox. This is to not have "no changes" updates in the changelog.
Unfortunately there was a bug in the scripting that resulted in some objects not updating and as a result we were viewing "old" data. To alleviate this I added a custom field "sync date" that shows the last date the "sync" worked.
This has the side effect that every day the "sync date" is different and generates changelog entries for every object the sync script enriches daily.
This us quite unruly. Now I know the changelog and save() method are quite intertwined and there is no easy way to solve this.
I was thinking that this might be better solved with an plugin?
database wise I only need a table "object ID" "sync-date"
Is a plugin the way to go for this problem or is there an option I am not seeing? Any advise is most helpful
PS: just started to learn django so I understand this project a bit more.
Beta Was this translation helpful? Give feedback.
All reactions