Plugin configuration not applying #271
Replies: 4 comments 1 reply
-
Hi Ryan,
When you write "plugin is installed correctly and runs" you mean it shows up in the left handed menu and you are able to render a topology, right? So why exactly do you think that the plugin configuration doesn't work? Please write down the exact steps you do and describe what you see and what you would expect. |
Beta Was this translation helpful? Give feedback.
-
Hi, We see the topology plugin running in Netbox, and can use the plugin to render topology, we also have custom images working. We configured the following in the configuration.py for the topology plugin, as referenced in my original post. We already have a SAML plugin that takes the configuration from the configuration.py but I'm not sure why the topology plugin isn't.
But when I go to Filter in the plugin menu, save coordinates isn't enabled, and I'm unable to tick it which would be fine if the always_save_coordinates seemed to be working.] Full steps
Hopefully enough detail, thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi Ryan, I updated your original post in order to quote the whole code. It looked a bit garbled before. In addition, you should make sure that all lines are correctly indented. That helps a lot when searching for logical errors. You've put the entry for 'netbox_topology_views' into the 'CUSTOM_ATTR_BACKEND' dictionary. So I'd say, two of the braces at the end should go before the 'netbox_topology_views' section, not after. This might work:
|
Beta Was this translation helpful? Give feedback.
-
Moving the breaces from the end of the netbox_topology_views to the end of the 'CUSTOM_ATTR_BACKEND' dictionary, was the fix thanks. I had thought it was going to be something like that, my knowledge of python is growing. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I've been trying to apply the plugin configuration to a docker version of netbox (3.4.2) using plugin version 3.3.0. The plugin is installed correctly and runs, but I can't get the plugin configuration to work.
I've got plugin configuration for the SAML plugin which works fine, but the configuration for topology views doesn't seem to be working. Not sure if there is something missing, but in my configuration.py i have.
Hopefully can see where I'm going wrong :)
Beta Was this translation helpful? Give feedback.
All reactions