.. _cisco.nxos.nxos_vpc_interface_module:
*****************************
cisco.nxos.nxos_vpc_interface
*****************************
**Manages interface VPC configuration**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- Manages interface VPC configuration
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
peer_link
boolean
|
|
Set to true/false for peer link config on associated portchannel.
|
portchannel
string
/ required
|
|
Group number of the portchannel that will be configured.
|
state
string
|
Choices:
present ←
- absent
|
Manages desired state of the resource.
|
vpc
string
|
|
VPC group/id that will be configured on associated portchannel.
|
Notes
-----
.. note::
- Tested against NXOSv 7.3.(0)D1(1) on VIRL
- Unsupported for Cisco MDS
- Either vpc or peer_link param is required, but not both.
- ``state=absent`` removes whatever VPC config is on a port-channel if one exists.
- Re-assigning a vpc or peerlink from one portchannel to another is not supported. The module will force the user to unconfigure an existing vpc/pl before configuring the same value on a new portchannel
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide `
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide `
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page `_.
Examples
--------
.. code-block:: yaml
- cisco.nxos.nxos_vpc_interface:
portchannel: 10
vpc: 100
Return Values
-------------
Common return values are documented `here `_, the following are the fields unique to this module:
.. raw:: html
Key |
Returned |
Description |
commands
list
|
always |
commands sent to the device
Sample:
['interface port-channel100', 'vpc 10']
|
Status
------
Authors
~~~~~~~
- Jason Edelman (@jedelman8)
- Gabriele Gerbino (@GGabriele)