community.network.bcf_switch module – Create and remove a bcf switch.
Note
This module is part of the community.network collection (version 5.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.bcf_switch
.
Note
The community.network collection has been deprecated and will be removed from Ansible 12. See the discussion thread for more information.
DEPRECATED
- Removed in:
version 6.0.0
- Why:
This collection and all content in it is unmaintained and deprecated.
- Alternative:
Unknown.
Synopsis
Create and remove a Big Cloud Fabric switch.
Aliases: network.bigswitch.bcf_switch
Parameters
Parameter |
Comments |
---|---|
Big Cloud Fabric access token. If this isn’t set then the environment variable |
|
The controller IP address. |
|
Fabric role of the switch. Choices:
|
|
The leaf group of the switch if the switch is a leaf. |
|
The MAC address of the switch. |
|
The name of the switch. |
|
Whether the switch should be present or absent. Choices:
|
|
If Choices:
|
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
Status
This module will be removed in version 6.0.0. [deprecated]
For more information see DEPRECATED.