How to import config templates? #13575
-
For a specific device role we have a base config template with macros ( {% import 'onboarding_macros.j2' as macro %}
hostname {{ device.name }}
!
logging buffered 40960
---snip--- How can we achieve this? Is this only possible when using a local data source as file? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
Thanks for you reply. |
Beta Was this translation helpful? Give feedback.
-
Yes. |
Beta Was this translation helpful? Give feedback.
-
OK, so how is this suppose to work? I've mounted a ConfigMap with the template inside Note: I later found out that local is referring to the netbox-worker pod and not netbox In Netbox I created a local data source to see if netbox can access the local file:
After sync I could see the data file
it throws an error:
|
Beta Was this translation helpful? Give feedback.
-
Got it..thanks |
Beta Was this translation helpful? Give feedback.
Yes.