community / community.general / 0.1.1 / module / onyx_l3_interface Manage L3 interfaces on Mellanox ONYX network devices Authors: Samer Deeb (@samerd) preview | supported by communitycommunity.general.onyx_l3_interface (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module provides declarative management of L3 interfaces on Mellanox ONYX network devices.
- name: Set Eth1/1 IPv4 address onyx_l3_interface: name: Eth1/1 ipv4: 192.168.0.1/24
- name: Remove Eth1/1 IPv4 address onyx_l3_interface: name: Eth1/1 state: absent
- name: Set IP addresses on aggregate onyx_l3_interface: aggregate: - { name: Eth1/1, ipv4: 192.168.2.10/24 } - { name: Eth1/2, ipv4: 192.168.3.10/24 }
- name: Remove IP addresses on aggregate onyx_l3_interface: aggregate: - { name: Eth1/1, ipv4: 192.168.2.10/24 } - { name: Eth1/2, ipv4: 192.168.3.10/24 } state: absent
ipv4: description: - IPv4 of the L3 interface. ipv6: description: - IPv6 of the L3 interface (not supported for now). name: description: - Name of the L3 interface. purge: default: false description: - Purge L3 interfaces not defined in the I(aggregate) parameter. type: bool state: choices: - present - absent default: present description: - State of the L3 interface configuration. aggregate: description: List of L3 interfaces definitions
commands: description: The list of configuration mode commands to send to the device returned: always. sample: - interfaces ethernet 1/1 ip address 192.168.0.1 /24 type: list