Unable to determine diffs #230
Unanswered
IdRatherStand
asked this question in
Q&A
Replies: 1 comment
-
Can you share your full code? Just with this its hard to tell where it might go wrong. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey - I'm looking to rewrite a large portion of our sync scripts using diffsync, however I'm struggling to get an initial pass working. We are looking to perform syncronisation of prefixes between nautobot -> panorama.
I've created my prefixes class:
Once I load my models, I can inspect them using .dict() and can see we return a dict, with key "prefix", under this we then have our individual prefixes with attributes, as seen below:
'10.X.Y.Z/24':{'classification': 'A_Network', 'prefix': '10.X.Y.Z/24', 'site': 'A_Site', 'status': 'active'}
From here, whichever way I then run nautobot.diff_to(panorama), diffsync just immediately reports there are 0 changes, 0 skips etc. Am I fundamentally misunderstanding how I need to write / use the model / adapters?
It looks as though it should be working to me, I can clearly see there are differences in the datasets.
Beta Was this translation helpful? Give feedback.
All reactions