Change log not working for interfaces after Netbox upgrade from 3.3.4 to 3.4.10 #13302
Replies: 3 comments 1 reply
-
Hello ,Can anyone provide any suggestion ? |
Beta Was this translation helpful? Give feedback.
-
(Aside: please edit your post and add three backticks ( There is no file called "changelogging.py" in Netbox. There is in v3.3.4 the statement Therefore, it's not clear what you've done. It sounds rather like you're talking about modifying Netbox code itself, in which case, there's no support - you're on your own (you've created your own private fork). If you want to extend Netbox, use the official plugins API.
Where have you included this code? Is this in a custom script or plugin that you're writing? Or somewhere else? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply . Currently I am using inspector for interfaces Campus Datacenter Autosync . If I change any values related to interface manually then it will reflect in the change log to show which object value has been changed but if I do the same procedure using an inspector Campus Datacenter Autosync and change log is not working for this inspector . Python version Expected Behaviour Observed Behaviour Please suggest ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I had enable change log for all the interfaces and it was working as expected in 3.3.4 but in 3.4.10 there are changes in changelogging.py file mentioned below:
Do i need to enable or include ,ChangeLoggedModel in Interface class in dcim/models/device_components.py like below:
class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEndpoint):
I have included code for snapshot and use change_logging:
if hasattr(netbox_prefix, "snapshot"):
netbox_prefix.snapshot()
Please suggest if i am missing anything in the process and let me know if anything required to get more clarity on usecase
Beta Was this translation helpful? Give feedback.
All reactions