alliedtelesis.awplus.awplus_l2_interfaces (1.2.2) — module

Manages Layer 2 interfaces configuration of AlliedWare Plus devices

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

Authors: Darryl Alang

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 manages Layer 2 interfaces configuration of AlliedWare Plus devices.

Inputs

    
state:
    choices:
    - merged
    - replaced
    - overridden
    - deleted
    default: merged
    description:
    - The state the configuration should be left in
    type: str

config:
    description: The provided configuration.
    elements: dict
    suboptions:
      access:
        description:
        - Set the switching characteristics of the port to access mode.
        suboptions:
          vlan:
            description:
            - Change the port-based VLAN of the current port.
            required: true
            type: int
        type: dict
      name:
        description:
        - Full name of the interface to configure, for example, port1.0.2.
        required: true
        type: str
      trunk:
        description:
        - Set the switching characteristics of the port to trunk.
        suboptions:
          allowed_vlans:
            description:
            - Add VLANs to be trunked over this switch port.
            elements: str
            type: list
          native_vlan:
            description:
            - Configure the native VLAN used for classifying the incoming untagged packets
              for this port.
            type: int
        type: dict
    type: list

Outputs

after:
  description: The resulting configuration model invocation.
  returned: when changed
  sample: "The configuration returned will always be in the same format\n of the parameters\
    \ above.\n"
before:
  description: The configuration prior to the model invocation.
  returned: always
  sample: "The configuration returned will always be in the same format\n of the parameters\
    \ above.\n"
commands:
  description: The set of commands pushed to the remote device.
  returned: always
  sample:
  - interface port1.0.3
  - switchport mode access
  - switchport access vlan 4
  type: list