ansible / ansible.builtin / v2.6.0 / module / onyx_magp Manage MAGP protocol on Mellanox ONYX network devices | "added in version" 2.5 of ansible.builtin" Authors: Samer Deeb (@samerd) preview | supported by communityansible.builtin.onyx_magp (v2.6.0) — module
pip
Install with pip install ansible==2.6.0
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