Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vpc_interface_module.rst

raw
1 .. _cisco.nxos.nxos_vpc_interface_module:
2
3
4 *****************************
5 cisco.nxos.nxos_vpc_interface
6 *****************************
7
8 **Manages interface VPC configuration**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages interface VPC configuration
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="1">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="1">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>peer_link</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">boolean</span>
43 </div>
44 </td>
45 <td>
46 <ul style="margin: 0; padding: 0"><b>Choices:</b>
47 <li>no</li>
48 <li>yes</li>
49 </ul>
50 </td>
51 <td>
52 <div>Set to true/false for peer link config on associated portchannel.</div>
53 </td>
54 </tr>
55 <tr>
56 <td colspan="1">
57 <div class="ansibleOptionAnchor" id="parameter-"></div>
58 <b>portchannel</b>
59 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
60 <div style="font-size: small">
61 <span style="color: purple">string</span>
62 / <span style="color: red">required</span>
63 </div>
64 </td>
65 <td>
66 </td>
67 <td>
68 <div>Group number of the portchannel that will be configured.</div>
69 </td>
70 </tr>
71 <tr>
72 <td colspan="1">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>state</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">string</span>
78 </div>
79 </td>
80 <td>
81 <ul style="margin: 0; padding: 0"><b>Choices:</b>
82 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
83 <li>absent</li>
84 </ul>
85 </td>
86 <td>
87 <div>Manages desired state of the resource.</div>
88 </td>
89 </tr>
90 <tr>
91 <td colspan="1">
92 <div class="ansibleOptionAnchor" id="parameter-"></div>
93 <b>vpc</b>
94 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
95 <div style="font-size: small">
96 <span style="color: purple">string</span>
97 </div>
98 </td>
99 <td>
100 </td>
101 <td>
102 <div>VPC group/id that will be configured on associated portchannel.</div>
103 </td>
104 </tr>
105 </table>
106 <br/>
107
108
109 Notes
110 -----
111
112 .. note::
113 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
114 - Unsupported for Cisco MDS
115 - Either vpc or peer_link param is required, but not both.
116 - ``state=absent`` removes whatever VPC config is on a port-channel if one exists.
117 - 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
118 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
119 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
120 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
121
122
123
124 Examples
125 --------
126
127 .. code-block:: yaml
128
129 - cisco.nxos.nxos_vpc_interface:
130 portchannel: 10
131 vpc: 100
132
133
134
135 Return Values
136 -------------
137 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
138
139 .. raw:: html
140
141 <table border=0 cellpadding=0 class="documentation-table">
142 <tr>
143 <th colspan="1">Key</th>
144 <th>Returned</th>
145 <th width="100%">Description</th>
146 </tr>
147 <tr>
148 <td colspan="1">
149 <div class="ansibleOptionAnchor" id="return-"></div>
150 <b>commands</b>
151 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
152 <div style="font-size: small">
153 <span style="color: purple">list</span>
154 </div>
155 </td>
156 <td>always</td>
157 <td>
158 <div>commands sent to the device</div>
159 <br/>
160 <div style="font-size: smaller"><b>Sample:</b></div>
161 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface port-channel100&#x27;, &#x27;vpc 10&#x27;]</div>
162 </td>
163 </tr>
164 </table>
165 <br/><br/>
166
167
168 Status
169 ------
170
171
172 Authors
173 ~~~~~~~
174
175 - Jason Edelman (@jedelman8)
176 - Gabriele Gerbino (@GGabriele)