netbox-community / ansible_modules

NetBox modules for Ansible using Ansible Collections
GNU General Public License v3.0
327 stars 208 forks source link

[Feature]: Add module for ASN #743

Open rodvand opened 2 years ago

rodvand commented 2 years ago

NetBox version

v.3.1.8

Feature type

New Module

Proposed functionality

Add the new ASN model as a module.

Use case

ASNs.

External dependencies

No response

rodvand commented 2 years ago

In the same change it would be natural to add the asns option to the module netbox_site.

lsullivan1980 commented 1 year ago

In the same change it would be natural to add the asns option to the module netbox_site.

I second this. As of now, there is no way to add either a site with ASN (site module) or ASN with site (ASN module), unless I'm missing something. I tried the ASN module (which isn't documented on the Ansible modules page) but "sites" isn't a valid custom field unless I'm doing something wrong.

Edit: Upon further inspection, when I go to do bulk uploads of data in Netbox 3.4.8, there is no ASN option for the "field options" under sites and no "name" or "sites" field options under the ASN portion.