How to set object relations via Netbox Shell? #11684
-
Hello everyone, I am trying to programmatically fill my NetBox instance with data via NetBox shell. I am struggling with setting object relations, for example: Creating a tenant group object, and afterwards creating a new tenant object and setting it's tenant group to the mentioned tenant group. Maybe you can search all instances of "TenantGroup" for the needed object, but I don't know how to assign it's reference to the tenant object. Thanks for your help! -Igel |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
However I do not recommend using nbshell to import data as change logging does not work by default in it. |
Beta Was this translation helpful? Give feedback.
However I do not recommend using nbshell to import data as change logging does not work by default in it.