How to set tenant on managed record #247
Replies: 2 comments 3 replies
-
Currently you can't change anything about managed record, which includes tenancy. Please do not make any critical workflow depend on the IPAM Coupling feature. It is still experimental and will change substantially in the future. That said, nothing prevents you from running a custom script on the NetBox DNS data that adds tenancy for managed records, and NetBox DNS itself doesn't do anything with tenancy at all. I could even imagine copying the For cases like this one I always recommend a custom script in addition with an event rule - every time an IP address is changed, check for the associated address and If you have a little time I could also provide a sample implementation of such a script. |
Beta Was this translation helpful? Give feedback.
-
Hi @jhofmueller, I also added the custom script example and provided some documentation in the While I won't backport the documentation and the example script to the Thanks for the idea, I hope others will find that example and the additional information useful as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
We are planning to move our entire DNS to netbox and use netbox-dns to manage everything. We have the need to allow certain people to alter records for their respective department. In order not to expose the entire DNS to everyone we thought about creating permissions with constraints that only allow people to alter records that "belong" to them/their department.
We also want to use ipam_coupling since it seems quite obvious for us. Now we face the problem that when one creates an ipaddress and assigns it a tenant (or it inherits the tenant from the prefix it belongs to) this information is NOT passed on to the DNS records and (see below) since they are managed records we cannot add the information manually.
Is there something we forgot to configure? Does anyone have an idea how that could be achieved?
As @peteeckel writes here: "Tenancy can be added to all models. The only notable exception are managed records that can't actually be edited manually. I could make them inherit tenancy from their associated address records (in the case of PTR records) or the zone they belong to (in the case of SOA or NS records), but I'm not sure if that makes sense.". This does not seem to be implemented. For us it would be really useful if records could inherit tenancy from the address object they belong to.
Regards,
j.
Beta Was this translation helpful? Give feedback.
All reactions