purestorage.flashblade.purefb_lag (1.17.0) — module

Manage FlashBlade Link Aggregation Groups

| "added in version" 1.7.0 of purestorage.flashblade"

Authors: Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install purestorage.flashblade:==1.17.0


Add to requirements.yml

  collections:
    - name: purestorage.flashblade
      version: 1.17.0

Description

Maintain FlashBlade Link Aggregation Groups


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    ports:
    - ch1.eth2
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Upate LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    ports:
    - ch1.eth2
    - ch1.eth4
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete LAG
  purestorage.flashblade.purefb_lag:
    name: lag2
    state: absent
    fb_url: 10.10.10.2
    api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3

Inputs

    
name:
    default: uplink
    description:
    - Name of the Link Aggregation Group
    type: str

ports:
    description:
    - Name of network ports assigned to the LAG
    - Format should be CHx.ETHy, where CHx is the chassis number and ETHy is the ethernet
      port number.
    - Matched port pairs from each Fabric Module in the Chassis will be used.
    - To modify required ports for a LAG specify only the ports required by the LAG. Any
      ports currently used by the LAG not specified will be disconnected from the LAG.
    elements: str
    type: list

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Define whether the LAG should be added or deleted
    type: str

fb_url:
    description:
    - FlashBlade management IP address or Hostname.
    type: str

api_token:
    description:
    - FlashBlade API token for admin privileged user.
    type: str

Outputs

lag:
  contains:
    lag_speed:
      description: Combined speed of all ports in the LAG in Gb/s
      type: str
    mac_address:
      description: Unique MAC address assigned to the LAG
      type: str
    port_speed:
      description: Configured speed of each port in the LAG in Gb/s
      type: str
    status:
      description: Health status of the LAG.
      type: str
  description: A dictionary describing the LAG.
  returned: success
  type: dict