cisco.ucs.ucs_sp_vnic_order – Configures vNIC order for service profiles and templates on Cisco UCS Manager

From Get docs
Ansible/docs/2.11/collections/cisco/ucs/ucs sp vnic order module


cisco.ucs.ucs_sp_vnic_order – Configures vNIC order for service profiles and templates on Cisco UCS Manager

Note

This plugin is part of the cisco.ucs collection (version 1.6.0).

To install it use: ansible-galaxy collection install cisco.ucs.

To use it in a playbook, specify: cisco.ucs.ucs_sp_vnic_order.


New in version 2.1: of cisco.ucs


Synopsis

  • Configures Configures vNIC order for service profiles and templates on Cisco UCS Manager

Requirements

The below requirements are needed on the host that executes this module.

  • ucsmsdk

Parameters

Parameter Choices/Defaults Comments

hostname

string / required

IP address or hostname of Cisco UCS Manager.

Modules can be used with the UCS Platform Emulator https://cs.co/ucspe

org_dn

string

root org dn

password

string / required

Password for Cisco UCS Manager authentication.

port

integer

Port number to be used during connection (by default uses 443 for https and 80 for http connection).

proxy

string

If use_proxy is no, specfies proxy to be used for connection. e.g. 'http://proxy.xy.z:8080'

sp_name

string

DN of the service profile

use_proxy

boolean

  • no
  • yes

If no, will not use the proxy as defined by system environment variable.

use_ssl

boolean

  • no
  • yes

If no, an HTTP connection will be used instead of the default HTTPS connection.

username

string

Default:

"admin"

Username for Cisco UCS Manager authentication.

vnics

string

List of vNIC order properties

admin_vcon

string

  • 1
  • 2
  • 3
  • 4
  • any

Name of the virtual connection

name

string / required

Name of the vNIC

order

string

  • unspecified
  • 0-256

vNIC connection order

state

string

  • present

  • absent

Desired state of the vNIC.

transport

string / required

  • ethernet
  • fc

transport medium



Examples

- name: Configure vnic order
  cisco.ucs.ucs_sp_vnic_order:
    sp_name: my_sp
    vnics:
    - name: 'my_vnic'
      admin_vcon: '1'
      order: '1'
      transport: 'ethernet'
    hostname: 192.168.99.100
    username: admin
    password: password
- name: Configure vhba order
  cisco.ucs.ucs_sp_vnic_order:
    sp_name: my_sp
    vnics:
    - name: 'my_vhba'
      admin_vcon: '2'
      order: '1'
      transport: 'fc'
    hostname: 192.168.99.100
    username: admin
    password: password
- name: Configure vnic and vhba order
  cisco.ucs.ucs_sp_vnic_order:
    sp_name: my_sp
    vnics:
    - name: my_vhba
      admin_vcon: '2'
      order: '1'
      transport: fc
    - name: my_vnic
      admin_vcon: '1'
      order: '1'
      transport: ethernet
    hostname: 192.168.99.100
    username: admin
    password: password
- name: Remove vnic order configuration from my_vnic
  cisco.ucs.ucs_sp_vnic_order:
    sp_name: my_sp
    vnics:
    - name: 'my_vnic'
      transport: ethernet
      state: absent
    hostname: 192.168.99.100
    username: admin
    password: password

Authors

  • Brett Johnson (@sdbrett)

© 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/cisco/ucs/ucs_sp_vnic_order_module.html