Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_evpn_vni_module.rst

raw
1 .. _cisco.nxos.nxos_evpn_vni_module:
2
3
4 ************************
5 cisco.nxos.nxos_evpn_vni
6 ************************
7
8 **Manages Cisco EVPN VXLAN Network Identifier (VNI).**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages Cisco Ethernet Virtual Private Network (EVPN) VXLAN Network Identifier (VNI) configurations of a Nexus device.
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>route_distinguisher</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">string</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>The VPN Route Distinguisher (RD). The RD is combined with the IPv4 or IPv6 prefix learned by the PE router to create a globally unique address.</div>
49 </td>
50 </tr>
51 <tr>
52 <td colspan="1">
53 <div class="ansibleOptionAnchor" id="parameter-"></div>
54 <b>route_target_both</b>
55 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
56 <div style="font-size: small">
57 <span style="color: purple">list</span>
58 / <span style="color: purple">elements=string</span>
59 </div>
60 </td>
61 <td>
62 </td>
63 <td>
64 <div>Enables/Disables route-target settings for both import and export target communities using a single property.</div>
65 </td>
66 </tr>
67 <tr>
68 <td colspan="1">
69 <div class="ansibleOptionAnchor" id="parameter-"></div>
70 <b>route_target_export</b>
71 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
72 <div style="font-size: small">
73 <span style="color: purple">list</span>
74 / <span style="color: purple">elements=string</span>
75 </div>
76 </td>
77 <td>
78 </td>
79 <td>
80 <div>Sets the route-target &#x27;export&#x27; extended communities.</div>
81 </td>
82 </tr>
83 <tr>
84 <td colspan="1">
85 <div class="ansibleOptionAnchor" id="parameter-"></div>
86 <b>route_target_import</b>
87 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
88 <div style="font-size: small">
89 <span style="color: purple">list</span>
90 / <span style="color: purple">elements=string</span>
91 </div>
92 </td>
93 <td>
94 </td>
95 <td>
96 <div>Sets the route-target &#x27;import&#x27; extended communities.</div>
97 </td>
98 </tr>
99 <tr>
100 <td colspan="1">
101 <div class="ansibleOptionAnchor" id="parameter-"></div>
102 <b>state</b>
103 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
104 <div style="font-size: small">
105 <span style="color: purple">string</span>
106 </div>
107 </td>
108 <td>
109 <ul style="margin: 0; padding: 0"><b>Choices:</b>
110 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
111 <li>absent</li>
112 </ul>
113 </td>
114 <td>
115 <div>Determines whether the config should be present or not on the device.</div>
116 </td>
117 </tr>
118 <tr>
119 <td colspan="1">
120 <div class="ansibleOptionAnchor" id="parameter-"></div>
121 <b>vni</b>
122 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
123 <div style="font-size: small">
124 <span style="color: purple">string</span>
125 / <span style="color: red">required</span>
126 </div>
127 </td>
128 <td>
129 </td>
130 <td>
131 <div>The EVPN VXLAN Network Identifier.</div>
132 </td>
133 </tr>
134 </table>
135 <br/>
136
137
138 Notes
139 -----
140
141 .. note::
142 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
143 - Unsupported for Cisco MDS
144 - default, where supported, restores params default value.
145 - RD override is not permitted. You should set it to the default values first and then reconfigure it.
146 - ``route_target_both``, ``route_target_import`` and ``route_target_export valid`` values are a list of extended communities, (i.e. ['1.2.3.4:5', '33:55']) or the keywords 'auto' or 'default'.
147 - The ``route_target_both`` property is discouraged due to the inconsistent behavior of the property across Nexus platforms and image versions. For this reason it is recommended to use explicit ``route_target_export`` and ``route_target_import`` properties instead of ``route_target_both``.
148 - RD valid values are a string in one of the route-distinguisher formats, the keyword 'auto', or the keyword 'default'.
149 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
150 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
151 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
152
153
154
155 Examples
156 --------
157
158 .. code-block:: yaml
159
160 - name: vni configuration
161 cisco.nxos.nxos_evpn_vni:
162 vni: 6000
163 route_distinguisher: 60:10
164 route_target_import:
165 - "5000:10"
166 - "4100:100"
167 route_target_export: auto
168 route_target_both: default
169
170
171
172 Return Values
173 -------------
174 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:
175
176 .. raw:: html
177
178 <table border=0 cellpadding=0 class="documentation-table">
179 <tr>
180 <th colspan="1">Key</th>
181 <th>Returned</th>
182 <th width="100%">Description</th>
183 </tr>
184 <tr>
185 <td colspan="1">
186 <div class="ansibleOptionAnchor" id="return-"></div>
187 <b>commands</b>
188 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
189 <div style="font-size: small">
190 <span style="color: purple">list</span>
191 </div>
192 </td>
193 <td>always</td>
194 <td>
195 <div>commands sent to the device</div>
196 <br/>
197 <div style="font-size: smaller"><b>Sample:</b></div>
198 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;evpn&#x27;, &#x27;vni 6000 l2&#x27;, &#x27;route-target import 5001:10&#x27;]</div>
199 </td>
200 </tr>
201 </table>
202 <br/><br/>
203
204
205 Status
206 ------
207
208
209 Authors
210 ~~~~~~~
211
212 - Gabriele Gerbino (@GGabriele)