community / community.general / 0.1.1 / module / onyx_magp Manage MAGP protocol on Mellanox ONYX network devices Authors: Samer Deeb (@samerd) preview | supported by communitycommunity.general.onyx_magp (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 MAGP protocol on vlan interface of Mellanox ONYX network devices.
- name: run add vlan interface with magp onyx_magp: magp_id: 103 router_ip: 192.168.8.2 router_mac: AA:1B:2C:3D:4E:5F interface: Vlan 1002
state: choices: - present - absent - enabled - disabled default: present description: - MAGP state. magp_id: description: - MAGP instance number 1-255 required: true interface: description: - VLAN Interface name. required: true router_ip: description: - MAGP router IP address. router_mac: description: - MAGP router MAC address.
commands: description: The list of configuration mode commands to send to the device. returned: always sample: - interface vlan 234 magp 103 - exit - interface vlan 234 magp 103 ip virtual-router address 1.2.3.4 type: list