Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vrf_interface_module.rst

raw
1 .. _cisco.nxos.nxos_vrf_interface_module:
2
3
4 *****************************
5 cisco.nxos.nxos_vrf_interface
6 *****************************
7
8 **(deprecated, removed after 2028-06-01) Manages interface specific VRF 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 specific VRF 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>interface</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 </td>
48 <td>
49 <div>Full name of interface to be managed, i.e. Ethernet1/1.</div>
50 </td>
51 </tr>
52 <tr>
53 <td colspan="1">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>state</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">string</span>
59 </div>
60 </td>
61 <td>
62 <ul style="margin: 0; padding: 0"><b>Choices:</b>
63 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
64 <li>absent</li>
65 </ul>
66 </td>
67 <td>
68 <div>Manages desired state of the resource.</div>
69 </td>
70 </tr>
71 <tr>
72 <td colspan="1">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>vrf</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 / <span style="color: red">required</span>
79 </div>
80 </td>
81 <td>
82 </td>
83 <td>
84 <div>Name of VRF to be managed.</div>
85 </td>
86 </tr>
87 </table>
88 <br/>
89
90
91 Notes
92 -----
93
94 .. note::
95 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
96 - Unsupported for Cisco MDS
97 - VRF needs to be added globally with :ref:`cisco.nxos.nxos_vrf <cisco.nxos.nxos_vrf_module>` before adding a VRF to an interface.
98 - Remove a VRF from an interface will still remove all L3 attributes just as it does from CLI.
99 - VRF is not read from an interface until IP address is configured on that interface.
100 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
101 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
102 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
103
104
105
106 Examples
107 --------
108
109 .. code-block:: yaml
110
111 - name: Ensure vrf ntc exists on Eth1/1
112 cisco.nxos.nxos_vrf_interface:
113 vrf: ntc
114 interface: Ethernet1/1
115 state: present
116
117 - name: Ensure ntc VRF does not exist on Eth1/1
118 cisco.nxos.nxos_vrf_interface:
119 vrf: ntc
120 interface: Ethernet1/1
121 state: absent
122
123
124
125 Return Values
126 -------------
127 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:
128
129 .. raw:: html
130
131 <table border=0 cellpadding=0 class="documentation-table">
132 <tr>
133 <th colspan="1">Key</th>
134 <th>Returned</th>
135 <th width="100%">Description</th>
136 </tr>
137 <tr>
138 <td colspan="1">
139 <div class="ansibleOptionAnchor" id="return-"></div>
140 <b>commands</b>
141 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
142 <div style="font-size: small">
143 <span style="color: purple">list</span>
144 </div>
145 </td>
146 <td>always</td>
147 <td>
148 <div>commands sent to the device</div>
149 <br/>
150 <div style="font-size: smaller"><b>Sample:</b></div>
151 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface loopback16&#x27;, &#x27;vrf member ntc&#x27;]</div>
152 </td>
153 </tr>
154 </table>
155 <br/><br/>
156
157
158 Status
159 ------
160
161
162 Authors
163 ~~~~~~~
164
165 - Jason Edelman (@jedelman8)
166 - Gabriele Gerbino (@GGabriele)