cisco.ucs.ucs_lan_connectivity module – Configures LAN Connectivity Policies on Cisco UCS Manager
Note
This module is part of the cisco.ucs collection (version 1.10.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 cisco.ucs
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cisco.ucs.ucs_lan_connectivity
.
New in cisco.ucs 2.5
Synopsis
Configures LAN Connectivity Policies on Cisco UCS Manager.
Requirements
The below requirements are needed on the host that executes this module.
ucsmsdk
Parameters
Parameter |
Comments |
---|---|
A description of the LAN Connectivity Policy. Cisco recommends including information about where and when to use the policy. Enter up to 256 characters. You can use any characters or spaces except the following: ` (accent mark), (backslash), ^ (carat), ” (double quote), = (equal sign), > (greater than), < (less than), or ‘ (single quote). |
|
IP address or hostname of Cisco UCS Manager. Modules can be used with the UCS Platform Emulator https://cs.co/ucspe |
|
List of iSCSI vNICs used by the LAN Connectivity Policy. |
|
The iSCSI adapter policy associated with this iSCSI vNIC. |
|
The MAC address associated with this iSCSI vNIC. If the MAC address is not set, Cisco UCS Manager uses a derived MAC address. Default: |
|
The name of the iSCSI vNIC. |
|
The LAN vNIC associated with this iSCSI vNIC. |
|
If Choices:
|
|
The VLAN used for the iSCSI vNIC. Default: |
|
The name of the LAN Connectivity Policy. This name can be between 1 and 16 alphanumeric characters. You cannot use spaces or any special characters other than - (hyphen), “_” (underscore), : (colon), and . (period). You cannot change this name after the policy is created. |
|
Org dn (distinguished name) Default: |
|
Password for Cisco UCS Manager authentication. |
|
Port number to be used during connection (by default uses 443 for https and 80 for http connection). |
|
If use_proxy is no, specfies proxy to be used for connection. e.g. ‘http://proxy.xy.z:8080’ |
|
If If Choices:
|
|
If Choices:
|
|
If Choices:
|
|
Username for Cisco UCS Manager authentication. Default: |
|
List of vNICs used by the LAN Connectivity Policy. vNICs used by the LAN Connectivity Policy must be created from a vNIC template. |
|
The name of the Ethernet adapter policy. A user defined policy can be used, or one of the system defined policies. |
|
The name of the vNIC. |
|
String specifying the vNIC assignment order (e.g., ‘1’, ‘2’). Default: |
|
If Choices:
|
|
The name of the vNIC template. |
Examples
- name: Configure LAN Connectivity Policy
cisco.ucs.ucs_lan_connectivity:
hostname: 172.16.143.150
username: admin
password: password
name: Cntr-FC-Boot
vnic_list:
- name: eno1
vnic_template: Cntr-Template
adapter_policy: Linux
- name: eno2
vnic_template: Container-NFS-A
adapter_policy: Linux
- name: eno3
vnic_template: Container-NFS-B
adapter_policy: Linux
iscsi_vnic_list:
- name: iSCSIa
overlay_vnic: eno1
iscsi_adapter_policy: default
vlan_name: Container-MGMT-VLAN
- name: iSCSIb
overlay_vnic: eno3
iscsi_adapter_policy: default
vlan_name: Container-TNT-A-NFS
- name: Remove LAN Connectivity Policy
cisco.ucs.ucs_lan_connectivity:
hostname: 172.16.143.150
username: admin
password: password
name: Cntr-FC-Boot
state: absent