arubanetworks / arubanetworks.aoscx / 4.3.2 / module / aoscx_l3_interface Create or Update or Delete Layer3 Interface configuration on AOS-CX. | "added in version" 2.8.0 of arubanetworks.aoscx" Authors: Aruba Networks (@ArubaNetworks) preview | supported by certifiedarubanetworks.aoscx.aoscx_l3_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 Layer3 Interfaces on AOS-CX devices.
- name: > Configure Interface 1/1/3 - enable interface and vsx-sync features IMPORTANT NOTE: the aoscx_interface module is needed to enable the interface and set the VSX features to be synced. aoscx_interface: name: 1/1/3 enabled: true vsx_sync: - acl - irdp - qos - rate_limits - vlan - vsx_virtual
- name: > Creating new L3 interface 1/1/3 with IPv4 and IPv6 address on VRF red IMPORTANT NOTE: see the above task, it is needed to enable the interface aoscx_l3_interface: interface: 1/1/3 description: Uplink Interface ipv4: - 10.20.1.3/24 ipv6: - 2000:db8::1234/64 vrf: red
- name: Creating new L3 interface 1/1/6 with IPv4 address on VRF default aoscx_l3_interface: interface: 1/1/6 ipv4: - 10.33.4.15/24 - 10.0.1.1/24
- name: Delete IPv4 addresses on VRF default from L3 Interface 1/1/6 aoscx_l3_interface: interface: 1/1/6 ipv4: - 10.0.1.1/24 state: delete
- name: Delete VRF attach of the Interface 1/1/3 aoscx_l3_interface: interface: 1/1/3 vrf: red state: delete
- name: Deleting L3 Interface - 1/1/3 aoscx_l3_interface: interface: 1/1/3 state: delete
- name: Create IP Helper Address on Interface 1/1/3 aoscx_l3_interface: interface: 1/1/3 ip_helper_address: - 172.1.2.32
- name: Update IP Helper Address on Interface 1/1/3 aoscx_l3_interface: interface: 1/1/3 ip_helper_address: 172.1.5.44 state: update
vrf: description: 'VRF to which the port belongs if the port is routing. If none provided, the interface will be in the Default VRF. If the VRF is removed or changed all configuration is erased from the interface. ' 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 remainings are secondary IPv4. To remove an IP address pass in the list and use the delete 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 and use the delete state. ' elements: str required: false type: list state: choices: - create - update - delete default: create description: Create, Update, or Delete Layer3 Interface required: false type: str interface: description: 'Interface name, should be in the format chassis/slot/port, e.g. 1/2/3, 1/1/32. ' required: true type: str description: description: Description of interface. required: false type: str ip_helper_address: description: 'Configure a remote DHCP server/relay IP address on the device interface. Here the helper address is same as the DHCP server address or another intermediate DHCP relay. ' elements: str required: false type: list interface_qos_rate: description: "The rate limit value configured for broadcast/multicast/unknown unicast\ \ traffic. Dictionary should have the format 'type_of_traffic': speed e.g.\n 'unknown-unicast':\ \ 100pps\n 'broadcast': 200pps\n 'multicast': 200pps\n" required: false type: dict interface_qos_schedule_profile: description: 'Attaching existing QoS schedule profile to interface. *This parameter is deprecated and will be removed in a future version. ' required: false type: dict