community.general.onyx_magp (0.1.1) — module

Manage MAGP protocol on Mellanox ONYX network devices

Authors: Samer Deeb (@samerd)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module provides declarative management of MAGP protocol on vlan interface of Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
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.

Outputs

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