community.general.bcf_switch (0.1.1) — module

Create and remove a bcf switch.

Authors: Ted (@tedelhourani)

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

Create and remove a Big Cloud Fabric switch.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: bcf leaf switch
  bcf_switch:
    name: Rack1Leaf1
    fabric_role: leaf
    leaf_group: R1
    mac: 00:00:00:02:00:02
    controller: '{{ inventory_hostname }}'
    state: present
    validate_certs: false

Inputs

    
mac:
    description:
    - The MAC address of the switch.
    required: true

name:
    description:
    - The name of the switch.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the switch should be present or absent.

controller:
    description:
    - The controller IP address.
    required: true

leaf_group:
    description:
    - The leaf group of the switch if the switch is a leaf.
    required: false

fabric_role:
    choices:
    - spine
    - leaf
    description:
    - Fabric role of the switch.
    required: true

access_token:
    description:
    - Big Cloud Fabric access token. If this isn't set then the environment variable C(BIGSWITCH_ACCESS_TOKEN)
      is used.

validate_certs:
    default: true
    description:
    - If C(false), SSL certificates will not be validated. This should only be used on
      personally controlled devices using self-signed certificates.
    required: false
    type: bool