-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to provision a config-template with local data source via the REST API #13506
Comments
Check this link for the discussion on Slack: |
Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. |
This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened. |
I have added more details to reproduce the problem, step by step, and I hope this will be clear enough. Could you please reopen this issue ? I also have a bugfix ready. |
This occurs because the @desnoe I'll assign this to you as you mention having a fix prepared. Thanks! |
Thanks @jeremystretch, I just opened the PR. |
My mistake, I must have misread the code. |
NetBox version
v3.6.1
Python version
3.11.4
Steps to Reproduce
Please replace with values relevant to your NetBox instance.
/etc/netbox/templates
directory on the NetBox instance and create a trivial Jinja2 template to the NetBox instance in it:Make sure it is correctly created and note down its id:
Please replace with the id of the created object.
basic.j2
Jinja2 template in this local data source using the REST API:Make sure it is correctly created and note down its id:
Please replace with the id of the created object.
Now, the config template can be used on a device or device-role.
Expected Behavior
At step 6, I expect
data_file
to be correctly populated in the JSON data of the POST response. I should get:Observed Behavior
At step 6, the JSON data I'm really receiving in the POST response is:
The text was updated successfully, but these errors were encountered: