Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply multiple instances of a custom field to an object #5720

Closed
ggiesen opened this issue Jan 29, 2021 · 1 comment
Closed

Apply multiple instances of a custom field to an object #5720

ggiesen opened this issue Jan 29, 2021 · 1 comment
Labels
status: duplicate This issue has already been raised

Comments

@ggiesen
Copy link

ggiesen commented Jan 29, 2021

Environment

  • Python version: 3.6.8
  • NetBox version: 2.10.2

Proposed Functionality

The current implementation of custom fields only allows for a single value. I propose that we allow to add multiple instances of a custom field much the same tags can be applied to almost anything

Use Case

To add static routes on a device, I currently use a custom field attached to an interface IP using the following format:

<prefix>/<prefixlen> via gateway[,<prefix>/<prefixlen> via gateway]

Example:

192.0.2.0/24 via 203.0.113.1,198.51.100.0/24 via 203.0.113.1

This is currently cumbersome for a few reasons:

  1. The field length is limited
  2. It can be hard to create, read, and edit for large numbers of values
  3. It's hard to validate

Instead, it would be cleaner to be able to add multiple instances of a custom field such that each value could be added, edited, removed, and validated individually.

ie.

  1. 192.0.2.0/24 via 203.0.113.1
  2. 198.51.100.0/24 via 203.0.113.1

Database Changes

I would imagine new tables need to be created for the new 1:M relationships.

External Dependencies

@jeremystretch
Copy link
Member

Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #5451 for further discussion.

@jeremystretch jeremystretch added the status: duplicate This issue has already been raised label Jan 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised
Projects
None yet
Development

No branches or pull requests

2 participants