mellanox / mellanox.onyx / 1.0.0 / module / onyx_vlan Manage VLANs on Mellanox ONYX network devices Authors: Samer Deeb (@samerd) Alex Tabachnik (@atabachnik)mellanox.onyx.onyx_vlan (1.0.0) — module
Install with ansible-galaxy collection install mellanox.onyx:==1.0.0
collections: - name: mellanox.onyx version: 1.0.0
This module provides declarative management of VLANs on Mellanox ONYX network devices.
- name: Configure VLAN ID and name onyx_vlan: vlan_id: 20 name: test-vlan
- name: Remove configuration onyx_vlan: state: absent
name: description: - Name of the VLAN. purge: default: false description: - Purge VLANs not defined in the I(aggregate) parameter. type: bool state: choices: - present - absent default: present description: - State of the VLAN configuration. vlan_id: description: - ID of the VLAN. aggregate: description: List of VLANs definitions.
commands: description: The list of configuration mode commands to send to the device returned: always. sample: - vlan 20 - name test-vlan - exit type: list