ansible.builtin.bcf_switch (v2.9.27) — module

Create and remove a bcf switch.

| "added in version" 2.4 of ansible.builtin"

Authors: Ted (@tedelhourani)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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