purestorage.flashblade.purefb_subnet (1.17.0) — module

Manage network subnets in a Pure Storage FlashBlade

| "added in version" 1.0.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

This module manages network subnets on Pure Storage FlashBlade.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create new network subnet named foo
  purestorage.flashblade.purefb_subnet:
    name: foo
    prefix: "10.21.200.3/24"
    gateway: 10.21.200.1
    mtu: 9000
    vlan: 2200
    lag: bar
    state: present
    fb_url: 10.10.10.2
    api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Change configuration of existing subnet foo
  purestorage.flashblade.purefb_subnet:
    name: foo
    state: present
    prefix: "10.21.100.3/24"
    gateway: 10.21.100.1
    mtu: 1500
    address: 10.21.200.123
    fb_url: 10.10.10.2
    api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete network subnet named foo
  purestorage.flashblade.purefb_subnet:
    name: foo
    state: absent
    fb_url: 10.10.10.2

Inputs

    
lag:
    default: uplink
    description:
    - Name of the Link Aggreation Group to use for the subnet.
    type: str
    version_added: 1.7.0
    version_added_collection: purestorage.flashblade

mtu:
    default: 1500
    description:
    - MTU size of the subnet. Range is 1280 to 9216.
    required: false
    type: int

name:
    description:
    - Subnet Name.
    required: true
    type: str

vlan:
    default: 0
    description:
    - VLAN ID of the subnet.
    required: false
    type: int

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Create, delete or modifies a subnet.
    required: false
    type: str

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

prefix:
    description:
    - IPv4 or IPv6 address associated with the subnet.
    - Supply the prefix length (CIDR) as well as the IP address.
    - Required for subnet creation.
    required: false
    type: str

gateway:
    description:
    - IPv4 or IPv6 address of subnet gateway.
    required: false
    type: str

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