Skip to content

Clone Custom Fields on Component Template Instantiation #20685

@anshulkamath

Description

@anshulkamath

NetBox version

v4.4.4

Feature type

Change to existing functionality

Proposed functionality

It seems that none of the component templates have a "custom fields" section. As someone who performs large scale ingests of data centers, I would like the ability to define "templated custom fields" that can be cloned to the instantiated object.

Use case

We illustrate the use case with a practical example: suppose that I am instantiating a leaf-spine topology in Netbox. I've created a "interface roles" custom field which describes how each templated interface is meant to behave (i.e., this is an uplink/downlink/BGP speaker, etc.). When I'm instantiating this large fabric, I'd like the child devices to initialize with these roles.

This extends to any "enrichment" of a template with some context of the component.

Database changes

This will require that the component template models add field for custom fields, most likely. This will correspond to "all cloneable custom fields for the component".

External dependencies

Nope

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: needs triageThis issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions