Interface to VRF Associations #5671

Closed
opened 2025-12-29 19:31:10 +01:00 by adam · 2 comments
Owner

Originally created by @ryanmerolle on GitHub (Nov 17, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.10

Feature type

Data model extension

Proposed functionality

Enable interface to VRF mapping.

Use case

Generally NetBox should support most base functions an interface supports. One obvious function missing in the current model is the ability to map interfaces to a VRF.

I do not know we can rush in to this without first discussing if and how should IP assignment be limited be associated to an interface only if they are both in the same VRF. This constraint could be challenging to implement given the current IP model. I think at the very least the MVP would just allow interfaces to be associated to a VRF without any constraints on IP assignments.

Database changes

No response

External dependencies

No response

Originally created by @ryanmerolle on GitHub (Nov 17, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.10 ### Feature type Data model extension ### Proposed functionality Enable interface to VRF mapping. ### Use case Generally NetBox should support most base functions an interface supports. One obvious function missing in the current model is the ability to map interfaces to a VRF. I do not know we can rush in to this without first discussing if and how should IP assignment be limited be associated to an interface only if they are both in the same VRF. This constraint could be challenging to implement given the current IP model. I think at the very least the MVP would just allow interfaces to be associated to a VRF without any constraints on IP assignments. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:31:10 +01:00
adam closed this issue 2025-12-29 19:31:10 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 17, 2021):

I do not know we can rush in to this without first discussing if and how should IP assignment be limited be associated to an interface only if they are both in the same VRF.

We probably don't want to enforce any validation around this, especially since it would prevent users from assigning any VRF IPs to an interface until that interface has been assigned to a VRF. I also imagine some users will prefer to assign only IPs or only interfaces to VRFs. Also custom validation is an option now for users who may want to enforce this.

@jeremystretch commented on GitHub (Nov 17, 2021): > I do not know we can rush in to this without first discussing if and how should IP assignment be limited be associated to an interface only if they are both in the same VRF. We probably don't want to enforce any validation around this, especially since it would prevent users from assigning any VRF IPs to an interface until that interface has been assigned to a VRF. I also imagine some users will prefer to assign only IPs or only interfaces to VRFs. Also [custom validation](https://netbox.readthedocs.io/en/stable/customization/custom-validation/) is an option now for users who may want to enforce this.
Author
Owner

@ryanmerolle commented on GitHub (Nov 17, 2021):

I agree with your logic.

@ryanmerolle commented on GitHub (Nov 17, 2021): I agree with your logic.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5671