fabric – Manage SAN fabrics in PowerVC
Synopsis
Register, delete, or retrieve SAN fabrics in PowerVC.
Parameters
- state (optional, str, present)
Desired state of the fabric.
- id (optional, str, None)
ID of the SAN fabric.
- host (optional, str, None)
IP address or the host name that is used to connect to the switch.
- user (optional, str, None)
Username for connecting to the switch.
- password (optional, str, None)
Password for connecting to the switch.
- name (optional, str, None)
Display name of the fabric.
- type (optional, str, None)
Type of fabric.
- zoning_policy (optional, str, None)
Zoning policy.
- auto_add_host_key (optional, bool, True)
Automatically add host key.
- port (optional, str, 22)
SSH port used to connect to a Cisco switch.
- vsan (optional, str, None)
virtual SAN for Cisco switches only.
Examples
# Get all fabrics
- name: Get fabrics
ibm.powervc.fabric:
cloud: powervc
# Get specific fabric
- name: Get fabric
ibm.powervc.fabric:
cloud: powervc
id: fab123
# Register Brocade fabric
- name: Register fabric
ibm.powervc.fabric:
cloud: powervc
state: present
host: 9.2.4.6
user: admin
password: password
name: Fabric1
type: brocade
zoning_policy: initiator
# Register fabric with ssh_key
- name: Register fabric with ssh_key
ibm.powervc.fabric:
cloud: powervc
state: present
host: 9.2.4.6
user: admin
ssh_key: |
-----BEGIN OPENSSH PRIVATE KEY-----
-----------------------------------
-----------------------------------
-----END OPENSSH PRIVATE KEY-----
name: Fabric1
type: brocade
zoning_policy: initiator
# Update fabric
- name: Update name for the fabric
ibm.powervc.fabric:
cloud: "powervc"
state: present
id: "fab123"
name: "Fabric1-Updated"
# Register Cisco fabric
- name: Register fabric
ibm.powervc.fabric:
cloud: powervc
state: present
host: 9.2.4.5
user: admin
password: password
name: Fabric2
type: brocade
vsan: 1
zoning_policy: initiator
# Delete fabric
- name: Delete fabric
ibm.powervc.fabric:
cloud: powervc
state: absent
id: fab123