Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vrf_af_module.rst

raw
1 .. _cisco.nxos.nxos_vrf_af_module:
2
3
4 **********************
5 cisco.nxos.nxos_vrf_af
6 **********************
7
8 **Manages VRF AF.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages VRF AF
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="2">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="2">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>afi</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 / <span style="color: red">required</span>
44 </div>
45 </td>
46 <td>
47 <ul style="margin: 0; padding: 0"><b>Choices:</b>
48 <li>ipv4</li>
49 <li>ipv6</li>
50 </ul>
51 </td>
52 <td>
53 <div>Address-Family Identifier (AFI).</div>
54 </td>
55 </tr>
56 <tr>
57 <td colspan="2">
58 <div class="ansibleOptionAnchor" id="parameter-"></div>
59 <b>route_target_both_auto_evpn</b>
60 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
61 <div style="font-size: small">
62 <span style="color: purple">boolean</span>
63 </div>
64 </td>
65 <td>
66 <ul style="margin: 0; padding: 0"><b>Choices:</b>
67 <li>no</li>
68 <li>yes</li>
69 </ul>
70 </td>
71 <td>
72 <div>Enable/Disable the EVPN route-target &#x27;auto&#x27; setting for both import and export target communities.</div>
73 </td>
74 </tr>
75 <tr>
76 <td colspan="2">
77 <div class="ansibleOptionAnchor" id="parameter-"></div>
78 <b>route_targets</b>
79 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
80 <div style="font-size: small">
81 <span style="color: purple">list</span>
82 / <span style="color: purple">elements=dictionary</span>
83 </div>
84 </td>
85 <td>
86 </td>
87 <td>
88 <div>Specify the route-targets which should be imported and/or exported under the AF. This argument accepts a list of dicts that specify the route-target, the direction (import|export|both) and state of each route-target. Default direction is <code>direction=both</code>. See examples.</div>
89 </td>
90 </tr>
91 <tr>
92 <td class="elbow-placeholder"></td>
93 <td colspan="1">
94 <div class="ansibleOptionAnchor" id="parameter-"></div>
95 <b>direction</b>
96 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
97 <div style="font-size: small">
98 <span style="color: purple">string</span>
99 </div>
100 </td>
101 <td>
102 <ul style="margin: 0; padding: 0"><b>Choices:</b>
103 <li>import</li>
104 <li>export</li>
105 <li><div style="color: blue"><b>both</b>&nbsp;&larr;</div></li>
106 </ul>
107 </td>
108 <td>
109 <div>Indicates the direction of the route-target (import|export|both)</div>
110 </td>
111 </tr>
112 <tr>
113 <td class="elbow-placeholder"></td>
114 <td colspan="1">
115 <div class="ansibleOptionAnchor" id="parameter-"></div>
116 <b>rt</b>
117 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
118 <div style="font-size: small">
119 <span style="color: purple">string</span>
120 / <span style="color: red">required</span>
121 </div>
122 </td>
123 <td>
124 </td>
125 <td>
126 <div>Defines the route-target itself</div>
127 </td>
128 </tr>
129 <tr>
130 <td class="elbow-placeholder"></td>
131 <td colspan="1">
132 <div class="ansibleOptionAnchor" id="parameter-"></div>
133 <b>state</b>
134 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
135 <div style="font-size: small">
136 <span style="color: purple">string</span>
137 </div>
138 </td>
139 <td>
140 <ul style="margin: 0; padding: 0"><b>Choices:</b>
141 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
142 <li>absent</li>
143 </ul>
144 </td>
145 <td>
146 <div>Determines whether the route-target with the given direction should be present or not on the device.</div>
147 </td>
148 </tr>
149
150 <tr>
151 <td colspan="2">
152 <div class="ansibleOptionAnchor" id="parameter-"></div>
153 <b>state</b>
154 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
155 <div style="font-size: small">
156 <span style="color: purple">string</span>
157 </div>
158 </td>
159 <td>
160 <ul style="margin: 0; padding: 0"><b>Choices:</b>
161 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
162 <li>absent</li>
163 </ul>
164 </td>
165 <td>
166 <div>Determines whether the config should be present or not on the device.</div>
167 </td>
168 </tr>
169 <tr>
170 <td colspan="2">
171 <div class="ansibleOptionAnchor" id="parameter-"></div>
172 <b>vrf</b>
173 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
174 <div style="font-size: small">
175 <span style="color: purple">string</span>
176 / <span style="color: red">required</span>
177 </div>
178 </td>
179 <td>
180 </td>
181 <td>
182 <div>Name of the VRF.</div>
183 </td>
184 </tr>
185 </table>
186 <br/>
187
188
189 Notes
190 -----
191
192 .. note::
193 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
194 - Unsupported for Cisco MDS
195 - Default, where supported, restores params default value.
196 - In case of ``state=absent`` the address-family configuration will be absent. Therefore the options ``route_target_both_auto_evpn`` and ``route_targets`` are ignored.
197 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
198 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
199 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
200
201
202
203 Examples
204 --------
205
206 .. code-block:: yaml
207
208 - cisco.nxos.nxos_vrf_af:
209 vrf: ntc
210 afi: ipv4
211 route_target_both_auto_evpn: true
212 state: present
213 - cisco.nxos.nxos_vrf_af:
214 vrf: ntc
215 afi: ipv4
216 route_targets:
217 - rt: '65000:1000'
218 direction: import
219 - rt: '65001:1000'
220 direction: import
221 - cisco.nxos.nxos_vrf_af:
222 vrf: ntc
223 afi: ipv4
224 route_targets:
225 - rt: '65000:1000'
226 direction: import
227 - rt: '65001:1000'
228 state: absent
229 - cisco.nxos.nxos_vrf_af:
230 vrf: ntc
231 afi: ipv4
232 route_targets:
233 - rt: '65000:1000'
234 direction: export
235 - rt: '65001:1000'
236 direction: export
237 - cisco.nxos.nxos_vrf_af:
238 vrf: ntc
239 afi: ipv4
240 route_targets:
241 - rt: '65000:1000'
242 direction: export
243 state: absent
244 - cisco.nxos.nxos_vrf_af:
245 vrf: ntc
246 afi: ipv4
247 route_targets:
248 - rt: '65000:1000'
249 direction: both
250 state: present
251 - rt: '65001:1000'
252 direction: import
253 state: present
254 - rt: '65002:1000'
255 direction: both
256 state: absent
257
258
259
260 Return Values
261 -------------
262 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:
263
264 .. raw:: html
265
266 <table border=0 cellpadding=0 class="documentation-table">
267 <tr>
268 <th colspan="1">Key</th>
269 <th>Returned</th>
270 <th width="100%">Description</th>
271 </tr>
272 <tr>
273 <td colspan="1">
274 <div class="ansibleOptionAnchor" id="return-"></div>
275 <b>commands</b>
276 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
277 <div style="font-size: small">
278 <span style="color: purple">list</span>
279 </div>
280 </td>
281 <td>always</td>
282 <td>
283 <div>commands sent to the device</div>
284 <br/>
285 <div style="font-size: smaller"><b>Sample:</b></div>
286 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;vrf context ntc&#x27;, &#x27;address-family ipv4 unicast&#x27;]</div>
287 </td>
288 </tr>
289 </table>
290 <br/><br/>
291
292
293 Status
294 ------
295
296
297 Authors
298 ~~~~~~~
299
300 - Gabriele Gerbino (@GGabriele)