[Bug]: Unsupported parameter asn in site module
Ansible NetBox Collection version
v3.11.0
Ansible version
ansible [core 2.14.3]
NetBox version
v3.4.6
Python version
3.9
Steps to Reproduce
The site API in Netbox seems to have changed: https://demo.netbox.dev/static/docs/models/dcim/site/ The latest module in the netbox collection however tries to update asn instead of asns which fails:
"Unsupported parameters for (netbox.netbox.netbox_site) module: data.asns. Supported parameters include: asn, comments, contact_email, contact_name, contact_phone, custom_fields, description, facility, latitude, longitude, name, physical_address, region, shipping_address, site_group, slug, status, tags, tenant, time_zone."
The site API also doesn't have contact_email, contact_name, contact_phone anymore. I guess this was moved to the contact module.
Thanks
Expected Behavior
To be able to update site ASNs via the API
Observed Behavior
see above
Can confirm. https://github.com/netbox-community/netbox/issues/6732 changed it from a singular ASN to multiple ASNs and no corresponding change was implemented here. Most likely because we don't have any tests covering creating a site with an ASN so we never saw the breakage and nobody was using it and reported it broken.