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

Add the ability to define custom_fields #658

Open
florianschendel opened this issue Nov 22, 2024 · 3 comments
Open

Add the ability to define custom_fields #658

florianschendel opened this issue Nov 22, 2024 · 3 comments

Comments

@florianschendel
Copy link

NetBox version

v4.x

Proposed functionality

Add the ability to define custom_fields in

netbox_available_prefix
netbox_available_ip_address
netbox_vlan

Similar to the custom_fields found in netbox_virtual_machine or netbox_ip_address resource.

custom_fields (Map of String)

or

custom_fields (Map of String)

Use case

Allows us to declare custom_fields attached to the netbox_ip_address resource.

End result

"custom_fields": {
    "record1": "test1,test2",
    "record2": null,
    "record3": false,
},
@alexandrud
Copy link

Somebody wanted this for netbox_device_interface #652

@corentinFaucher
Copy link

Hello,

We are also interested to have it in netbox_cluster_group.

We currently use it in the netbox_virtual_machine resources, which are duplicates that we could group together in the same netbox_cluster_group.

@boopzz
Copy link

boopzz commented Jan 21, 2025

Im looking at implementing this for tenants, Ive got it working but it also on every apply adds the custom fields that arent specified so makes the rerun messy. Its pretty much a copy paste job from the prefixes resource and data pulls. Hopefully i get it working and ill try and implement for some of the other resources missing like this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants