Using Custom Fields in Computed Fields #1284
smk4664
started this conversation in
Show and tell
Replies: 1 comment
-
Thank you! |
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 thought I would share something I found very interesting and hopefully useful for others. In Nautobot, all my devices are configured with short names instead of the FQDN. Each of my sites has its own domain, and I wanted the devices to inherit the domain name from the site and use it to form the FQDN.
I created a custom field that applies to dcim.site.
I then use this Custom Field in the Computed Field rule on the device.
{{ obj.name }}.{{ obj.site.cf.domain }}
Here is an example of it in use.
Beta Was this translation helpful? Give feedback.
All reactions