| 1 |
.. _dellemc.enterprise_sonic.sonic_ospfv2_interfaces_module: |
| 2 |
|
| 3 |
|
| 4 |
************************************************ |
| 5 |
dellemc.enterprise_sonic.sonic_ospfv2_interfaces |
| 6 |
************************************************ |
| 7 |
|
| 8 |
**Configure OSPFv2 interface mode protocol settings on SONiC.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 2.5.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides configuration management of OSPFv2 interface mode parameters on devices running SONiC. |
| 21 |
- Configure VRF instance before configuring OSPF in a VRF. |
| 22 |
- Configure OSPF instance before configuring OSPF in interfaces. |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
Parameters |
| 28 |
---------- |
| 29 |
|
| 30 |
.. raw:: html |
| 31 |
|
| 32 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 33 |
<tr> |
| 34 |
<th colspan="4">Parameter</th> |
| 35 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 36 |
<th width="100%">Comments</th> |
| 37 |
</tr> |
| 38 |
<tr> |
| 39 |
<td colspan="4"> |
| 40 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 41 |
<b>config</b> |
| 42 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 43 |
<div style="font-size: small"> |
| 44 |
<span style="color: purple">list</span> |
| 45 |
/ <span style="color: purple">elements=dictionary</span> |
| 46 |
</div> |
| 47 |
</td> |
| 48 |
<td> |
| 49 |
</td> |
| 50 |
<td> |
| 51 |
<div>Specifies the OSPFv2 interface configurations.</div> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
<tr> |
| 55 |
<td class="elbow-placeholder"></td> |
| 56 |
<td colspan="3"> |
| 57 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 58 |
<b>bfd</b> |
| 59 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 60 |
<div style="font-size: small"> |
| 61 |
<span style="color: purple">dictionary</span> |
| 62 |
</div> |
| 63 |
</td> |
| 64 |
<td> |
| 65 |
</td> |
| 66 |
<td> |
| 67 |
<div>Configure OSPFv2 interface BFD.</div> |
| 68 |
</td> |
| 69 |
</tr> |
| 70 |
<tr> |
| 71 |
<td class="elbow-placeholder"></td> |
| 72 |
<td class="elbow-placeholder"></td> |
| 73 |
<td colspan="2"> |
| 74 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 75 |
<b>bfd_profile</b> |
| 76 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 77 |
<div style="font-size: small"> |
| 78 |
<span style="color: purple">string</span> |
| 79 |
</div> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
</td> |
| 83 |
<td> |
| 84 |
<div>Configure BFD profile.</div> |
| 85 |
</td> |
| 86 |
</tr> |
| 87 |
<tr> |
| 88 |
<td class="elbow-placeholder"></td> |
| 89 |
<td class="elbow-placeholder"></td> |
| 90 |
<td colspan="2"> |
| 91 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 92 |
<b>enable</b> |
| 93 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 94 |
<div style="font-size: small"> |
| 95 |
<span style="color: purple">boolean</span> |
| 96 |
/ <span style="color: red">required</span> |
| 97 |
</div> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 101 |
<li>no</li> |
| 102 |
<li>yes</li> |
| 103 |
</ul> |
| 104 |
</td> |
| 105 |
<td> |
| 106 |
<div>Enable BFD support for OSPFv2.</div> |
| 107 |
</td> |
| 108 |
</tr> |
| 109 |
|
| 110 |
<tr> |
| 111 |
<td class="elbow-placeholder"></td> |
| 112 |
<td colspan="3"> |
| 113 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 114 |
<b>name</b> |
| 115 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 116 |
<div style="font-size: small"> |
| 117 |
<span style="color: purple">string</span> |
| 118 |
/ <span style="color: red">required</span> |
| 119 |
</div> |
| 120 |
</td> |
| 121 |
<td> |
| 122 |
</td> |
| 123 |
<td> |
| 124 |
<div>Full name of the interface, i.e. Ethernet1.</div> |
| 125 |
</td> |
| 126 |
</tr> |
| 127 |
<tr> |
| 128 |
<td class="elbow-placeholder"></td> |
| 129 |
<td colspan="3"> |
| 130 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 131 |
<b>network</b> |
| 132 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 133 |
<div style="font-size: small"> |
| 134 |
<span style="color: purple">string</span> |
| 135 |
</div> |
| 136 |
</td> |
| 137 |
<td> |
| 138 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 139 |
<li>broadcast</li> |
| 140 |
<li>point_to_point</li> |
| 141 |
</ul> |
| 142 |
</td> |
| 143 |
<td> |
| 144 |
<div>Configure OSPFv2 interface network type</div> |
| 145 |
</td> |
| 146 |
</tr> |
| 147 |
<tr> |
| 148 |
<td class="elbow-placeholder"></td> |
| 149 |
<td colspan="3"> |
| 150 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 151 |
<b>ospf_attributes</b> |
| 152 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 153 |
<div style="font-size: small"> |
| 154 |
<span style="color: purple">list</span> |
| 155 |
/ <span style="color: purple">elements=dictionary</span> |
| 156 |
</div> |
| 157 |
</td> |
| 158 |
<td> |
| 159 |
</td> |
| 160 |
<td> |
| 161 |
<div>Specifies OSPFv2 configurations for the interface.</div> |
| 162 |
<div>If <em>address</em> is not specified, the IPv4 address of the interface is considered.</div> |
| 163 |
<div><em>dead_interval</em> and <em>hello_multiplier</em> are mutually exclusive.</div> |
| 164 |
</td> |
| 165 |
</tr> |
| 166 |
<tr> |
| 167 |
<td class="elbow-placeholder"></td> |
| 168 |
<td class="elbow-placeholder"></td> |
| 169 |
<td colspan="2"> |
| 170 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 171 |
<b>address</b> |
| 172 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 173 |
<div style="font-size: small"> |
| 174 |
<span style="color: purple">string</span> |
| 175 |
</div> |
| 176 |
</td> |
| 177 |
<td> |
| 178 |
</td> |
| 179 |
<td> |
| 180 |
<div>Specifies the interface IPv4 address.</div> |
| 181 |
</td> |
| 182 |
</tr> |
| 183 |
<tr> |
| 184 |
<td class="elbow-placeholder"></td> |
| 185 |
<td class="elbow-placeholder"></td> |
| 186 |
<td colspan="2"> |
| 187 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 188 |
<b>area_id</b> |
| 189 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 190 |
<div style="font-size: small"> |
| 191 |
<span style="color: purple">string</span> |
| 192 |
</div> |
| 193 |
</td> |
| 194 |
<td> |
| 195 |
</td> |
| 196 |
<td> |
| 197 |
<div>OSPFv2 Area ID of the network (A.B.C.D or 0 to 4294967295).</div> |
| 198 |
</td> |
| 199 |
</tr> |
| 200 |
<tr> |
| 201 |
<td class="elbow-placeholder"></td> |
| 202 |
<td class="elbow-placeholder"></td> |
| 203 |
<td colspan="2"> |
| 204 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 205 |
<b>authentication</b> |
| 206 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 207 |
<div style="font-size: small"> |
| 208 |
<span style="color: purple">dictionary</span> |
| 209 |
</div> |
| 210 |
</td> |
| 211 |
<td> |
| 212 |
</td> |
| 213 |
<td> |
| 214 |
<div>Configure OSPFv2 plain text authentication type password.</div> |
| 215 |
<div>Authentication key shall be max 8 charater long.</div> |
| 216 |
</td> |
| 217 |
</tr> |
| 218 |
<tr> |
| 219 |
<td class="elbow-placeholder"></td> |
| 220 |
<td class="elbow-placeholder"></td> |
| 221 |
<td class="elbow-placeholder"></td> |
| 222 |
<td colspan="1"> |
| 223 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 224 |
<b>encrypted</b> |
| 225 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 226 |
<div style="font-size: small"> |
| 227 |
<span style="color: purple">boolean</span> |
| 228 |
</div> |
| 229 |
</td> |
| 230 |
<td> |
| 231 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 232 |
<li>no</li> |
| 233 |
<li>yes</li> |
| 234 |
</ul> |
| 235 |
</td> |
| 236 |
<td> |
| 237 |
<div>Indicates whether the password is in encrypted format.</div> |
| 238 |
</td> |
| 239 |
</tr> |
| 240 |
<tr> |
| 241 |
<td class="elbow-placeholder"></td> |
| 242 |
<td class="elbow-placeholder"></td> |
| 243 |
<td class="elbow-placeholder"></td> |
| 244 |
<td colspan="1"> |
| 245 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 246 |
<b>password</b> |
| 247 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 248 |
<div style="font-size: small"> |
| 249 |
<span style="color: purple">string</span> |
| 250 |
/ <span style="color: red">required</span> |
| 251 |
</div> |
| 252 |
</td> |
| 253 |
<td> |
| 254 |
</td> |
| 255 |
<td> |
| 256 |
<div>Specifies the authentication password.</div> |
| 257 |
<div>Plain text password i.e. password with <em>encrypted=false</em> will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be <em>changed=true</em>.</div> |
| 258 |
</td> |
| 259 |
</tr> |
| 260 |
|
| 261 |
<tr> |
| 262 |
<td class="elbow-placeholder"></td> |
| 263 |
<td class="elbow-placeholder"></td> |
| 264 |
<td colspan="2"> |
| 265 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 266 |
<b>authentication_type</b> |
| 267 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 268 |
<div style="font-size: small"> |
| 269 |
<span style="color: purple">string</span> |
| 270 |
</div> |
| 271 |
</td> |
| 272 |
<td> |
| 273 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 274 |
<li>MD5HMAC</li> |
| 275 |
<li>NONE</li> |
| 276 |
<li>TEXT</li> |
| 277 |
</ul> |
| 278 |
</td> |
| 279 |
<td> |
| 280 |
<div>Enable OSPFv2 authentication and its type.</div> |
| 281 |
<div><code>MD5HMAC</code> - Enable Message digest authentication type.</div> |
| 282 |
<div><code>NONE</code> - Enable null authentication.</div> |
| 283 |
<div><code>TEXT</code> - Enable plain text authentication.</div> |
| 284 |
</td> |
| 285 |
</tr> |
| 286 |
<tr> |
| 287 |
<td class="elbow-placeholder"></td> |
| 288 |
<td class="elbow-placeholder"></td> |
| 289 |
<td colspan="2"> |
| 290 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 291 |
<b>cost</b> |
| 292 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 293 |
<div style="font-size: small"> |
| 294 |
<span style="color: purple">integer</span> |
| 295 |
</div> |
| 296 |
</td> |
| 297 |
<td> |
| 298 |
</td> |
| 299 |
<td> |
| 300 |
<div>Configure OSPFv2 interface cost (1 to 65535).</div> |
| 301 |
</td> |
| 302 |
</tr> |
| 303 |
<tr> |
| 304 |
<td class="elbow-placeholder"></td> |
| 305 |
<td class="elbow-placeholder"></td> |
| 306 |
<td colspan="2"> |
| 307 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 308 |
<b>dead_interval</b> |
| 309 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 310 |
<div style="font-size: small"> |
| 311 |
<span style="color: purple">integer</span> |
| 312 |
</div> |
| 313 |
</td> |
| 314 |
<td> |
| 315 |
</td> |
| 316 |
<td> |
| 317 |
<div>Configure OSPFv2 adjacency dead interval (1 to 65535).</div> |
| 318 |
</td> |
| 319 |
</tr> |
| 320 |
<tr> |
| 321 |
<td class="elbow-placeholder"></td> |
| 322 |
<td class="elbow-placeholder"></td> |
| 323 |
<td colspan="2"> |
| 324 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 325 |
<b>hello_interval</b> |
| 326 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 327 |
<div style="font-size: small"> |
| 328 |
<span style="color: purple">integer</span> |
| 329 |
</div> |
| 330 |
</td> |
| 331 |
<td> |
| 332 |
</td> |
| 333 |
<td> |
| 334 |
<div>Configure OSPFv2 neighbour hello interval (1 to 65535).</div> |
| 335 |
</td> |
| 336 |
</tr> |
| 337 |
<tr> |
| 338 |
<td class="elbow-placeholder"></td> |
| 339 |
<td class="elbow-placeholder"></td> |
| 340 |
<td colspan="2"> |
| 341 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 342 |
<b>hello_multiplier</b> |
| 343 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 344 |
<div style="font-size: small"> |
| 345 |
<span style="color: purple">integer</span> |
| 346 |
</div> |
| 347 |
</td> |
| 348 |
<td> |
| 349 |
</td> |
| 350 |
<td> |
| 351 |
<div>Minimal 1s dead-interval with fast sub-second hellos.</div> |
| 352 |
<div>Number of Hellos to send each second (1 to 10).</div> |
| 353 |
</td> |
| 354 |
</tr> |
| 355 |
<tr> |
| 356 |
<td class="elbow-placeholder"></td> |
| 357 |
<td class="elbow-placeholder"></td> |
| 358 |
<td colspan="2"> |
| 359 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 360 |
<b>md_authentication</b> |
| 361 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 362 |
<div style="font-size: small"> |
| 363 |
<span style="color: purple">list</span> |
| 364 |
/ <span style="color: purple">elements=dictionary</span> |
| 365 |
</div> |
| 366 |
</td> |
| 367 |
<td> |
| 368 |
</td> |
| 369 |
<td> |
| 370 |
<div>Configure OSPFv2 message digest keys and password.</div> |
| 371 |
<div>Uses MD5 algorithm.</div> |
| 372 |
</td> |
| 373 |
</tr> |
| 374 |
<tr> |
| 375 |
<td class="elbow-placeholder"></td> |
| 376 |
<td class="elbow-placeholder"></td> |
| 377 |
<td class="elbow-placeholder"></td> |
| 378 |
<td colspan="1"> |
| 379 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 380 |
<b>encrypted</b> |
| 381 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 382 |
<div style="font-size: small"> |
| 383 |
<span style="color: purple">boolean</span> |
| 384 |
</div> |
| 385 |
</td> |
| 386 |
<td> |
| 387 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 388 |
<li>no</li> |
| 389 |
<li>yes</li> |
| 390 |
</ul> |
| 391 |
</td> |
| 392 |
<td> |
| 393 |
<div>Indicates whether the password is in encrypted format.</div> |
| 394 |
</td> |
| 395 |
</tr> |
| 396 |
<tr> |
| 397 |
<td class="elbow-placeholder"></td> |
| 398 |
<td class="elbow-placeholder"></td> |
| 399 |
<td class="elbow-placeholder"></td> |
| 400 |
<td colspan="1"> |
| 401 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 402 |
<b>key_id</b> |
| 403 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 404 |
<div style="font-size: small"> |
| 405 |
<span style="color: purple">integer</span> |
| 406 |
/ <span style="color: red">required</span> |
| 407 |
</div> |
| 408 |
</td> |
| 409 |
<td> |
| 410 |
</td> |
| 411 |
<td> |
| 412 |
<div>Specifies the OSPFv2 message digest key ID (1 to 255).</div> |
| 413 |
</td> |
| 414 |
</tr> |
| 415 |
<tr> |
| 416 |
<td class="elbow-placeholder"></td> |
| 417 |
<td class="elbow-placeholder"></td> |
| 418 |
<td class="elbow-placeholder"></td> |
| 419 |
<td colspan="1"> |
| 420 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 421 |
<b>md5key</b> |
| 422 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 423 |
<div style="font-size: small"> |
| 424 |
<span style="color: purple">string</span> |
| 425 |
</div> |
| 426 |
</td> |
| 427 |
<td> |
| 428 |
</td> |
| 429 |
<td> |
| 430 |
<div>Specifies the OSPFv2 message digest password.</div> |
| 431 |
<div>Plain text password i.e. password with <em>encrypted=false</em> will be stored in encrypted format in running-config, so idempotency will not be maintained and hence the task output will always be <em>changed=true</em>.</div> |
| 432 |
</td> |
| 433 |
</tr> |
| 434 |
|
| 435 |
<tr> |
| 436 |
<td class="elbow-placeholder"></td> |
| 437 |
<td class="elbow-placeholder"></td> |
| 438 |
<td colspan="2"> |
| 439 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 440 |
<b>mtu_ignore</b> |
| 441 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 442 |
<div style="font-size: small"> |
| 443 |
<span style="color: purple">boolean</span> |
| 444 |
</div> |
| 445 |
</td> |
| 446 |
<td> |
| 447 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 448 |
<li>no</li> |
| 449 |
<li>yes</li> |
| 450 |
</ul> |
| 451 |
</td> |
| 452 |
<td> |
| 453 |
<div>Disable OSPFv2 MTU mismatch detection.</div> |
| 454 |
</td> |
| 455 |
</tr> |
| 456 |
<tr> |
| 457 |
<td class="elbow-placeholder"></td> |
| 458 |
<td class="elbow-placeholder"></td> |
| 459 |
<td colspan="2"> |
| 460 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 461 |
<b>priority</b> |
| 462 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 463 |
<div style="font-size: small"> |
| 464 |
<span style="color: purple">integer</span> |
| 465 |
</div> |
| 466 |
</td> |
| 467 |
<td> |
| 468 |
</td> |
| 469 |
<td> |
| 470 |
<div>Configure OSPFv2 adjacency router priority (0 to 255).</div> |
| 471 |
</td> |
| 472 |
</tr> |
| 473 |
<tr> |
| 474 |
<td class="elbow-placeholder"></td> |
| 475 |
<td class="elbow-placeholder"></td> |
| 476 |
<td colspan="2"> |
| 477 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 478 |
<b>retransmit_interval</b> |
| 479 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 480 |
<div style="font-size: small"> |
| 481 |
<span style="color: purple">integer</span> |
| 482 |
</div> |
| 483 |
</td> |
| 484 |
<td> |
| 485 |
</td> |
| 486 |
<td> |
| 487 |
<div>Configure OSPFv2 retransmit interval (2 to 65535).</div> |
| 488 |
</td> |
| 489 |
</tr> |
| 490 |
<tr> |
| 491 |
<td class="elbow-placeholder"></td> |
| 492 |
<td class="elbow-placeholder"></td> |
| 493 |
<td colspan="2"> |
| 494 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 495 |
<b>transmit_delay</b> |
| 496 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 497 |
<div style="font-size: small"> |
| 498 |
<span style="color: purple">integer</span> |
| 499 |
</div> |
| 500 |
</td> |
| 501 |
<td> |
| 502 |
</td> |
| 503 |
<td> |
| 504 |
<div>Configure OSPFv2 transmit delay (1 to 65535).</div> |
| 505 |
</td> |
| 506 |
</tr> |
| 507 |
|
| 508 |
|
| 509 |
<tr> |
| 510 |
<td colspan="4"> |
| 511 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 512 |
<b>state</b> |
| 513 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 514 |
<div style="font-size: small"> |
| 515 |
<span style="color: purple">string</span> |
| 516 |
</div> |
| 517 |
</td> |
| 518 |
<td> |
| 519 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 520 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 521 |
<li>deleted</li> |
| 522 |
<li>replaced</li> |
| 523 |
<li>overridden</li> |
| 524 |
</ul> |
| 525 |
</td> |
| 526 |
<td> |
| 527 |
<div>Specifies the operation to be performed on the OSPFv2 interfaces configured on the device.</div> |
| 528 |
<div>In case of merged, the input configuration will be merged with the existing OSPFv2 interfaces configuration on the device.</div> |
| 529 |
<div>In case of deleted, the existing OSPFv2 interfaces configuration will be removed from the device.</div> |
| 530 |
<div>In case of overridden, all the existing OSPFv2 interfaces configuration will be deleted and the specified input configuration will be installed.</div> |
| 531 |
<div>In case of replaced, the existing OSPFv2 interface configuration on the device will be replaced by the configuration in the playbook for each interface group configured by the playbook.</div> |
| 532 |
</td> |
| 533 |
</tr> |
| 534 |
</table> |
| 535 |
<br/> |
| 536 |
|
| 537 |
|
| 538 |
Notes |
| 539 |
----- |
| 540 |
|
| 541 |
.. note:: |
| 542 |
- Supports ``check_mode``. |
| 543 |
|
| 544 |
|
| 545 |
|
| 546 |
Examples |
| 547 |
-------- |
| 548 |
|
| 549 |
.. code-block:: yaml |
| 550 |
|
| 551 |
# Using "deleted" state |
| 552 |
|
| 553 |
# Before state: |
| 554 |
# ------------- |
| 555 |
# |
| 556 |
# sonic# show running-configuration interface |
| 557 |
# ! |
| 558 |
# interface Eth1/1 |
| 559 |
# ip ospf area 2.2.2.2 |
| 560 |
# ip ospf bfd |
| 561 |
# ip ospf bfd profile profile2 |
| 562 |
# ip ospf cost 30 |
| 563 |
# ip ospf dead-interval 40 |
| 564 |
# ip ospf hello-interval 10 |
| 565 |
# ip ospf mtu-ignore |
| 566 |
# ip ospf network point-to-point |
| 567 |
# ip ospf priority 20 |
| 568 |
# ip ospf authentication null 10.10.120.1 |
| 569 |
# ip ospf authentication-key U2FsdGVkX1/Ml24vwe6RSjUUqI+54BdDyDL0eKUezJw= encrypted 10.10.120.1 |
| 570 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 571 |
# ip ospf authentication null 10.19.119.1 |
| 572 |
# ip ospf message-digest-key 10 md5 U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ= encrypted 10.19.119.1 |
| 573 |
# ! |
| 574 |
# interface Eth1/2 |
| 575 |
# ip ospf bfd |
| 576 |
# ip ospf network point-to-point |
| 577 |
# ! |
| 578 |
# interface Eth1/3 |
| 579 |
# ip ospf bfd |
| 580 |
# ip ospf network point-to-point |
| 581 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 582 |
# ip ospf authentication message-digest 10.19.120.2 |
| 583 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 584 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 585 |
# ! |
| 586 |
# sonic# |
| 587 |
|
| 588 |
- name: Delete the OSPFv2_interface configurations |
| 589 |
sonic_ospfv2_interfaces: |
| 590 |
config: |
| 591 |
- name: 'Eth1/1' |
| 592 |
ospf_attributes: |
| 593 |
- area_id: '2.2.2.2' |
| 594 |
cost: 30 |
| 595 |
priority: 20 |
| 596 |
hello_interval: 10 |
| 597 |
dead_interval: 40 |
| 598 |
mtu_ignore: true |
| 599 |
- address: '10.10.120.1' |
| 600 |
authentication_type: 'NONE' |
| 601 |
authentication: |
| 602 |
password: 'pass2' |
| 603 |
- address: '10.19.119.1' |
| 604 |
bfd: |
| 605 |
enable: true |
| 606 |
bfd_profile: 'profile2' |
| 607 |
network: point_to_point |
| 608 |
- name: 'Eth1/2' |
| 609 |
bfd: |
| 610 |
enable: true |
| 611 |
- name: 'Eth1/3' |
| 612 |
state: deleted |
| 613 |
|
| 614 |
# After state: |
| 615 |
# ------------ |
| 616 |
# |
| 617 |
# sonic# show running-configuration interface |
| 618 |
# ! |
| 619 |
# interface Eth1/1 |
| 620 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 621 |
# ! |
| 622 |
# interface Eth1/2 |
| 623 |
# ip ospf network point-to-point |
| 624 |
# ! |
| 625 |
# interface Eth1/3 |
| 626 |
# ! |
| 627 |
# sonic# |
| 628 |
|
| 629 |
|
| 630 |
# Using "deleted" state |
| 631 |
|
| 632 |
# Before state: |
| 633 |
# ------------- |
| 634 |
# |
| 635 |
# sonic# show running-configuration interface |
| 636 |
# ! |
| 637 |
# interface Eth1/1 |
| 638 |
# ip ospf area 2.2.2.2 |
| 639 |
# ip ospf bfd |
| 640 |
# ip ospf bfd profile profile2 |
| 641 |
# ip ospf cost 30 |
| 642 |
# ip ospf dead-interval 40 |
| 643 |
# ip ospf hello-interval 10 |
| 644 |
# ip ospf mtu-ignore |
| 645 |
# ip ospf network point-to-point |
| 646 |
# ip ospf priority 20 |
| 647 |
# ip ospf authentication null 10.10.120.1 |
| 648 |
# ip ospf authentication-key U2FsdGVkX1/Ml24vwe6RSjUUqI+54BdDyDL0eKUezJw= encrypted 10.10.120.1 |
| 649 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 650 |
# ip ospf authentication null 10.19.119.1 |
| 651 |
# ip ospf message-digest-key 10 md5 U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ= encrypted 10.19.119.1 |
| 652 |
# ! |
| 653 |
# interface Eth1/2 |
| 654 |
# ip ospf bfd |
| 655 |
# ip ospf network point-to-point |
| 656 |
# ! |
| 657 |
# interface Eth1/3 |
| 658 |
# ip ospf bfd |
| 659 |
# ip ospf network point-to-point |
| 660 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 661 |
# ip ospf authentication message-digest 10.19.120.2 |
| 662 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 663 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 664 |
# ! |
| 665 |
# sonic# |
| 666 |
|
| 667 |
- name: Delete the OSPFv2_interface configurations |
| 668 |
sonic_ospfv2_interfaces: |
| 669 |
config: |
| 670 |
- name: 'Eth1/1' |
| 671 |
- name: 'Eth1/2' |
| 672 |
bfd: |
| 673 |
enable: true |
| 674 |
- name: 'Eth1/3' |
| 675 |
state: deleted |
| 676 |
|
| 677 |
# After state: |
| 678 |
# ------------ |
| 679 |
# |
| 680 |
# sonic# show running-configuration interface |
| 681 |
# ! |
| 682 |
# interface Eth1/1 |
| 683 |
# ! |
| 684 |
# interface Eth1/2 |
| 685 |
# ip ospf network point-to-point |
| 686 |
# ! |
| 687 |
# interface Eth1/3 |
| 688 |
# ! |
| 689 |
# sonic# |
| 690 |
|
| 691 |
|
| 692 |
# Using "merged" state |
| 693 |
|
| 694 |
# Before state: |
| 695 |
# ------------- |
| 696 |
# |
| 697 |
# sonic# show running-configuration interface |
| 698 |
# ! |
| 699 |
# interface Eth1/1 |
| 700 |
# ! |
| 701 |
# interface Eth1/2 |
| 702 |
# ! |
| 703 |
# interface Eth1/3 |
| 704 |
# ! |
| 705 |
# sonic# |
| 706 |
|
| 707 |
- name: Add the OSPFv2_interface configurations |
| 708 |
sonic_ospfv2_interfaces: |
| 709 |
config: |
| 710 |
- name: 'Eth1/1' |
| 711 |
ospf_attributes: |
| 712 |
- area_id: '2.2.2.2' |
| 713 |
cost: 20 |
| 714 |
priority: 20 |
| 715 |
hello_interval: 10 |
| 716 |
dead_interval: 40 |
| 717 |
mtu_ignore: true |
| 718 |
-address: '10.10.120.1' |
| 719 |
authentication_type: 'MD5HMAC' |
| 720 |
authentication: |
| 721 |
password: 'password' |
| 722 |
hello_multiplier: 5 |
| 723 |
bfd: |
| 724 |
enable: true |
| 725 |
bfd_profile: 'profile1' |
| 726 |
network: broadcast |
| 727 |
- name: 'Eth1/3' |
| 728 |
ospf_attributes: |
| 729 |
- area_id: '3.3.3.3' |
| 730 |
address: '10.19.120.2' |
| 731 |
authentication_type: 'MD5HMAC' |
| 732 |
authentication: |
| 733 |
password: 'password' |
| 734 |
hello_multiplier: 5 |
| 735 |
bfd: |
| 736 |
enable: true |
| 737 |
network: point_to_point |
| 738 |
state: merged |
| 739 |
|
| 740 |
# After state: |
| 741 |
# ------------ |
| 742 |
# |
| 743 |
# sonic# show running-configuration interface |
| 744 |
# ! |
| 745 |
# interface Eth1/1 |
| 746 |
# ip ospf area 2.2.2.2 |
| 747 |
# ip ospf bfd |
| 748 |
# ip ospf bfd profile profile1 |
| 749 |
# ip ospf cost 20 |
| 750 |
# ip ospf dead-interval 40 |
| 751 |
# ip ospf hello-interval 10 |
| 752 |
# ip ospf mtu-ignore |
| 753 |
# ip ospf network broadcast |
| 754 |
# ip ospf priority 20 |
| 755 |
# ip ospf authentication message-digest 10.10.120.1 |
| 756 |
# ip ospf authentication-key U2FsdGVkX1+ozJSEI69XJb2KR9Pu1Sa3Ou6ujTRalbQ= encrypted 10.10.120.1 |
| 757 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 758 |
# ! |
| 759 |
# interface Eth1/2 |
| 760 |
# ! |
| 761 |
# interface Eth1/3 |
| 762 |
# ip ospf bfd |
| 763 |
# ip ospf network point-to-point |
| 764 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 765 |
# ip ospf authentication message-digest 10.19.120.2 |
| 766 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 767 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 768 |
# ! |
| 769 |
# sonic# |
| 770 |
|
| 771 |
|
| 772 |
# Using "merged" state |
| 773 |
|
| 774 |
# Before state: |
| 775 |
# ------------- |
| 776 |
# |
| 777 |
# sonic# show running-configuration interface |
| 778 |
# ! |
| 779 |
# interface Eth1/1 |
| 780 |
# ip ospf area 2.2.2.2 |
| 781 |
# ip ospf bfd |
| 782 |
# ip ospf bfd profile profile1 |
| 783 |
# ip ospf cost 20 |
| 784 |
# ip ospf dead-interval 40 |
| 785 |
# ip ospf hello-interval 10 |
| 786 |
# ip ospf mtu-ignore |
| 787 |
# ip ospf network broadcast |
| 788 |
# ip ospf priority 20 |
| 789 |
# ip ospf authentication message-digest 10.10.120.1 |
| 790 |
# ip ospf authentication-key U2FsdGVkX1+ozJSEI69XJb2KR9Pu1Sa3Ou6ujTRalbQ= encrypted 10.10.120.1 |
| 791 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 792 |
# ! |
| 793 |
# interface Eth1/2 |
| 794 |
# ! |
| 795 |
# interface Eth1/3 |
| 796 |
# ip ospf bfd |
| 797 |
# ip ospf network point-to-point |
| 798 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 799 |
# ip ospf authentication message-digest 10.19.120.2 |
| 800 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 801 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 802 |
# ! |
| 803 |
# sonic# |
| 804 |
|
| 805 |
- name: Add the OSPFv2_interface configurations |
| 806 |
sonic_ospfv2_interfaces: |
| 807 |
config: |
| 808 |
- name: 'Eth1/1' |
| 809 |
ospf_attributes: |
| 810 |
- area_id: '2.2.2.2' |
| 811 |
cost: 30 |
| 812 |
priority: 20 |
| 813 |
hello_interval: 10 |
| 814 |
dead_interval: 40 |
| 815 |
mtu_ignore: true |
| 816 |
- address: '10.10.120.1' |
| 817 |
authentication_type: 'NONE' |
| 818 |
authentication: |
| 819 |
password: 'pass2' |
| 820 |
- address: '10.19.119.1' |
| 821 |
authentication_type: 'NONE' |
| 822 |
md_authentication: |
| 823 |
- key_id: 10 |
| 824 |
md5key: 'U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ=' |
| 825 |
encrypted: true |
| 826 |
bfd: |
| 827 |
enable: true |
| 828 |
bfd_profile: 'profile2' |
| 829 |
network: point_to_point |
| 830 |
- name: 'Eth1/2' |
| 831 |
bfd: |
| 832 |
enable: true |
| 833 |
network: point_to_point |
| 834 |
state: merged |
| 835 |
|
| 836 |
# After state: |
| 837 |
# ------------ |
| 838 |
# |
| 839 |
# sonic# show running-configuration interface |
| 840 |
# ! |
| 841 |
# interface Eth1/1 |
| 842 |
# ip ospf area 2.2.2.2 |
| 843 |
# ip ospf bfd |
| 844 |
# ip ospf bfd profile profile2 |
| 845 |
# ip ospf cost 30 |
| 846 |
# ip ospf dead-interval 40 |
| 847 |
# ip ospf hello-interval 10 |
| 848 |
# ip ospf mtu-ignore |
| 849 |
# ip ospf network point-to-point |
| 850 |
# ip ospf priority 20 |
| 851 |
# ip ospf authentication null 10.10.120.1 |
| 852 |
# ip ospf authentication-key U2FsdGVkX1/Ml24vwe6RSjUUqI+54BdDyDL0eKUezJw= encrypted 10.10.120.1 |
| 853 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 854 |
# ip ospf authentication null 10.19.119.1 |
| 855 |
# ip ospf message-digest-key 10 md5 U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ= encrypted 10.19.119.1 |
| 856 |
# ! |
| 857 |
# interface Eth1/2 |
| 858 |
# ip ospf bfd |
| 859 |
# ip ospf network point-to-point |
| 860 |
# ! |
| 861 |
# interface Eth1/3 |
| 862 |
# ip ospf bfd |
| 863 |
# ip ospf network point-to-point |
| 864 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 865 |
# ip ospf authentication message-digest 10.19.120.2 |
| 866 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 867 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 868 |
# ! |
| 869 |
# sonic# |
| 870 |
|
| 871 |
|
| 872 |
# Using "replaced" state |
| 873 |
|
| 874 |
# Before state: |
| 875 |
# ------------- |
| 876 |
# |
| 877 |
# sonic# show running-configuration interface |
| 878 |
# ! |
| 879 |
# interface Eth1/1 |
| 880 |
# ip ospf area 2.2.2.2 |
| 881 |
# ip ospf bfd |
| 882 |
# ip ospf bfd profile profile1 |
| 883 |
# ip ospf cost 20 |
| 884 |
# ip ospf dead-interval 40 |
| 885 |
# ip ospf hello-interval 10 |
| 886 |
# ip ospf mtu-ignore |
| 887 |
# ip ospf network broadcast |
| 888 |
# ip ospf priority 20 |
| 889 |
# ip ospf authentication message-digest 10.10.120.1 |
| 890 |
# ip ospf authentication-key U2FsdGVkX1+ozJSEI69XJb2KR9Pu1Sa3Ou6ujTRalbQ= encrypted 10.10.120.1 |
| 891 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 892 |
# ! |
| 893 |
# interface Eth1/2 |
| 894 |
# ! |
| 895 |
# interface Eth1/3 |
| 896 |
# ip ospf bfd |
| 897 |
# ip ospf network point-to-point |
| 898 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 899 |
# ip ospf authentication message-digest 10.19.120.2 |
| 900 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 901 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 902 |
# ! |
| 903 |
# sonic# |
| 904 |
|
| 905 |
- name: Replace the OSPFv2_interface configurations |
| 906 |
sonic_ospfv2_interfaces: |
| 907 |
config: |
| 908 |
- name: 'Eth1/3' |
| 909 |
ospf_attributes: |
| 910 |
- area_id: '2.2.2.2' |
| 911 |
cost: 30 |
| 912 |
priority: 20 |
| 913 |
hello_interval: 10 |
| 914 |
dead_interval: 40 |
| 915 |
mtu_ignore: true |
| 916 |
- address: '10.10.120.1' |
| 917 |
authentication_type: 'NONE' |
| 918 |
authentication: |
| 919 |
password: 'pass2' |
| 920 |
- address: '10.19.119.1' |
| 921 |
authentication_type: 'NONE' |
| 922 |
md_authentication: |
| 923 |
- key_id: 10 |
| 924 |
md5key: 'U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ=' |
| 925 |
encrypted: true |
| 926 |
bfd: |
| 927 |
enable: true |
| 928 |
bfd_profile: 'profile2' |
| 929 |
network: broadcast |
| 930 |
state: replaced |
| 931 |
|
| 932 |
# After state: |
| 933 |
# ------------ |
| 934 |
# |
| 935 |
# sonic# show running-configuration interface |
| 936 |
# ! |
| 937 |
# interface Eth1/1 |
| 938 |
# ip ospf area 2.2.2.2 |
| 939 |
# ip ospf bfd |
| 940 |
# ip ospf bfd profile profile1 |
| 941 |
# ip ospf cost 20 |
| 942 |
# ip ospf dead-interval 40 |
| 943 |
# ip ospf hello-interval 10 |
| 944 |
# ip ospf mtu-ignore |
| 945 |
# ip ospf network broadcast |
| 946 |
# ip ospf priority 20 |
| 947 |
# ip ospf authentication message-digest 10.10.120.1 |
| 948 |
# ip ospf authentication-key U2FsdGVkX1+ozJSEI69XJb2KR9Pu1Sa3Ou6ujTRalbQ= encrypted 10.10.120.1 |
| 949 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 950 |
# ! |
| 951 |
# interface Eth1/2 |
| 952 |
# ! |
| 953 |
# interface Eth1/3 |
| 954 |
# ip ospf area 2.2.2.2 |
| 955 |
# ip ospf bfd |
| 956 |
# ip ospf bfd profile profile2 |
| 957 |
# ip ospf cost 30 |
| 958 |
# ip ospf dead-interval 40 |
| 959 |
# ip ospf hello-interval 10 |
| 960 |
# ip ospf mtu-ignore |
| 961 |
# ip ospf network broadcast |
| 962 |
# ip ospf priority 20 |
| 963 |
# ip ospf authentication null 10.10.120.1 |
| 964 |
# ip ospf authentication-key U2FsdGVkX186k2R2hUXaDloW8hfkApn5Zx5hCQy9usc= encrypted 10.10.120.1 |
| 965 |
# ip ospf authentication null 10.19.119.1 |
| 966 |
# ip ospf message-digest-key 10 md5 U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ= encrypted 10.19.119.1 |
| 967 |
# ! |
| 968 |
# sonic# |
| 969 |
|
| 970 |
|
| 971 |
# Using "overridden" state |
| 972 |
|
| 973 |
# Before state: |
| 974 |
# ------------- |
| 975 |
# |
| 976 |
# sonic# show running-configuration interface |
| 977 |
# ! |
| 978 |
# interface Eth1/1 |
| 979 |
# ip ospf area 2.2.2.2 |
| 980 |
# ip ospf bfd |
| 981 |
# ip ospf bfd profile profile1 |
| 982 |
# ip ospf cost 20 |
| 983 |
# ip ospf dead-interval 40 |
| 984 |
# ip ospf hello-interval 10 |
| 985 |
# ip ospf mtu-ignore |
| 986 |
# ip ospf network broadcast |
| 987 |
# ip ospf priority 20 |
| 988 |
# ip ospf authentication message-digest 10.10.120.1 |
| 989 |
# ip ospf authentication-key U2FsdGVkX1+ozJSEI69XJb2KR9Pu1Sa3Ou6ujTRalbQ= encrypted 10.10.120.1 |
| 990 |
# ip ospf dead-interval minimal hello-multiplier 5 10.10.120.1 |
| 991 |
# ! |
| 992 |
# interface Eth1/2 |
| 993 |
# ! |
| 994 |
# interface Eth1/3 |
| 995 |
# ip ospf bfd |
| 996 |
# ip ospf network point-to-point |
| 997 |
# ip ospf area 3.3.3.3 10.19.120.2 |
| 998 |
# ip ospf authentication message-digest 10.19.120.2 |
| 999 |
# ip ospf authentication-key U2FsdGVkX19HqGCcf2pzGur9MDnb0VzLNRvoFij3Os0= encrypted 10.19.120.2 |
| 1000 |
# ip ospf dead-interval minimal hello-multiplier 5 10.19.120.2 |
| 1001 |
# ! |
| 1002 |
# sonic# |
| 1003 |
|
| 1004 |
- name: Override the OSPFv2_interface configurations |
| 1005 |
sonic_ospfv2_interfaces: |
| 1006 |
config: |
| 1007 |
- name: 'Eth1/3' |
| 1008 |
ospf_attributes: |
| 1009 |
- area_id: '2.2.2.2' |
| 1010 |
cost: 30 |
| 1011 |
priority: 20 |
| 1012 |
hello_interval: 10 |
| 1013 |
dead_interval: 40 |
| 1014 |
mtu_ignore: true |
| 1015 |
- address: '10.10.120.1' |
| 1016 |
authentication_type: 'NONE' |
| 1017 |
authentication: |
| 1018 |
password: 'pass2' |
| 1019 |
- address: '10.19.119.1' |
| 1020 |
authentication_type: 'NONE' |
| 1021 |
md_authentication: |
| 1022 |
- key_id: 10 |
| 1023 |
md5key: 'U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ=' |
| 1024 |
encrypted: true |
| 1025 |
bfd: |
| 1026 |
enable: true |
| 1027 |
bfd_profile: 'profile2' |
| 1028 |
network: broadcast |
| 1029 |
state: overridden |
| 1030 |
|
| 1031 |
# After state: |
| 1032 |
# ------------ |
| 1033 |
# |
| 1034 |
# sonic# show running-configuration interface |
| 1035 |
# ! |
| 1036 |
# interface Eth1/1 |
| 1037 |
# ! |
| 1038 |
# interface Eth1/2 |
| 1039 |
# ! |
| 1040 |
# interface Eth1/3 |
| 1041 |
# ip ospf area 2.2.2.2 |
| 1042 |
# ip ospf bfd |
| 1043 |
# ip ospf bfd profile profile2 |
| 1044 |
# ip ospf cost 30 |
| 1045 |
# ip ospf dead-interval 40 |
| 1046 |
# ip ospf hello-interval 10 |
| 1047 |
# ip ospf mtu-ignore |
| 1048 |
# ip ospf network broadcast |
| 1049 |
# ip ospf priority 20 |
| 1050 |
# ip ospf authentication null 10.10.120.1 |
| 1051 |
# ip ospf authentication-key U2FsdGVkX186k2R2hUXaDloW8hfkApn5Zx5hCQy9usc= encrypted 10.10.120.1 |
| 1052 |
# ip ospf authentication null 10.19.119.1 |
| 1053 |
# ip ospf message-digest-key 10 md5 U2FsdGVkX1/Bq/+x8a3fsBo9ZrAX56ynmPKnRM87kfQ= encrypted 10.19.119.1 |
| 1054 |
# ! |
| 1055 |
# sonic# |
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
Return Values |
| 1060 |
------------- |
| 1061 |
Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module: |
| 1062 |
|
| 1063 |
.. raw:: html |
| 1064 |
|
| 1065 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 1066 |
<tr> |
| 1067 |
<th colspan="1">Key</th> |
| 1068 |
<th>Returned</th> |
| 1069 |
<th width="100%">Description</th> |
| 1070 |
</tr> |
| 1071 |
<tr> |
| 1072 |
<td colspan="1"> |
| 1073 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1074 |
<b>after</b> |
| 1075 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1076 |
<div style="font-size: small"> |
| 1077 |
<span style="color: purple">list</span> |
| 1078 |
</div> |
| 1079 |
</td> |
| 1080 |
<td>when changed</td> |
| 1081 |
<td> |
| 1082 |
<div>The resulting configuration model invocation.</div> |
| 1083 |
<br/> |
| 1084 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1085 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1086 |
of the parameters above.</div> |
| 1087 |
</td> |
| 1088 |
</tr> |
| 1089 |
<tr> |
| 1090 |
<td colspan="1"> |
| 1091 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1092 |
<b>after_generated</b> |
| 1093 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1094 |
<div style="font-size: small"> |
| 1095 |
<span style="color: purple">list</span> |
| 1096 |
</div> |
| 1097 |
</td> |
| 1098 |
<td>when <code>check_mode</code></td> |
| 1099 |
<td> |
| 1100 |
<div>The generated configuration model invocation.</div> |
| 1101 |
<br/> |
| 1102 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1103 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1104 |
of the parameters above.</div> |
| 1105 |
</td> |
| 1106 |
</tr> |
| 1107 |
<tr> |
| 1108 |
<td colspan="1"> |
| 1109 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1110 |
<b>before</b> |
| 1111 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1112 |
<div style="font-size: small"> |
| 1113 |
<span style="color: purple">list</span> |
| 1114 |
</div> |
| 1115 |
</td> |
| 1116 |
<td>always</td> |
| 1117 |
<td> |
| 1118 |
<div>The configuration prior to the model invocation.</div> |
| 1119 |
<br/> |
| 1120 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1121 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format |
| 1122 |
of the parameters above.</div> |
| 1123 |
</td> |
| 1124 |
</tr> |
| 1125 |
<tr> |
| 1126 |
<td colspan="1"> |
| 1127 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1128 |
<b>commands</b> |
| 1129 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1130 |
<div style="font-size: small"> |
| 1131 |
<span style="color: purple">list</span> |
| 1132 |
</div> |
| 1133 |
</td> |
| 1134 |
<td>always</td> |
| 1135 |
<td> |
| 1136 |
<div>The set of commands pushed to the remote device.</div> |
| 1137 |
<br/> |
| 1138 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1139 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['command 1', 'command 2', 'command 3']</div> |
| 1140 |
</td> |
| 1141 |
</tr> |
| 1142 |
</table> |
| 1143 |
<br/><br/> |
| 1144 |
|
| 1145 |
|
| 1146 |
Status |
| 1147 |
------ |
| 1148 |
|
| 1149 |
|
| 1150 |
Authors |
| 1151 |
~~~~~~~ |
| 1152 |
|
| 1153 |
- Santhosh kumar T (@santhosh-kt) |