alliedtelesis.awplus.awplus_linkagg (1.2.2) — module

Manage link aggregation groups on AlliedWare Plus network devices

| "added in version" 2.9 of alliedtelesis.awplus"

Authors: Cheng Yi Kok (@cyk19)

preview | supported by network

Install collection

Install with ansible-galaxy collection install alliedtelesis.awplus:==1.2.2


Add to requirements.yml

  collections:
    - name: alliedtelesis.awplus
      version: 1.2.2

Description

This module provides declarative management of link aggregation groups on AlliedWare Plus network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: delete link aggregation group
      awplus_linkagg:
        group: 100
        state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: delete link aggregation group
      awplus_linkagg:
        group: 3
        state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: set link aggregation group to members
      awplus_linkagg:
        group: 200
        mode: active
        members:
          - port1.0.4
          - port1.0.3
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: remove link aggregation group from port1.0.3
      awplus_linkagg:
        group: 200
        mode: active
        members:
          - port1.0.4
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: delete link aggregation group
      awplus_linkagg:
        group: 200
        state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Create aggregate of linkagg definitions
      awplus_linkagg:
        aggregate:
          - { group: 3, mode: active, members: [port1.0.4] }
          - { group: 100, mode: passive, members: [port1.0.3] }

Inputs

    
mode:
    choices:
    - active
    - passive
    description:
    - Mode of the link aggregation group.

group:
    description:
    - Channel-group number for the port-channel Link aggregation group. Range 1-255.

purge:
    default: false
    description:
    - Purge links not defined in the I(aggregate) parameter.
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the link aggregation group.

members:
    description:
    - List of members of the link aggregation group.

aggregate:
    description: List of link aggregation definitions.

Outputs

commands:
  description: The list of configuration mode commands to send to the device
  returned: always
  sample:
  - - interface port1.0.2
    - no switchport access vlan
    - switchport mode access
    - switchport access vlan 2
  type: list