Config contexts in config template #15407
-
I can't seem to figure this out. It seems possible from what I read but nothing I try works. Suppose I have a config context such as:
This config context is linked to a region. This region also has devices that are linked to it. Now when I go to a device in that region and click on "Config Context" I can clearly see the above JSON value in rendered context and source contexts. I'd like to be able to use this data in the render config, otherwise known as the config template in netbox. It seems no matter what I do I just can't find out how to do it. I even tried using nbshell and doing So yeah...how do I use those contexts inside the config template? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Also, in nbshell,
|
Beta Was this translation helpful? Give feedback.
See #15386, #11937.
Also, in nbshell,
help(Device)
will give you all the methods and properties on the object. If you search for "context" you'll find