GET CUSTOM FIELD INFO INTO CONFIG TEMPLATE #16634
Unanswered
lucasfontini
asked this question in
Q&A
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can access the device custom fields with device.cf.custom_field_name_1 See: https://netboxlabs.com/docs/netbox/en/stable/customization/custom-fields/ |
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
-
I have a custom field for devices and this field is an object that linked with dcim>devices. I`m struggling to get this data into my config_template
field name connectedto
config template
{{ device.custom_fields["connectedto"] }}
{{ device.custom_fields.connectedto }}
"tags": [],
"custom_fields": {
"ConnectedTo": {
"id": 2056,
"url": "https://netbox-sandbox.master.test.com/api/dcim/devices/2056/",
"display": "MYDEVICE",
"name": "MYDEVICE"
},
"another_field": 17
Beta Was this translation helpful? Give feedback.
All reactions