-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.1.5
Python version
3.9
Steps to Reproduce
Bulk import IP Addresses via WebUI/CSV using "Multiple selection" "Custom Fields".
E.g.,
- Create multiple selection custom fields with "IPAM | IP address" as the assigned model.
- Bulk import via CSV
Expected Behavior
A successful import
Observed Behavior
My CSV header:
dns_name,address,status,cf_publish_dns_location,cf_publish_dns_ptr_zone,cf_publish_dns_ttl,cf_publish_dns_zones,cf_publish_external_cname_destination,cf_publish_external_cname_zone
Different CSV data attempts:
Attempt 1:
myhost,123.123.123.123/32,active,Internal,mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Invalid choice(s) (I, n, t, e, r, n, a, l). Available choices are: Internal, External
Attempt 2:
myhost,123.123.123.123/32,active,"Internal",mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Invalid choice(s) (I, n, t, e, r, n, a, l). Available choices are: Internal, External
Attempt 3:
myhost,123.123.123.123/32,active,["Internal"],mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 cf_publish_dns_location: Select a valid choice. ["Internal"] is not one of the available choices.
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Required field cannot be empty.