Jinja2 Scripting
#17442
Replies: 1 comment
-
Neither of those scripts is complete, as you've not doing
(which I presume is what you're trying to do - create new Device objects?) nor are you providing the mandatory parameters to Device (i.e. role, device_type, site). Your imports are also wrong, e.g.
(at least in Netbox 4.0.11, it is So please start with a complete, runnable script which reproduces your problem, and then describe in what way it "does not work". I can't see why assigning Device.config_template from a ConfigTemplate object instance won't work: the attribute comes from |
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.
-
I am trying to make a Script, that takes a specific Config template and add it to a device when i try to create it.
like this:
but for config_template
This Does not work
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions