Information ( Custom Interface Type ) #23080
Unanswered
GillesZor
asked this question in
Help Wanted!
Replies: 1 comment
|
The stable workaround is a selection custom field such as |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm currently using NetBox v4.6.5 along with the Branching plugin.
I needed custom interface types (like specific connector/cable types), so I modified InterfaceTypeChoices directly in choices.py. However, as per the NetBox documentation, FIELD_CHOICES in configuration.py does not support extending dcim.Interface.type natively.
Because of this, when attempting to merge a branch containing interfaces with these custom types, the merge fails with a validation error:
{'type': ["Value 'rj45' is not a valid choice."]}
It seems the branching merge validation checks against NetBox's stock choices/validators rather than picking up custom values injected via local code modifications.
Has anyone encountered this issue before? If so, how did you resolve or work around it?
If not, how do you handle custom interface types or connector tracking when working with the Branching plugin? (e.g., using Custom Fields instead?)
Thanks in advance for your insights!
All reactions