Replies: 2 comments
-
Hi. We also have a custom field defined as a Netbox object. We would like the export template to display the name of the object, but so far, we can only figure out how to make the export template display the object's ID. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
There is a method named
First you need to get tenant ID as you already do. You will use it as an argument to deserialize() function to retrive your Tenant object. Python version of this:
This is how you can do it in your Export Template:
Hope it helps. If there is a better way, please let me know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a custom field assigned to the Site model named orgnization. It is using the new object feature from NetBox 3.2, using the Tenant model.
In the prefix list I want to create an Export Template which gets the prefix's site and lists the organisation assigned to it.
How can I get the custom field from a Site in this case?
Let's say my Export template looks like this:
This works, but outputs the tenant ID in the list. Can I make a lookup somehow to get the name? In the REST API the full object is there so I suspect it's possible.
Beta Was this translation helpful? Give feedback.
All reactions