infobloxopen / infoblox-ansible

Ansible modules for interfacing to Infoblox systems
GNU General Public License v3.0
54 stars 60 forks source link

Add vlans to nios_network #167

Open BZValoche opened 1 year ago

BZValoche commented 1 year ago

Add the associated VLAN list when creating a network. For example :

nios_network:
  provider: "{{ipam_provider}}"
  network: "10.0.0.0/27"
  state: present
  vlans:
    - vlan: "{{lookup('nios', 'vlan', filter={'id':123}, provider=ipam_provider)._ref}}"
    - vlan: "{{lookup('nios', 'vlan', filter={'id':456}, provider=ipam_provider)._ref}}"

And handle modifications, and destruction of network (which needs the vlans dissociated from it before removal).