arubanetworks / arubanetworks.aoscx / 4.3.2 / module / aoscx_vlan_interface Create or Delete VLAN Interface configuration on AOS-CX | "added in version" 2.8.0 of arubanetworks.aoscx" Authors: Aruba Networks (@ArubaNetworks) preview | supported by certifiedarubanetworks.aoscx.aoscx_vlan_interface (4.3.2) — module
Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2
collections: - name: arubanetworks.aoscx version: 4.3.2
This modules provides configuration management of VLAN Interfacess on AOS-CX devices.
- name: Create VLAN Interface 100 aoscx_vlan_interface: vlan_id: 100 description: UPLINK_VLAN ipv4: - 10.10.20.1/24 ipv6: - 2000:db8::1234/64
- name: Create VLAN Interface 200 aoscx_vlan_interface: vlan_id: 200 description: UPLINK_VLAN ipv4: - 10.20.20.1/24 ipv6: - 3000:db8::1234/64 vrf: red ip_helper_address: - 10.40.20.1
- name: Delete VLAN Interface 100 aoscx_vlan_interface: vlan_id: 100 state: delete
vrf: description: 'The VRF the vlan interface will belong to once created. If none provided, the interface will be in the Default VRF. If the VLAN interface is created and the user wants to change the interface vlan''s VRF, the user must delete the VLAN interface then recreate the VLAN interface in the desired VRF. ' required: false type: str ipv4: description: 'The IPv4 address and subnet mask in the address/mask format. The first entry in the list is the primary IPv4, the remaining are secondary IPv4. To remove an IP address pass in the list without the IP address yo wish to remove, and use the update state. ' elements: str required: false type: list ipv6: description: 'The IPv6 address and subnet mask in the address/mask format. It takes multiple IPv6 with comma separated in the list. To remove an IP address pass in the list without the IP address yo wish to remove, and use the update state. ' elements: str required: false type: list state: choices: - create - update - delete default: create description: Create or update or delete the VLAN. required: false type: str vlan_id: description: 'The ID of this VLAN interface. Non-internal VLANs must have an ''id'' between 1 and 4094 to be effectively instantiated. ' required: true type: str admin_state: choices: - up - down description: Admin State status of vlan interface. required: false type: str description: description: VLAN description required: false type: str active_gateway_ip: description: Configure IPv4 active-gateway for vlan interface. required: false type: str ip_helper_address: description: 'Configure a remote DHCP server/relay IP address on the vlan interface. Here the helper address is same as the DHCP server address or another intermediate DHCP relay. ' elements: str required: false type: list active_gateway_mac_v4: description: 'Configure virtual MAC address for IPv4 active-gateway for vlan interface. Must be used in together with active_gateway_ip. ' required: false type: str