community.network.bcf_switch – Create and remove a bcf switch.

From Get docs
Ansible/docs/2.11/collections/community/network/bcf switch module


community.network.bcf_switch – Create and remove a bcf switch.

Note

This plugin is part of the community.network collection (version 2.0.1).

To install it use: ansible-galaxy collection install community.network.

To use it in a playbook, specify: community.network.bcf_switch.


Synopsis

  • Create and remove a Big Cloud Fabric switch.

Parameters

Parameter Choices/Defaults Comments

access_token

string

Big Cloud Fabric access token. If this isn't set then the environment variable BIGSWITCH_ACCESS_TOKEN is used.

controller

string / required

The controller IP address.

fabric_role

string / required

  • spine
  • leaf

Fabric role of the switch.

leaf_group

string

The leaf group of the switch if the switch is a leaf.

mac

string / required

The MAC address of the switch.

name

string / required

The name of the switch.

state

string

  • present

  • absent

Whether the switch should be present or absent.

validate_certs

boolean

  • no
  • yes

If false, SSL certificates will not be validated. This should only be used on personally controlled devices using self-signed certificates.



Examples

- name: Bcf leaf switch
  community.network.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

Authors

  • Ted (@tedelhourani)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/network/bcf_switch_module.html