bcf_switch - Create and remove a bcf switch.

New in version 2.4.

Synopsis

  • Create and remove a Big Cloud Fabric switch.

Options

parameter required default choices comments
access_token
no
Big Cloud Fabric access token. If this isn't set then the environment variable BIGSWITCH_ACCESS_TOKEN is used.
controller
yes
The controller IP address.
fabric_role
yes
  • spine
  • leaf
Fabric role of the switch.
leaf_group
no
The leaf group of the switch if the switch is a leaf.
mac
yes
The MAC address of the switch.
name
yes
The name of the switch.
state
no present
  • present
  • absent
Whether the switch should be present or absent.
validate_certs
no True
  • True
  • False
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
  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

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.

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