| 1 |
.. _dellemc.enterprise_sonic.sonic_ospf_area_module: |
| 2 |
|
| 3 |
|
| 4 |
**************************************** |
| 5 |
dellemc.enterprise_sonic.sonic_ospf_area |
| 6 |
**************************************** |
| 7 |
|
| 8 |
**configure OSPF area 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 for the area settings of OSPF running on SONiC switches |
| 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="4">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="4"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>config</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">list</span> |
| 43 |
/ <span style="color: purple">elements=dictionary</span> |
| 44 |
</div> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
</td> |
| 48 |
<td> |
| 49 |
<div>Specifies configuration for OSPFv2 areas</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="elbow-placeholder"></td> |
| 54 |
<td colspan="3"> |
| 55 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 56 |
<b>area_id</b> |
| 57 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 58 |
<div style="font-size: small"> |
| 59 |
<span style="color: purple">string</span> |
| 60 |
/ <span style="color: red">required</span> |
| 61 |
</div> |
| 62 |
</td> |
| 63 |
<td> |
| 64 |
</td> |
| 65 |
<td> |
| 66 |
<div>Area ID of the network (A.B.C.D or 0 to 4294967295).</div> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="3"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>authentication_type</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">string</span> |
| 77 |
</div> |
| 78 |
</td> |
| 79 |
<td> |
| 80 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 81 |
<li>message_digest</li> |
| 82 |
<li>text</li> |
| 83 |
</ul> |
| 84 |
</td> |
| 85 |
<td> |
| 86 |
<div>authentication type for area</div> |
| 87 |
</td> |
| 88 |
</tr> |
| 89 |
<tr> |
| 90 |
<td class="elbow-placeholder"></td> |
| 91 |
<td colspan="3"> |
| 92 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 93 |
<b>default_cost</b> |
| 94 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 95 |
<div style="font-size: small"> |
| 96 |
<span style="color: purple">integer</span> |
| 97 |
</div> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
<div>Configure NSSA or stub area summary default cost</div> |
| 103 |
<div>range is 0 to 16777215 inclusive</div> |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
<tr> |
| 107 |
<td class="elbow-placeholder"></td> |
| 108 |
<td colspan="3"> |
| 109 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 110 |
<b>filter_list_in</b> |
| 111 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 112 |
<div style="font-size: small"> |
| 113 |
<span style="color: purple">string</span> |
| 114 |
</div> |
| 115 |
</td> |
| 116 |
<td> |
| 117 |
</td> |
| 118 |
<td> |
| 119 |
<div>inter area prefix filter list.</div> |
| 120 |
<div>Filter incoming prefixes into the area.</div> |
| 121 |
<div>expects name of a prefix list.</div> |
| 122 |
</td> |
| 123 |
</tr> |
| 124 |
<tr> |
| 125 |
<td class="elbow-placeholder"></td> |
| 126 |
<td colspan="3"> |
| 127 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 128 |
<b>filter_list_out</b> |
| 129 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 130 |
<div style="font-size: small"> |
| 131 |
<span style="color: purple">string</span> |
| 132 |
</div> |
| 133 |
</td> |
| 134 |
<td> |
| 135 |
</td> |
| 136 |
<td> |
| 137 |
<div>inter area prefix filter list.</div> |
| 138 |
<div>Filter outgoing prefixes from the area.</div> |
| 139 |
<div>expects name of a prefix list.</div> |
| 140 |
</td> |
| 141 |
</tr> |
| 142 |
<tr> |
| 143 |
<td class="elbow-placeholder"></td> |
| 144 |
<td colspan="3"> |
| 145 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 146 |
<b>networks</b> |
| 147 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 148 |
<div style="font-size: small"> |
| 149 |
<span style="color: purple">list</span> |
| 150 |
/ <span style="color: purple">elements=string</span> |
| 151 |
</div> |
| 152 |
</td> |
| 153 |
<td> |
| 154 |
</td> |
| 155 |
<td> |
| 156 |
<div>Configure networks in an area</div> |
| 157 |
<div>is a masked ip address</div> |
| 158 |
</td> |
| 159 |
</tr> |
| 160 |
<tr> |
| 161 |
<td class="elbow-placeholder"></td> |
| 162 |
<td colspan="3"> |
| 163 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 164 |
<b>ranges</b> |
| 165 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 166 |
<div style="font-size: small"> |
| 167 |
<span style="color: purple">list</span> |
| 168 |
/ <span style="color: purple">elements=dictionary</span> |
| 169 |
</div> |
| 170 |
</td> |
| 171 |
<td> |
| 172 |
</td> |
| 173 |
<td> |
| 174 |
<div>Configure address range summarization on border routers</div> |
| 175 |
</td> |
| 176 |
</tr> |
| 177 |
<tr> |
| 178 |
<td class="elbow-placeholder"></td> |
| 179 |
<td class="elbow-placeholder"></td> |
| 180 |
<td colspan="2"> |
| 181 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 182 |
<b>advertise</b> |
| 183 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 184 |
<div style="font-size: small"> |
| 185 |
<span style="color: purple">boolean</span> |
| 186 |
</div> |
| 187 |
</td> |
| 188 |
<td> |
| 189 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 190 |
<li>no</li> |
| 191 |
<li>yes</li> |
| 192 |
</ul> |
| 193 |
</td> |
| 194 |
<td> |
| 195 |
<div>enable address range advertising</div> |
| 196 |
<div>default of true</div> |
| 197 |
</td> |
| 198 |
</tr> |
| 199 |
<tr> |
| 200 |
<td class="elbow-placeholder"></td> |
| 201 |
<td class="elbow-placeholder"></td> |
| 202 |
<td colspan="2"> |
| 203 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 204 |
<b>cost</b> |
| 205 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 206 |
<div style="font-size: small"> |
| 207 |
<span style="color: purple">integer</span> |
| 208 |
</div> |
| 209 |
</td> |
| 210 |
<td> |
| 211 |
</td> |
| 212 |
<td> |
| 213 |
<div>configure cost of address range</div> |
| 214 |
<div>range is 0 to 16777215 inclusive</div> |
| 215 |
</td> |
| 216 |
</tr> |
| 217 |
<tr> |
| 218 |
<td class="elbow-placeholder"></td> |
| 219 |
<td class="elbow-placeholder"></td> |
| 220 |
<td colspan="2"> |
| 221 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 222 |
<b>prefix</b> |
| 223 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 224 |
<div style="font-size: small"> |
| 225 |
<span style="color: purple">string</span> |
| 226 |
/ <span style="color: red">required</span> |
| 227 |
</div> |
| 228 |
</td> |
| 229 |
<td> |
| 230 |
</td> |
| 231 |
<td> |
| 232 |
<div>address range prefix</div> |
| 233 |
<div>is a masked ip address</div> |
| 234 |
</td> |
| 235 |
</tr> |
| 236 |
<tr> |
| 237 |
<td class="elbow-placeholder"></td> |
| 238 |
<td class="elbow-placeholder"></td> |
| 239 |
<td colspan="2"> |
| 240 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 241 |
<b>substitute</b> |
| 242 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 243 |
<div style="font-size: small"> |
| 244 |
<span style="color: purple">string</span> |
| 245 |
</div> |
| 246 |
</td> |
| 247 |
<td> |
| 248 |
</td> |
| 249 |
<td> |
| 250 |
<div>Configure substitute prefix for the address range</div> |
| 251 |
<div>is a masked ip address</div> |
| 252 |
</td> |
| 253 |
</tr> |
| 254 |
|
| 255 |
<tr> |
| 256 |
<td class="elbow-placeholder"></td> |
| 257 |
<td colspan="3"> |
| 258 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 259 |
<b>shortcut</b> |
| 260 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 261 |
<div style="font-size: small"> |
| 262 |
<span style="color: purple">string</span> |
| 263 |
</div> |
| 264 |
</td> |
| 265 |
<td> |
| 266 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 267 |
<li>default</li> |
| 268 |
<li>disable</li> |
| 269 |
<li>enable</li> |
| 270 |
</ul> |
| 271 |
</td> |
| 272 |
<td> |
| 273 |
<div>Configure area's shortcut mode</div> |
| 274 |
</td> |
| 275 |
</tr> |
| 276 |
<tr> |
| 277 |
<td class="elbow-placeholder"></td> |
| 278 |
<td colspan="3"> |
| 279 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 280 |
<b>stub</b> |
| 281 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 282 |
<div style="font-size: small"> |
| 283 |
<span style="color: purple">dictionary</span> |
| 284 |
</div> |
| 285 |
</td> |
| 286 |
<td> |
| 287 |
</td> |
| 288 |
<td> |
| 289 |
<div>configuration for stub type area</div> |
| 290 |
</td> |
| 291 |
</tr> |
| 292 |
<tr> |
| 293 |
<td class="elbow-placeholder"></td> |
| 294 |
<td class="elbow-placeholder"></td> |
| 295 |
<td colspan="2"> |
| 296 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 297 |
<b>enabled</b> |
| 298 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 299 |
<div style="font-size: small"> |
| 300 |
<span style="color: purple">boolean</span> |
| 301 |
</div> |
| 302 |
</td> |
| 303 |
<td> |
| 304 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 305 |
<li>no</li> |
| 306 |
<li>yes</li> |
| 307 |
</ul> |
| 308 |
</td> |
| 309 |
<td> |
| 310 |
<div>configure area as stub type area</div> |
| 311 |
</td> |
| 312 |
</tr> |
| 313 |
<tr> |
| 314 |
<td class="elbow-placeholder"></td> |
| 315 |
<td class="elbow-placeholder"></td> |
| 316 |
<td colspan="2"> |
| 317 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 318 |
<b>no_summary</b> |
| 319 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 320 |
<div style="font-size: small"> |
| 321 |
<span style="color: purple">boolean</span> |
| 322 |
</div> |
| 323 |
</td> |
| 324 |
<td> |
| 325 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 326 |
<li>no</li> |
| 327 |
<li>yes</li> |
| 328 |
</ul> |
| 329 |
</td> |
| 330 |
<td> |
| 331 |
<div>disable inter-area route injection into the stub</div> |
| 332 |
</td> |
| 333 |
</tr> |
| 334 |
|
| 335 |
<tr> |
| 336 |
<td class="elbow-placeholder"></td> |
| 337 |
<td colspan="3"> |
| 338 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 339 |
<b>virtual_links</b> |
| 340 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 341 |
<div style="font-size: small"> |
| 342 |
<span style="color: purple">list</span> |
| 343 |
/ <span style="color: purple">elements=dictionary</span> |
| 344 |
</div> |
| 345 |
</td> |
| 346 |
<td> |
| 347 |
</td> |
| 348 |
<td> |
| 349 |
<div>configuration for virtual links</div> |
| 350 |
</td> |
| 351 |
</tr> |
| 352 |
<tr> |
| 353 |
<td class="elbow-placeholder"></td> |
| 354 |
<td class="elbow-placeholder"></td> |
| 355 |
<td colspan="2"> |
| 356 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 357 |
<b>authentication</b> |
| 358 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 359 |
<div style="font-size: small"> |
| 360 |
<span style="color: purple">dictionary</span> |
| 361 |
</div> |
| 362 |
</td> |
| 363 |
<td> |
| 364 |
</td> |
| 365 |
<td> |
| 366 |
<div>configure authentication settings for virtual link</div> |
| 367 |
</td> |
| 368 |
</tr> |
| 369 |
<tr> |
| 370 |
<td class="elbow-placeholder"></td> |
| 371 |
<td class="elbow-placeholder"></td> |
| 372 |
<td class="elbow-placeholder"></td> |
| 373 |
<td colspan="1"> |
| 374 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 375 |
<b>auth_type</b> |
| 376 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 377 |
<div style="font-size: small"> |
| 378 |
<span style="color: purple">string</span> |
| 379 |
</div> |
| 380 |
</td> |
| 381 |
<td> |
| 382 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 383 |
<li>message_digest</li> |
| 384 |
<li>text</li> |
| 385 |
<li>none</li> |
| 386 |
</ul> |
| 387 |
</td> |
| 388 |
<td> |
| 389 |
<div>authentication type for virtual link</div> |
| 390 |
</td> |
| 391 |
</tr> |
| 392 |
<tr> |
| 393 |
<td class="elbow-placeholder"></td> |
| 394 |
<td class="elbow-placeholder"></td> |
| 395 |
<td class="elbow-placeholder"></td> |
| 396 |
<td colspan="1"> |
| 397 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 398 |
<b>key</b> |
| 399 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 400 |
<div style="font-size: small"> |
| 401 |
<span style="color: purple">string</span> |
| 402 |
</div> |
| 403 |
</td> |
| 404 |
<td> |
| 405 |
</td> |
| 406 |
<td> |
| 407 |
<div>text authentication password for virtual link</div> |
| 408 |
</td> |
| 409 |
</tr> |
| 410 |
<tr> |
| 411 |
<td class="elbow-placeholder"></td> |
| 412 |
<td class="elbow-placeholder"></td> |
| 413 |
<td class="elbow-placeholder"></td> |
| 414 |
<td colspan="1"> |
| 415 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 416 |
<b>key_encrypted</b> |
| 417 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 418 |
<div style="font-size: small"> |
| 419 |
<span style="color: purple">boolean</span> |
| 420 |
</div> |
| 421 |
</td> |
| 422 |
<td> |
| 423 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 424 |
<li>no</li> |
| 425 |
<li>yes</li> |
| 426 |
</ul> |
| 427 |
</td> |
| 428 |
<td> |
| 429 |
<div>password is in encrypted format</div> |
| 430 |
</td> |
| 431 |
</tr> |
| 432 |
|
| 433 |
<tr> |
| 434 |
<td class="elbow-placeholder"></td> |
| 435 |
<td class="elbow-placeholder"></td> |
| 436 |
<td colspan="2"> |
| 437 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 438 |
<b>dead_interval</b> |
| 439 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 440 |
<div style="font-size: small"> |
| 441 |
<span style="color: purple">integer</span> |
| 442 |
</div> |
| 443 |
</td> |
| 444 |
<td> |
| 445 |
</td> |
| 446 |
<td> |
| 447 |
<div>configure adjacency dead interval</div> |
| 448 |
<div>value is in seconds</div> |
| 449 |
<div>range is 1 to 65535 inclusive</div> |
| 450 |
</td> |
| 451 |
</tr> |
| 452 |
<tr> |
| 453 |
<td class="elbow-placeholder"></td> |
| 454 |
<td class="elbow-placeholder"></td> |
| 455 |
<td colspan="2"> |
| 456 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 457 |
<b>enabled</b> |
| 458 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 459 |
<div style="font-size: small"> |
| 460 |
<span style="color: purple">boolean</span> |
| 461 |
</div> |
| 462 |
</td> |
| 463 |
<td> |
| 464 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 465 |
<li>no</li> |
| 466 |
<li>yes</li> |
| 467 |
</ul> |
| 468 |
</td> |
| 469 |
<td> |
| 470 |
<div>enable virtual link</div> |
| 471 |
<div>virtual link must be enabled for creation</div> |
| 472 |
</td> |
| 473 |
</tr> |
| 474 |
<tr> |
| 475 |
<td class="elbow-placeholder"></td> |
| 476 |
<td class="elbow-placeholder"></td> |
| 477 |
<td colspan="2"> |
| 478 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 479 |
<b>hello_interval</b> |
| 480 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 481 |
<div style="font-size: small"> |
| 482 |
<span style="color: purple">integer</span> |
| 483 |
</div> |
| 484 |
</td> |
| 485 |
<td> |
| 486 |
</td> |
| 487 |
<td> |
| 488 |
<div>configure neighbor hello interval</div> |
| 489 |
<div>value is in seconds</div> |
| 490 |
<div>range is 1 to 65535 inclusive</div> |
| 491 |
</td> |
| 492 |
</tr> |
| 493 |
<tr> |
| 494 |
<td class="elbow-placeholder"></td> |
| 495 |
<td class="elbow-placeholder"></td> |
| 496 |
<td colspan="2"> |
| 497 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 498 |
<b>message_digest_list</b> |
| 499 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 500 |
<div style="font-size: small"> |
| 501 |
<span style="color: purple">list</span> |
| 502 |
/ <span style="color: purple">elements=dictionary</span> |
| 503 |
</div> |
| 504 |
</td> |
| 505 |
<td> |
| 506 |
</td> |
| 507 |
<td> |
| 508 |
<div>configure message-digest authentication keys</div> |
| 509 |
<div>For deletion, only the key_id is used.</div> |
| 510 |
</td> |
| 511 |
</tr> |
| 512 |
<tr> |
| 513 |
<td class="elbow-placeholder"></td> |
| 514 |
<td class="elbow-placeholder"></td> |
| 515 |
<td class="elbow-placeholder"></td> |
| 516 |
<td colspan="1"> |
| 517 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 518 |
<b>key</b> |
| 519 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 520 |
<div style="font-size: small"> |
| 521 |
<span style="color: purple">string</span> |
| 522 |
</div> |
| 523 |
</td> |
| 524 |
<td> |
| 525 |
</td> |
| 526 |
<td> |
| 527 |
<div>authentication password (ignored for deletion)</div> |
| 528 |
</td> |
| 529 |
</tr> |
| 530 |
<tr> |
| 531 |
<td class="elbow-placeholder"></td> |
| 532 |
<td class="elbow-placeholder"></td> |
| 533 |
<td class="elbow-placeholder"></td> |
| 534 |
<td colspan="1"> |
| 535 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 536 |
<b>key_encrypted</b> |
| 537 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 538 |
<div style="font-size: small"> |
| 539 |
<span style="color: purple">boolean</span> |
| 540 |
</div> |
| 541 |
</td> |
| 542 |
<td> |
| 543 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 544 |
<li>no</li> |
| 545 |
<li>yes</li> |
| 546 |
</ul> |
| 547 |
</td> |
| 548 |
<td> |
| 549 |
<div>password is in encrypted format (ignored for deletion)</div> |
| 550 |
</td> |
| 551 |
</tr> |
| 552 |
<tr> |
| 553 |
<td class="elbow-placeholder"></td> |
| 554 |
<td class="elbow-placeholder"></td> |
| 555 |
<td class="elbow-placeholder"></td> |
| 556 |
<td colspan="1"> |
| 557 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 558 |
<b>key_id</b> |
| 559 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 560 |
<div style="font-size: small"> |
| 561 |
<span style="color: purple">integer</span> |
| 562 |
/ <span style="color: red">required</span> |
| 563 |
</div> |
| 564 |
</td> |
| 565 |
<td> |
| 566 |
</td> |
| 567 |
<td> |
| 568 |
<div>message-digest authentication key id</div> |
| 569 |
<div>range is 1 to 255 inclusive</div> |
| 570 |
</td> |
| 571 |
</tr> |
| 572 |
|
| 573 |
<tr> |
| 574 |
<td class="elbow-placeholder"></td> |
| 575 |
<td class="elbow-placeholder"></td> |
| 576 |
<td colspan="2"> |
| 577 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 578 |
<b>retransmit_interval</b> |
| 579 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 580 |
<div style="font-size: small"> |
| 581 |
<span style="color: purple">integer</span> |
| 582 |
</div> |
| 583 |
</td> |
| 584 |
<td> |
| 585 |
</td> |
| 586 |
<td> |
| 587 |
<div>configure LSA retransmit interval</div> |
| 588 |
<div>value is in seconds</div> |
| 589 |
<div>range is 1 to 65535 inclusive</div> |
| 590 |
</td> |
| 591 |
</tr> |
| 592 |
<tr> |
| 593 |
<td class="elbow-placeholder"></td> |
| 594 |
<td class="elbow-placeholder"></td> |
| 595 |
<td colspan="2"> |
| 596 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 597 |
<b>router_id</b> |
| 598 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 599 |
<div style="font-size: small"> |
| 600 |
<span style="color: purple">string</span> |
| 601 |
/ <span style="color: red">required</span> |
| 602 |
</div> |
| 603 |
</td> |
| 604 |
<td> |
| 605 |
</td> |
| 606 |
<td> |
| 607 |
<div>router id of the remote ABR</div> |
| 608 |
<div>ip address format</div> |
| 609 |
</td> |
| 610 |
</tr> |
| 611 |
<tr> |
| 612 |
<td class="elbow-placeholder"></td> |
| 613 |
<td class="elbow-placeholder"></td> |
| 614 |
<td colspan="2"> |
| 615 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 616 |
<b>transmit_delay</b> |
| 617 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 618 |
<div style="font-size: small"> |
| 619 |
<span style="color: purple">integer</span> |
| 620 |
</div> |
| 621 |
</td> |
| 622 |
<td> |
| 623 |
</td> |
| 624 |
<td> |
| 625 |
<div>configure LSA transmit delay</div> |
| 626 |
<div>value is in seconds</div> |
| 627 |
<div>range is 1 to 65535 inclusive</div> |
| 628 |
</td> |
| 629 |
</tr> |
| 630 |
|
| 631 |
<tr> |
| 632 |
<td class="elbow-placeholder"></td> |
| 633 |
<td colspan="3"> |
| 634 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 635 |
<b>vrf_name</b> |
| 636 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 637 |
<div style="font-size: small"> |
| 638 |
<span style="color: purple">string</span> |
| 639 |
</div> |
| 640 |
</td> |
| 641 |
<td> |
| 642 |
<b>Default:</b><br/><div style="color: blue">"default"</div> |
| 643 |
</td> |
| 644 |
<td> |
| 645 |
<div>name of the vrf this area belongs to</div> |
| 646 |
</td> |
| 647 |
</tr> |
| 648 |
|
| 649 |
<tr> |
| 650 |
<td colspan="4"> |
| 651 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 652 |
<b>state</b> |
| 653 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 654 |
<div style="font-size: small"> |
| 655 |
<span style="color: purple">string</span> |
| 656 |
</div> |
| 657 |
</td> |
| 658 |
<td> |
| 659 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 660 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 661 |
<li>replaced</li> |
| 662 |
<li>overridden</li> |
| 663 |
<li>deleted</li> |
| 664 |
</ul> |
| 665 |
</td> |
| 666 |
<td> |
| 667 |
<div>Specifies the type of configuration update to be performed on the device.</div> |
| 668 |
</td> |
| 669 |
</tr> |
| 670 |
</table> |
| 671 |
<br/> |
| 672 |
|
| 673 |
|
| 674 |
|
| 675 |
|
| 676 |
Examples |
| 677 |
-------- |
| 678 |
|
| 679 |
.. code-block:: yaml |
| 680 |
|
| 681 |
# NOTE: Configuration of an OSPF network instance (VRF) is required before an OSPF "area" can |
| 682 |
# be configured in association with that network instance (VRF). |
| 683 |
|
| 684 |
# ============ MERGED ================== |
| 685 |
|
| 686 |
# Scenario: Using "merged" state to add or change ospf_area settings |
| 687 |
# merging all settings for an area |
| 688 |
|
| 689 |
# Before state: |
| 690 |
|
| 691 |
# sonic# show running-configuration ospf |
| 692 |
# router ospf vrf Vrf1 |
| 693 |
# ! |
| 694 |
# router ospf vrf Vrf2 |
| 695 |
# ! |
| 696 |
|
| 697 |
# example: |
| 698 |
- name: merge examples of all settings |
| 699 |
sonic_ospf_area: |
| 700 |
state: merged |
| 701 |
config: |
| 702 |
- area_id: 2 |
| 703 |
vrf_name: Vrf1 |
| 704 |
authentication_type: message_digest |
| 705 |
default_cost: 3 |
| 706 |
stub: |
| 707 |
enabled: true |
| 708 |
no_summary: true |
| 709 |
shortcut: default |
| 710 |
- area_id: 3 |
| 711 |
vrf_name: Vrf1 |
| 712 |
filter_list_in: pf1 |
| 713 |
filter_list_out: pf2 |
| 714 |
ranges: |
| 715 |
- prefix: 1.1.1.1/24 |
| 716 |
- prefix: 1.1.1.2/24 |
| 717 |
advertise: true |
| 718 |
cost: 4 |
| 719 |
- prefix: 1.1.1.3/24 |
| 720 |
advertise: false |
| 721 |
- prefix: 1.1.1.4/24 |
| 722 |
advertise: true |
| 723 |
cost: 10 |
| 724 |
substitute: 3.3.3.3/24 |
| 725 |
- area_id: 4 |
| 726 |
vrf_name: Vrf1 |
| 727 |
networks: |
| 728 |
- 1.1.1.1/24 |
| 729 |
- 3.5.1.5/23 |
| 730 |
- 23.235.75.1/23 |
| 731 |
- area_id: 5 |
| 732 |
vrf_name: Vrf1 |
| 733 |
virtual_links: |
| 734 |
- router_id: 34.7.35.1 |
| 735 |
enabled: true |
| 736 |
- router_id: 34.7.35.2 |
| 737 |
enabled: true |
| 738 |
dead_interval: 30 |
| 739 |
hello_interval: 10 |
| 740 |
retransmit_interval: 40 |
| 741 |
transmit_delay: 50 |
| 742 |
authentication: |
| 743 |
auth_type: text |
| 744 |
key: "U2FsdGVkX197YJtZ/3Ac6n5kRIG/ZqeU1/wC0cVFyfU=" |
| 745 |
key_encrypted: true |
| 746 |
message_digest_list: |
| 747 |
- key_id: 1 |
| 748 |
key: "U2FsdGVkX1/wbqjMB7Lr+Mm3wY8+lCdaqUmG2rr9Adw=" |
| 749 |
key_encrypted: true |
| 750 |
- key_id: 2 |
| 751 |
key: "U2FsdGVkX18Czj9r8skDrg/wtpwTKKCQ8FXUehpCmHc=" |
| 752 |
key_encrypted: true |
| 753 |
|
| 754 |
# After state |
| 755 |
|
| 756 |
# sonic# show running-configuration ospf |
| 757 |
# router ospf vrf Vrf1 |
| 758 |
# area 0.0.0.2 authentication message-digest |
| 759 |
# area 0.0.0.2 stub no-summary |
| 760 |
# area 0.0.0.2 default-cost 3 |
| 761 |
# area 0.0.0.2 shortcut default |
| 762 |
# area 0.0.0.3 filter-list prefix pf1 in |
| 763 |
# area 0.0.0.3 filter-list prefix pf2 out |
| 764 |
# area 0.0.0.4 |
| 765 |
# area 0.0.0.5 |
| 766 |
# area 0.0.0.5 virtual-link 34.7.35.1 |
| 767 |
# area 0.0.0.5 virtual-link 34.7.35.2 |
| 768 |
# area 0.0.0.5 virtual-link 34.7.35.2 authentication |
| 769 |
# area 0.0.0.5 virtual-link 34.7.35.2 authentication-key U2FsdGVkX197YJtZ/3Ac6n5kRIG/ZqeU1/wC0cVFyfU= encrypted |
| 770 |
# area 0.0.0.5 virtual-link 34.7.35.2 dead-interval 30 |
| 771 |
# area 0.0.0.5 virtual-link 34.7.35.2 hello-interval 10 |
| 772 |
# area 0.0.0.5 virtual-link 34.7.35.2 retransmit-interval 40 |
| 773 |
# area 0.0.0.5 virtual-link 34.7.35.2 transmit-delay 50 |
| 774 |
# area 0.0.0.5 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX1/wbqjMB7Lr+Mm3wY8+lCdaqUmG2rr9Adw= encrypted |
| 775 |
# area 0.0.0.5 virtual-link 34.7.35.2 message-digest-key 2 md5 U2FsdGVkX18Czj9r8skDrg/wtpwTKKCQ8FXUehpCmHc= encrypted |
| 776 |
# area 0.0.0.3 range 1.1.1.1/24 |
| 777 |
# area 0.0.0.3 range 1.1.1.2/24 advertise cost 4 |
| 778 |
# area 0.0.0.3 range 1.1.1.3/24 not-advertise |
| 779 |
# area 0.0.0.3 range 1.1.1.4/24 advertise cost 10 |
| 780 |
# area 0.0.0.3 range 1.1.1.4/24 substitute 3.3.3.3/24 |
| 781 |
# network 1.1.1.1/24 area 0.0.0.4 |
| 782 |
# network 23.235.75.1/23 area 0.0.0.4 |
| 783 |
# network 3.5.1.5/23 area 0.0.0.4 |
| 784 |
# ! |
| 785 |
# router ospf vrf Vrf2 |
| 786 |
# ! |
| 787 |
# ----- |
| 788 |
|
| 789 |
# Scenario: minimum data for config subsections |
| 790 |
|
| 791 |
# Before state: |
| 792 |
|
| 793 |
# sonic# show running-configuration ospf |
| 794 |
# router ospf vrf Vrf1 |
| 795 |
# ! |
| 796 |
# router ospf vrf Vrf2 |
| 797 |
# ! |
| 798 |
|
| 799 |
# example: |
| 800 |
- name: merge smallest group of settings |
| 801 |
sonic_ospf_area: |
| 802 |
state: merged |
| 803 |
config: |
| 804 |
- area_id: 0.0.0.2 |
| 805 |
vrf_name: Vrf1 |
| 806 |
networks: |
| 807 |
- 1.1.1.1/24 |
| 808 |
- area_id: 0.0.0.3 |
| 809 |
vrf_name: Vrf1 |
| 810 |
ranges: |
| 811 |
- prefix: 1.1.1.1/24 |
| 812 |
- area_id: 0.0.0.4 |
| 813 |
vrf_name: Vrf1 |
| 814 |
virtual_links: |
| 815 |
- router_id: 34.7.35.1 |
| 816 |
enabled: true |
| 817 |
- area_id: 0.0.0.5 |
| 818 |
vrf_name: Vrf1 |
| 819 |
virtual_links: |
| 820 |
- router_id: 34.7.35.1 |
| 821 |
enabled: true |
| 822 |
message_digest_list: |
| 823 |
- key_id: 1 |
| 824 |
key: grighr |
| 825 |
# NOTE: The existence of an 'area' is only displayed by this Ansible module if configuration options are |
| 826 |
# currently configured for that area. (An "area" that currently has no configured sub-options is not displayed.) |
| 827 |
|
| 828 |
# After state |
| 829 |
|
| 830 |
# sonic# show running-configuration ospf |
| 831 |
# router ospf vrf Vrf1 |
| 832 |
# area 0.0.0.2 |
| 833 |
# area 0.0.0.3 |
| 834 |
# area 0.0.0.4 |
| 835 |
# area 0.0.0.5 |
| 836 |
# area 0.0.0.4 virtual-link 34.7.35.1 |
| 837 |
# area 0.0.0.5 virtual-link 34.7.35.1 |
| 838 |
# area 0.0.0.5 virtual-link 34.7.35.1 message-digest-key 1 md5 U2FsdGVkX19oCaX2HsxLR2nWtyK15AfE7ajHVjzgoaY= encrypted |
| 839 |
# area 0.0.0.3 range 1.1.1.1/24 |
| 840 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 841 |
# ! |
| 842 |
# router ospf vrf Vrf2 |
| 843 |
# ! |
| 844 |
# ----- |
| 845 |
|
| 846 |
# Scenario: merging and making changes to attributes |
| 847 |
|
| 848 |
# Before state: |
| 849 |
|
| 850 |
# sonic# show running-configuration ospf |
| 851 |
# router ospf vrf Vrf1 |
| 852 |
# area 0.0.0.1 authentication message-digest |
| 853 |
# area 0.0.0.1 stub no-summary |
| 854 |
# area 0.0.0.1 default-cost 6 |
| 855 |
# area 0.0.0.1 filter-list prefix pf1 in |
| 856 |
# area 0.0.0.1 filter-list prefix pf2 out |
| 857 |
# area 0.0.0.1 shortcut disable |
| 858 |
# area 0.0.0.1 virtual-link 1.1.1.1 |
| 859 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication |
| 860 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 861 |
# area 0.0.0.1 virtual-link 1.1.1.1 dead-interval 20 |
| 862 |
# area 0.0.0.1 virtual-link 1.1.1.1 hello-interval 10 |
| 863 |
# area 0.0.0.1 virtual-link 1.1.1.1 retransmit-interval 10 |
| 864 |
# area 0.0.0.1 virtual-link 1.1.1.1 transmit-delay 10 |
| 865 |
# area 0.0.0.1 virtual-link 1.1.1.2 |
| 866 |
# area 0.0.0.1 virtual-link 1.1.1.2 dead-interval 34 |
| 867 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 1 md5 U2FsdGVkX1//fyBCsQYQI4q743L8Rf1Q1qUOEc75lNM= encrypted |
| 868 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 2 md5 U2FsdGVkX18tvS+HyOt1zIbx9P8I9NMguQ17NZGd9ZY= encrypted |
| 869 |
# area 0.0.0.1 range 1.1.1.1/24 not-advertise |
| 870 |
# area 0.0.0.1 range 1.1.1.2/24 advertise |
| 871 |
# network 1.1.1.1/24 area 0.0.0.1 |
| 872 |
# network 1.1.1.2/24 area 0.0.0.1 |
| 873 |
# ! |
| 874 |
# router ospf vrf Vrf2 |
| 875 |
# ! |
| 876 |
|
| 877 |
# example: |
| 878 |
- name: "test merge all settings" |
| 879 |
sonic_ospf_area: |
| 880 |
state: merged |
| 881 |
config: |
| 882 |
- area_id: 0.0.0.1 |
| 883 |
vrf_name: Vrf1 |
| 884 |
authentication_type: text |
| 885 |
default_cost: 5 |
| 886 |
filter_list_in: pf2 |
| 887 |
filter_list_out: pf1 |
| 888 |
networks: |
| 889 |
- 1.1.1.5/24 |
| 890 |
ranges: |
| 891 |
- prefix: 1.1.1.1/24 |
| 892 |
advertise: true |
| 893 |
cost: 12 |
| 894 |
substitute: 11.11.1.1/24 |
| 895 |
- prefix: 1.1.1.2/24 |
| 896 |
advertise: false |
| 897 |
shortcut: enable |
| 898 |
stub: |
| 899 |
enabled: true |
| 900 |
no_summary: false |
| 901 |
virtual_links: |
| 902 |
- router_id: 1.1.1.1 |
| 903 |
enabled: true |
| 904 |
dead_interval: 45 |
| 905 |
hello_interval: 21 |
| 906 |
retransmit_interval: 15 |
| 907 |
transmit_delay: 23 |
| 908 |
authentication: |
| 909 |
auth_type: text |
| 910 |
key: "U2FsdGVkX1/lz7KE/onDUAhQU2nftsm/nddLb2ZvYSQ=" |
| 911 |
key_encrypted: true |
| 912 |
message_digest_list: |
| 913 |
- key_id: 1 |
| 914 |
key: "somepass" |
| 915 |
- router_id: 1.1.1.2 |
| 916 |
enabled: true |
| 917 |
dead_interval: 16 |
| 918 |
|
| 919 |
# After state |
| 920 |
|
| 921 |
# sonic# show running-configuration ospf |
| 922 |
# router ospf vrf Vrf1 |
| 923 |
# area 0.0.0.1 authentication |
| 924 |
# area 0.0.0.1 stub |
| 925 |
# area 0.0.0.1 default-cost 5 |
| 926 |
# area 0.0.0.1 filter-list prefix pf2 in |
| 927 |
# area 0.0.0.1 filter-list prefix pf1 out |
| 928 |
# area 0.0.0.1 shortcut enable |
| 929 |
# area 0.0.0.1 virtual-link 1.1.1.1 |
| 930 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication |
| 931 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication-key U2FsdGVkX1/lz7KE/onDUAhQU2nftsm/nddLb2ZvYSQ= encrypted |
| 932 |
# area 0.0.0.1 virtual-link 1.1.1.1 dead-interval 45 |
| 933 |
# area 0.0.0.1 virtual-link 1.1.1.1 hello-interval 21 |
| 934 |
# area 0.0.0.1 virtual-link 1.1.1.1 retransmit-interval 15 |
| 935 |
# area 0.0.0.1 virtual-link 1.1.1.1 transmit-delay 23 |
| 936 |
# area 0.0.0.1 virtual-link 1.1.1.2 |
| 937 |
# area 0.0.0.1 virtual-link 1.1.1.2 dead-interval 16 |
| 938 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 1 md5 U2FsdGVkX18D0swlrl3pVzMGxRZYzY58X06jPq2CrNU= encrypted |
| 939 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 2 md5 U2FsdGVkX18tvS+HyOt1zIbx9P8I9NMguQ17NZGd9ZY= encrypted |
| 940 |
# area 0.0.0.1 range 1.1.1.1/24 advertise cost 12 |
| 941 |
# area 0.0.0.1 range 1.1.1.1/24 substitute 11.11.1.1/24 |
| 942 |
# area 0.0.0.1 range 1.1.1.2/24 not-advertise |
| 943 |
# network 1.1.1.1/24 area 0.0.0.1 |
| 944 |
# network 1.1.1.2/24 area 0.0.0.1 |
| 945 |
# network 1.1.1.5/24 area 0.0.0.1 |
| 946 |
# ! |
| 947 |
# router ospf vrf Vrf2 |
| 948 |
# ! |
| 949 |
# ----- |
| 950 |
|
| 951 |
# Scenario: merging different keys |
| 952 |
|
| 953 |
# Before state: |
| 954 |
|
| 955 |
# sonic# show running-configuration ospf |
| 956 |
# router ospf vrf Vrf1 |
| 957 |
# ! |
| 958 |
# router ospf vrf Vrf2 |
| 959 |
# ! |
| 960 |
|
| 961 |
# example: |
| 962 |
- name: "test merge different keys" |
| 963 |
sonic_ospf_area: |
| 964 |
state: merged |
| 965 |
config: |
| 966 |
- area_id: 0.0.0.1 |
| 967 |
vrf_name: Vrf1 |
| 968 |
virtual_links: |
| 969 |
- router_id: 1.1.1.1 |
| 970 |
enabled: true |
| 971 |
authentication: |
| 972 |
key: qwerty |
| 973 |
key_encrypted: false |
| 974 |
- router_id: 1.1.1.3 |
| 975 |
enabled: true |
| 976 |
authentication: |
| 977 |
key: "U2FsdGVkX1/lz7KE/onDUAhQU2nftsm/nddLb2ZvYSQ=" |
| 978 |
key_encrypted: true |
| 979 |
- router_id: 1.1.1.4 |
| 980 |
enabled: true |
| 981 |
authentication: |
| 982 |
key: somepass |
| 983 |
|
| 984 |
# After state |
| 985 |
|
| 986 |
# sonic# show running-configuration ospf |
| 987 |
# router ospf vrf Vrf1 |
| 988 |
# area 0.0.0.1 |
| 989 |
# area 0.0.0.1 virtual-link 1.1.1.1 |
| 990 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication-key U2FsdGVkX180JKbs3Rf5IyLot8UW0/srcXdGaQXEHiw= encrypted |
| 991 |
# area 0.0.0.1 virtual-link 1.1.1.3 |
| 992 |
# area 0.0.0.1 virtual-link 1.1.1.3 authentication-key U2FsdGVkX1/lz7KE/onDUAhQU2nftsm/nddLb2ZvYSQ= encrypted |
| 993 |
# area 0.0.0.1 virtual-link 1.1.1.4 |
| 994 |
# area 0.0.0.1 virtual-link 1.1.1.4 authentication-key U2FsdGVkX1+2i/anKXKpEfwZIAkb1Hzkx1nH2IBnlMA= encrypted |
| 995 |
# ! |
| 996 |
# router ospf vrf Vrf2 |
| 997 |
# ! |
| 998 |
# Note: the device automatically converts keys to encrypted format |
| 999 |
# ---------- |
| 1000 |
|
| 1001 |
# ============ DELETED ================== |
| 1002 |
|
| 1003 |
# using deleted to remove ospf settings |
| 1004 |
# Scenario: deleting all settings for areas |
| 1005 |
|
| 1006 |
# Before state: |
| 1007 |
|
| 1008 |
# sonic# show running-configuration ospf |
| 1009 |
# router ospf vrf Vrf1 |
| 1010 |
# area 0.0.0.1 authentication message-digest |
| 1011 |
# area 0.0.0.1 stub no-summary |
| 1012 |
# area 0.0.0.1 default-cost 6 |
| 1013 |
# area 0.0.0.1 filter-list prefix pf1 in |
| 1014 |
# area 0.0.0.1 filter-list prefix pf2 out |
| 1015 |
# area 0.0.0.1 shortcut disable |
| 1016 |
# area 0.0.0.2 stub no-summary |
| 1017 |
# area 0.0.0.2 shortcut disable |
| 1018 |
# area 0.0.0.3 shortcut default |
| 1019 |
# area 0.0.0.1 virtual-link 1.1.1.1 |
| 1020 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication |
| 1021 |
# area 0.0.0.1 virtual-link 1.1.1.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1022 |
# area 0.0.0.1 virtual-link 1.1.1.1 dead-interval 20 |
| 1023 |
# area 0.0.0.1 virtual-link 1.1.1.1 hello-interval 10 |
| 1024 |
# area 0.0.0.1 virtual-link 1.1.1.1 retransmit-interval 10 |
| 1025 |
# area 0.0.0.1 virtual-link 1.1.1.1 transmit-delay 10 |
| 1026 |
# area 0.0.0.1 virtual-link 1.1.1.2 |
| 1027 |
# area 0.0.0.1 virtual-link 1.1.1.2 dead-interval 34 |
| 1028 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 1 md5 U2FsdGVkX1//fyBCsQYQI4q743L8Rf1Q1qUOEc75lNM= encrypted |
| 1029 |
# area 0.0.0.1 virtual-link 1.1.1.1 message-digest-key 2 md5 U2FsdGVkX18tvS+HyOt1zIbx9P8I9NMguQ17NZGd9ZY= encrypted |
| 1030 |
# area 0.0.0.1 range 1.1.1.1/24 not-advertise |
| 1031 |
# area 0.0.0.1 range 1.1.1.2/24 advertise |
| 1032 |
# area 0.0.0.2 range 1.1.1.1/24 advertise |
| 1033 |
# area 0.0.0.3 range 1.1.4.6/24 cost 14 |
| 1034 |
# network 1.1.1.1/24 area 0.0.0.1 |
| 1035 |
# network 1.1.1.2/24 area 0.0.0.1 |
| 1036 |
# ! |
| 1037 |
# router ospf vrf Vrf2 |
| 1038 |
# ! |
| 1039 |
|
| 1040 |
# example: |
| 1041 |
- name: "test delete all settings for areas" |
| 1042 |
sonic_ospf_area: |
| 1043 |
state: deleted |
| 1044 |
config: |
| 1045 |
- area_id: 0.0.0.1 |
| 1046 |
vrf_name: Vrf1 |
| 1047 |
- area_id: 0.0.0.2 |
| 1048 |
vrf_name: Vrf1 |
| 1049 |
ranges: |
| 1050 |
- prefix: 1.1.1.1/24 |
| 1051 |
shortcut: disable |
| 1052 |
stub: |
| 1053 |
enabled: true |
| 1054 |
no_summary: true |
| 1055 |
|
| 1056 |
# After state |
| 1057 |
|
| 1058 |
# sonic# show running-configuration ospf |
| 1059 |
# router ospf vrf Vrf1 |
| 1060 |
# area 0.0.0.3 shortcut default |
| 1061 |
# area 0.0.0.3 range 1.1.4.6/24 cost 14 |
| 1062 |
# ! |
| 1063 |
# router ospf vrf Vrf2 |
| 1064 |
# ! |
| 1065 |
# ----- |
| 1066 |
|
| 1067 |
|
| 1068 |
# Scenario: clearing subsections of config |
| 1069 |
|
| 1070 |
# Before state: |
| 1071 |
|
| 1072 |
# sonic# show running-configuration ospf |
| 1073 |
# router ospf vrf Vrf1 |
| 1074 |
# area 0.0.0.1 shortcut default |
| 1075 |
# area 0.0.0.2 authentication message-digest |
| 1076 |
# area 0.0.0.3 filter-list prefix pf1 in |
| 1077 |
# area 0.0.0.4 |
| 1078 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1079 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1080 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1081 |
# area 0.0.0.3 virtual-link 34.7.35.2 |
| 1082 |
# area 0.0.0.3 virtual-link 34.7.35.2 dead-interval 10 |
| 1083 |
# area 0.0.0.3 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1084 |
# area 0.0.0.4 virtual-link 34.7.35.1 |
| 1085 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication |
| 1086 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication-key U2FsdGVkX1/lz7KE/onDUAhQU2nftsm/nddLb2ZvYSQ= encrypted |
| 1087 |
# area 0.0.0.4 virtual-link 34.7.35.1 dead-interval 10 |
| 1088 |
# area 0.0.0.4 virtual-link 34.7.35.2 |
| 1089 |
# area 0.0.0.4 virtual-link 34.7.35.2 dead-interval 10 |
| 1090 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1091 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1092 |
# area 0.0.0.1 range 1.1.1.2/24 advertise cost 4 |
| 1093 |
# area 0.0.0.1 range 1.1.1.3/24 not-advertise |
| 1094 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1095 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1096 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1097 |
# ! |
| 1098 |
# router ospf vrf Vrf2 |
| 1099 |
# ! |
| 1100 |
|
| 1101 |
# example: |
| 1102 |
- name: "test clear subsections" |
| 1103 |
sonic_ospf_area: |
| 1104 |
state: deleted |
| 1105 |
config: |
| 1106 |
- area_id: 0.0.0.1 |
| 1107 |
vrf_name: Vrf1 |
| 1108 |
ranges: [] |
| 1109 |
- area_id: 0.0.0.2 |
| 1110 |
vrf_name: Vrf1 |
| 1111 |
networks: [] |
| 1112 |
- area_id: 0.0.0.3 |
| 1113 |
vrf_name: Vrf1 |
| 1114 |
virtual_links: [] |
| 1115 |
- area_id: 4 |
| 1116 |
vrf_name: Vrf1 |
| 1117 |
virtual_links: |
| 1118 |
- router_id: 34.7.35.1 |
| 1119 |
authentication: {} |
| 1120 |
- router_id: 34.7.35.2 |
| 1121 |
message_digest_list: [] |
| 1122 |
|
| 1123 |
# After state |
| 1124 |
|
| 1125 |
# sonic# show running-configuration ospf |
| 1126 |
# router ospf vrf Vrf1 |
| 1127 |
# area 0.0.0.1 shortcut default |
| 1128 |
# area 0.0.0.2 authentication message-digest |
| 1129 |
# area 0.0.0.3 filter-list prefix pf1 in |
| 1130 |
# area 0.0.0.4 |
| 1131 |
# area 0.0.0.4 virtual-link 34.7.35.1 |
| 1132 |
# area 0.0.0.4 virtual-link 34.7.35.1 dead-interval 10 |
| 1133 |
# area 0.0.0.4 virtual-link 34.7.35.2 |
| 1134 |
# area 0.0.0.4 virtual-link 34.7.35.2 dead-interval 10 |
| 1135 |
# ! |
| 1136 |
# router ospf vrf Vrf2 |
| 1137 |
# ! |
| 1138 |
# ----- |
| 1139 |
|
| 1140 |
# Scenario: deleting individual attributes |
| 1141 |
|
| 1142 |
# Before state: |
| 1143 |
|
| 1144 |
# sonic# show running-configuration ospf |
| 1145 |
# router ospf vrf Vrf1 |
| 1146 |
# area 0.0.0.1 filter-list prefix pf1 in |
| 1147 |
# area 0.0.0.1 filter-list prefix pf2 out |
| 1148 |
# area 0.0.0.2 authentication message-digest |
| 1149 |
# area 0.0.0.3 |
| 1150 |
# area 0.0.0.4 stub no-summary |
| 1151 |
# area 0.0.0.4 default-cost 3 |
| 1152 |
# area 0.0.0.4 shortcut default |
| 1153 |
# area 0.0.0.5 stub |
| 1154 |
# area 0.0.0.5 default-cost 5 |
| 1155 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1156 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication |
| 1157 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1158 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1159 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1160 |
# area 0.0.0.3 virtual-link 34.7.35.2 |
| 1161 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication message-digest |
| 1162 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1163 |
# area 0.0.0.3 virtual-link 34.7.35.2 dead-interval 10 |
| 1164 |
# area 0.0.0.3 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1165 |
# area 0.0.0.3 virtual-link 34.7.35.2 transmit-delay 50 |
| 1166 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1167 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1168 |
# area 0.0.0.1 range 1.1.1.1/24 advertise cost 13 |
| 1169 |
# area 0.0.0.1 range 1.1.1.1/24 substitute 11.2.5.1/24 |
| 1170 |
# area 0.0.0.1 range 1.1.1.2/24 advertise cost 4 |
| 1171 |
# area 0.0.0.1 range 1.1.1.3/24 advertise |
| 1172 |
# area 0.0.0.1 range 1.1.1.3/24 substitute 2.2.2.2/24 |
| 1173 |
# area 0.0.0.1 range 1.1.1.4/24 advertise cost 34 |
| 1174 |
# area 0.0.0.1 range 1.1.1.4/24 substitute 3.3.3.3/24 |
| 1175 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1176 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1177 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1178 |
# ! |
| 1179 |
# router ospf vrf Vrf2 |
| 1180 |
# ! |
| 1181 |
|
| 1182 |
# example: |
| 1183 |
- name: "delete individual attributes" |
| 1184 |
sonic_ospf_area: |
| 1185 |
state: deleted |
| 1186 |
config: |
| 1187 |
- area_id: 0.0.0.1 |
| 1188 |
vrf_name: Vrf1 |
| 1189 |
filter_list_in: pf1 |
| 1190 |
filter_list_out: pf2 |
| 1191 |
ranges: |
| 1192 |
- prefix: 1.1.1.1/24 |
| 1193 |
- prefix: 1.1.1.2/24 |
| 1194 |
cost: 4 |
| 1195 |
- prefix: 1.1.1.3/24 |
| 1196 |
substitute: 2.2.2.2/24 |
| 1197 |
- area_id: 0.0.0.2 |
| 1198 |
vrf_name: Vrf1 |
| 1199 |
authentication_type: message_digest |
| 1200 |
networks: |
| 1201 |
- 1.1.1.1/24 |
| 1202 |
- 3.5.1.5/23 |
| 1203 |
- area_id: 3 |
| 1204 |
vrf_name: Vrf1 |
| 1205 |
virtual_links: |
| 1206 |
- router_id: 34.7.35.1 |
| 1207 |
transmit_delay: 50 |
| 1208 |
hello_interval: 30 |
| 1209 |
authentication: |
| 1210 |
auth_type: text |
| 1211 |
- router_id: 34.7.35.2 |
| 1212 |
enabled: true |
| 1213 |
dead_interval: 10 |
| 1214 |
retransmit_interval: 40 |
| 1215 |
message_digest_list: |
| 1216 |
- key_id: 1 |
| 1217 |
authentication: |
| 1218 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1219 |
key_encrypted: true |
| 1220 |
- area_id: 4 |
| 1221 |
vrf_name: Vrf1 |
| 1222 |
shortcut: default |
| 1223 |
stub: |
| 1224 |
enabled: true |
| 1225 |
no_summary: true |
| 1226 |
- area_id: 5 |
| 1227 |
vrf_name: Vrf1 |
| 1228 |
default_cost: 5 |
| 1229 |
stub: |
| 1230 |
enabled: true |
| 1231 |
|
| 1232 |
# After state |
| 1233 |
|
| 1234 |
# sonic# show running-configuration ospf |
| 1235 |
# router ospf vrf Vrf1 |
| 1236 |
# area 0.0.0.1 |
| 1237 |
# area 0.0.0.2 |
| 1238 |
# area 0.0.0.3 |
| 1239 |
# area 0.0.0.4 default-cost 3 |
| 1240 |
# area 0.0.0.5 |
| 1241 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1242 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1243 |
# area 0.0.0.3 virtual-link 34.7.35.2 |
| 1244 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication message-digest |
| 1245 |
# area 0.0.0.3 virtual-link 34.7.35.2 transmit-delay 50 |
| 1246 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1247 |
# area 0.0.0.1 range 1.1.1.2/24 advertise |
| 1248 |
# area 0.0.0.1 range 1.1.1.3/24 advertise |
| 1249 |
# area 0.0.0.1 range 1.1.1.4/24 advertise cost 34 |
| 1250 |
# area 0.0.0.1 range 1.1.1.4/24 substitute 3.3.3.3/24 |
| 1251 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1252 |
# ! |
| 1253 |
# router ospf vrf Vrf2 |
| 1254 |
# ! |
| 1255 |
# ----- |
| 1256 |
# ---------- |
| 1257 |
|
| 1258 |
|
| 1259 |
# ============ REPLACED ================== |
| 1260 |
|
| 1261 |
# Scenario: Replace listed areas |
| 1262 |
|
| 1263 |
# Before state: |
| 1264 |
|
| 1265 |
# sonic# show running-configuration ospf |
| 1266 |
# router ospf vrf Vrf1 |
| 1267 |
# area 0.0.0.1 filter-list prefix pf1 in |
| 1268 |
# area 0.0.0.1 filter-list prefix pf2 out |
| 1269 |
# area 0.0.0.2 authentication message-digest |
| 1270 |
# area 0.0.0.3 |
| 1271 |
# area 0.0.0.4 stub no-summary |
| 1272 |
# area 0.0.0.4 default-cost 3 |
| 1273 |
# area 0.0.0.4 shortcut default |
| 1274 |
# area 0.0.0.5 stub |
| 1275 |
# area 0.0.0.5 default-cost 5 |
| 1276 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1277 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication |
| 1278 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1279 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1280 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1281 |
# area 0.0.0.3 virtual-link 34.7.35.2 |
| 1282 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication message-digest |
| 1283 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1284 |
# area 0.0.0.3 virtual-link 34.7.35.2 dead-interval 10 |
| 1285 |
# area 0.0.0.3 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1286 |
# area 0.0.0.3 virtual-link 34.7.35.2 transmit-delay 50 |
| 1287 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1288 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1289 |
# area 0.0.0.1 range 1.1.1.1/24 advertise cost 13 |
| 1290 |
# area 0.0.0.1 range 1.1.1.1/24 substitute 11.2.5.1/24 |
| 1291 |
# area 0.0.0.1 range 1.1.1.2/24 advertise cost 4 |
| 1292 |
# area 0.0.0.1 range 1.1.1.3/24 advertise |
| 1293 |
# area 0.0.0.1 range 1.1.1.3/24 substitute 2.2.2.2/24 |
| 1294 |
# area 0.0.0.1 range 1.1.1.4/24 advertise cost 34 |
| 1295 |
# area 0.0.0.1 range 1.1.1.4/24 substitute 3.3.3.3/24 |
| 1296 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1297 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1298 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1299 |
# ! |
| 1300 |
# router ospf vrf Vrf2 |
| 1301 |
# ! |
| 1302 |
|
| 1303 |
# example: |
| 1304 |
- name: "replace areas" |
| 1305 |
sonic_ospf_area: |
| 1306 |
state: replaced |
| 1307 |
config: |
| 1308 |
- area_id: 0.0.0.1 |
| 1309 |
vrf_name: Vrf1 |
| 1310 |
authentication_type: message_digest |
| 1311 |
networks: |
| 1312 |
- 1.1.1.1/24 |
| 1313 |
- 3.5.1.5/23 |
| 1314 |
- 23.235.75.1/23 |
| 1315 |
default_cost: 5 |
| 1316 |
stub: |
| 1317 |
enabled: true |
| 1318 |
no_summary: false |
| 1319 |
- area_id: 0.0.0.2 |
| 1320 |
vrf_name: Vrf1 |
| 1321 |
filter_list_in: pf1 |
| 1322 |
filter_list_out: pf2 |
| 1323 |
shortcut: default |
| 1324 |
default_cost: 3 |
| 1325 |
stub: |
| 1326 |
enabled: true |
| 1327 |
no_summary: true |
| 1328 |
authentication_type: message_digest |
| 1329 |
networks: |
| 1330 |
- 1.1.1.1/24 |
| 1331 |
- 3.5.1.5/23 |
| 1332 |
- 23.235.75.1/23 |
| 1333 |
- area_id: 3 |
| 1334 |
vrf_name: Vrf1 |
| 1335 |
virtual_links: |
| 1336 |
- router_id: 34.7.35.1 |
| 1337 |
enabled: true |
| 1338 |
transmit_delay: 50 |
| 1339 |
hello_interval: 30 |
| 1340 |
authentication: |
| 1341 |
auth_type: text |
| 1342 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1343 |
key_encrypted: true |
| 1344 |
ranges: |
| 1345 |
- prefix: 1.1.1.1/24 |
| 1346 |
advertise: true |
| 1347 |
substitute: 11.2.5.1/24 |
| 1348 |
- prefix: 1.1.1.2/24 |
| 1349 |
advertise: true |
| 1350 |
cost: 4 |
| 1351 |
- prefix: 1.1.1.3/24 |
| 1352 |
advertise: true |
| 1353 |
substitute: 2.5.3.78/24 |
| 1354 |
- area_id: 4 |
| 1355 |
vrf_name: Vrf1 |
| 1356 |
shortcut: default |
| 1357 |
virtual_links: |
| 1358 |
- router_id: 34.7.35.1 |
| 1359 |
enabled: true |
| 1360 |
transmit_delay: 50 |
| 1361 |
hello_interval: 30 |
| 1362 |
authentication: |
| 1363 |
auth_type: text |
| 1364 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1365 |
key_encrypted: true |
| 1366 |
- router_id: 34.7.35.2 |
| 1367 |
transmit_delay: 50 |
| 1368 |
enabled: true |
| 1369 |
dead_interval: 10 |
| 1370 |
retransmit_interval: 40 |
| 1371 |
message_digest_list: |
| 1372 |
- key_id: 1 |
| 1373 |
key: "U2FsdGVkX18mUZjlJL/Q/7vYtx2AUyDc+NcLKc/BOJUA=" |
| 1374 |
key_encrypted: true |
| 1375 |
- key_id: 3 |
| 1376 |
key: "U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo=" |
| 1377 |
key_encrypted: true |
| 1378 |
authentication: |
| 1379 |
auth_type: message_digest |
| 1380 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1381 |
key_encrypted: true |
| 1382 |
|
| 1383 |
# After state |
| 1384 |
|
| 1385 |
# sonic# show running-configuration ospf |
| 1386 |
# router ospf vrf Vrf1 |
| 1387 |
# area 0.0.0.1 authentication message-digest |
| 1388 |
# area 0.0.0.1 stub |
| 1389 |
# area 0.0.0.1 default-cost 5 |
| 1390 |
# area 0.0.0.2 authentication message-digest |
| 1391 |
# area 0.0.0.2 stub no-summary |
| 1392 |
# area 0.0.0.2 default-cost 3 |
| 1393 |
# area 0.0.0.2 filter-list prefix pf1 in |
| 1394 |
# area 0.0.0.2 filter-list prefix pf2 out |
| 1395 |
# area 0.0.0.2 shortcut default |
| 1396 |
# area 0.0.0.3 |
| 1397 |
# area 0.0.0.4 shortcut default |
| 1398 |
# area 0.0.0.5 stub |
| 1399 |
# area 0.0.0.5 default-cost 5 |
| 1400 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1401 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication |
| 1402 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1403 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1404 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1405 |
# area 0.0.0.4 virtual-link 34.7.35.1 |
| 1406 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication |
| 1407 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1408 |
# area 0.0.0.4 virtual-link 34.7.35.1 hello-interval 30 |
| 1409 |
# area 0.0.0.4 virtual-link 34.7.35.1 transmit-delay 50 |
| 1410 |
# area 0.0.0.4 virtual-link 34.7.35.2 |
| 1411 |
# area 0.0.0.4 virtual-link 34.7.35.2 authentication message-digest |
| 1412 |
# area 0.0.0.4 virtual-link 34.7.35.2 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1413 |
# area 0.0.0.4 virtual-link 34.7.35.2 dead-interval 10 |
| 1414 |
# area 0.0.0.4 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1415 |
# area 0.0.0.4 virtual-link 34.7.35.2 transmit-delay 50 |
| 1416 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1417 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1418 |
# area 0.0.0.3 range 1.1.1.1/24 advertise |
| 1419 |
# area 0.0.0.3 range 1.1.1.1/24 substitute 11.2.5.1/24 |
| 1420 |
# area 0.0.0.3 range 1.1.1.2/24 advertise cost 4 |
| 1421 |
# area 0.0.0.3 range 1.1.1.3/24 advertise |
| 1422 |
# area 0.0.0.3 range 1.1.1.3/24 substitute 2.5.3.78/24 |
| 1423 |
# network 1.1.1.1/24 area 0.0.0.1 |
| 1424 |
# network 23.235.75.1/23 area 0.0.0.1 |
| 1425 |
# network 3.5.1.5/23 area 0.0.0.1 |
| 1426 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1427 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1428 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1429 |
# ! |
| 1430 |
# router ospf vrf Vrf2 |
| 1431 |
# ! |
| 1432 |
# ---------- |
| 1433 |
|
| 1434 |
# ============ OVERRIDDEN ================== |
| 1435 |
|
| 1436 |
# Scenario: override listed areas |
| 1437 |
|
| 1438 |
# Before state: |
| 1439 |
|
| 1440 |
# sonic# show running-configuration ospf |
| 1441 |
# router ospf vrf Vrf1 |
| 1442 |
# area 0.0.0.1 filter-list prefix pf1 in |
| 1443 |
# area 0.0.0.1 filter-list prefix pf2 out |
| 1444 |
# area 0.0.0.2 authentication message-digest |
| 1445 |
# area 0.0.0.3 |
| 1446 |
# area 0.0.0.4 stub no-summary |
| 1447 |
# area 0.0.0.4 default-cost 3 |
| 1448 |
# area 0.0.0.4 shortcut default |
| 1449 |
# area 0.0.0.5 stub |
| 1450 |
# area 0.0.0.5 default-cost 5 |
| 1451 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1452 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication |
| 1453 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1454 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1455 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1456 |
# area 0.0.0.3 virtual-link 34.7.35.2 |
| 1457 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication message-digest |
| 1458 |
# area 0.0.0.3 virtual-link 34.7.35.2 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1459 |
# area 0.0.0.3 virtual-link 34.7.35.2 dead-interval 10 |
| 1460 |
# area 0.0.0.3 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1461 |
# area 0.0.0.3 virtual-link 34.7.35.2 transmit-delay 50 |
| 1462 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1463 |
# area 0.0.0.3 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1464 |
# area 0.0.0.1 range 1.1.1.1/24 advertise cost 13 |
| 1465 |
# area 0.0.0.1 range 1.1.1.1/24 substitute 11.2.5.1/24 |
| 1466 |
# area 0.0.0.1 range 1.1.1.2/24 advertise cost 4 |
| 1467 |
# area 0.0.0.1 range 1.1.1.3/24 advertise |
| 1468 |
# area 0.0.0.1 range 1.1.1.3/24 substitute 2.2.2.2/24 |
| 1469 |
# area 0.0.0.1 range 1.1.1.4/24 advertise cost 34 |
| 1470 |
# area 0.0.0.1 range 1.1.1.4/24 substitute 3.3.3.3/24 |
| 1471 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1472 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1473 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1474 |
# ! |
| 1475 |
# router ospf vrf Vrf2 |
| 1476 |
# ! |
| 1477 |
|
| 1478 |
# example: |
| 1479 |
- name: "override areas" |
| 1480 |
sonic_ospf_area: |
| 1481 |
state: overridden |
| 1482 |
config: |
| 1483 |
- area_id: 0.0.0.1 |
| 1484 |
vrf_name: Vrf1 |
| 1485 |
authentication_type: message_digest |
| 1486 |
networks: |
| 1487 |
- 1.1.1.1/24 |
| 1488 |
- 3.5.1.5/23 |
| 1489 |
- 23.235.75.1/23 |
| 1490 |
default_cost: 5 |
| 1491 |
stub: |
| 1492 |
enabled: true |
| 1493 |
no_summary: false |
| 1494 |
- area_id: 0.0.0.2 |
| 1495 |
vrf_name: Vrf1 |
| 1496 |
filter_list_in: pf1 |
| 1497 |
filter_list_out: pf2 |
| 1498 |
shortcut: default |
| 1499 |
default_cost: 3 |
| 1500 |
stub: |
| 1501 |
enabled: true |
| 1502 |
no_summary: true |
| 1503 |
authentication_type: message_digest |
| 1504 |
networks: |
| 1505 |
- 1.1.1.1/24 |
| 1506 |
- 3.5.1.5/23 |
| 1507 |
- 23.235.75.1/23 |
| 1508 |
- area_id: 3 |
| 1509 |
vrf_name: Vrf1 |
| 1510 |
virtual_links: |
| 1511 |
- router_id: 34.7.35.1 |
| 1512 |
enabled: true |
| 1513 |
transmit_delay: 50 |
| 1514 |
hello_interval: 30 |
| 1515 |
authentication: |
| 1516 |
auth_type: text |
| 1517 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1518 |
key_encrypted: true |
| 1519 |
ranges: |
| 1520 |
- prefix: 1.1.1.1/24 |
| 1521 |
advertise: true |
| 1522 |
substitute: 11.2.5.1/24 |
| 1523 |
- prefix: 1.1.1.2/24 |
| 1524 |
advertise: true |
| 1525 |
cost: 4 |
| 1526 |
- prefix: 1.1.1.3/24 |
| 1527 |
advertise: true |
| 1528 |
substitute: 2.5.3.78/24 |
| 1529 |
- area_id: 4 |
| 1530 |
vrf_name: Vrf1 |
| 1531 |
shortcut: default |
| 1532 |
virtual_links: |
| 1533 |
- router_id: 34.7.35.1 |
| 1534 |
enabled: true |
| 1535 |
transmit_delay: 50 |
| 1536 |
hello_interval: 30 |
| 1537 |
authentication: |
| 1538 |
auth_type: text |
| 1539 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1540 |
key_encrypted: true |
| 1541 |
- router_id: 34.7.35.2 |
| 1542 |
transmit_delay: 50 |
| 1543 |
enabled: true |
| 1544 |
dead_interval: 10 |
| 1545 |
retransmit_interval: 40 |
| 1546 |
message_digest_list: |
| 1547 |
- key_id: 1 |
| 1548 |
key: "U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA=" |
| 1549 |
key_encrypted: true |
| 1550 |
- key_id: 3 |
| 1551 |
key: "U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo=" |
| 1552 |
key_encrypted: true |
| 1553 |
authentication: |
| 1554 |
auth_type: message_digest |
| 1555 |
key: "U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ=" |
| 1556 |
key_encrypted: true |
| 1557 |
|
| 1558 |
# After state |
| 1559 |
|
| 1560 |
# sonic# show running-configuration ospf |
| 1561 |
# router ospf vrf Vrf1 |
| 1562 |
# area 0.0.0.1 authentication message-digest |
| 1563 |
# area 0.0.0.1 stub |
| 1564 |
# area 0.0.0.1 default-cost 5 |
| 1565 |
# area 0.0.0.2 authentication message-digest |
| 1566 |
# area 0.0.0.2 stub no-summary |
| 1567 |
# area 0.0.0.2 default-cost 3 |
| 1568 |
# area 0.0.0.2 filter-list prefix pf1 in |
| 1569 |
# area 0.0.0.2 filter-list prefix pf2 out |
| 1570 |
# area 0.0.0.2 shortcut default |
| 1571 |
# area 0.0.0.3 |
| 1572 |
# area 0.0.0.4 shortcut default |
| 1573 |
# area 0.0.0.3 virtual-link 34.7.35.1 |
| 1574 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication |
| 1575 |
# area 0.0.0.3 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1576 |
# area 0.0.0.3 virtual-link 34.7.35.1 hello-interval 30 |
| 1577 |
# area 0.0.0.3 virtual-link 34.7.35.1 transmit-delay 50 |
| 1578 |
# area 0.0.0.4 virtual-link 34.7.35.1 |
| 1579 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication |
| 1580 |
# area 0.0.0.4 virtual-link 34.7.35.1 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1581 |
# area 0.0.0.4 virtual-link 34.7.35.1 hello-interval 30 |
| 1582 |
# area 0.0.0.4 virtual-link 34.7.35.1 transmit-delay 50 |
| 1583 |
# area 0.0.0.4 virtual-link 34.7.35.2 |
| 1584 |
# area 0.0.0.4 virtual-link 34.7.35.2 authentication message-digest |
| 1585 |
# area 0.0.0.4 virtual-link 34.7.35.2 authentication-key U2FsdGVkX18zN46d3pzk+t7TofEHAZGY+5RvgXMwDiQ= encrypted |
| 1586 |
# area 0.0.0.4 virtual-link 34.7.35.2 dead-interval 10 |
| 1587 |
# area 0.0.0.4 virtual-link 34.7.35.2 retransmit-interval 40 |
| 1588 |
# area 0.0.0.4 virtual-link 34.7.35.2 transmit-delay 50 |
| 1589 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 1 md5 U2FsdGVkX18mUZjlJL/Q/7vYtx2UyDc+NcLKc/BOJUA= encrypted |
| 1590 |
# area 0.0.0.4 virtual-link 34.7.35.2 message-digest-key 3 md5 U2FsdGVkX19SlRpqsnpeRmjq7WmtctYtveHlYF0Faqo= encrypted |
| 1591 |
# area 0.0.0.3 range 1.1.1.1/24 advertise |
| 1592 |
# area 0.0.0.3 range 1.1.1.1/24 substitute 11.2.5.1/24 |
| 1593 |
# area 0.0.0.3 range 1.1.1.2/24 advertise cost 4 |
| 1594 |
# area 0.0.0.3 range 1.1.1.3/24 advertise |
| 1595 |
# area 0.0.0.3 range 1.1.1.3/24 substitute 2.5.3.78/24 |
| 1596 |
# network 1.1.1.1/24 area 0.0.0.1 |
| 1597 |
# network 23.235.75.1/23 area 0.0.0.1 |
| 1598 |
# network 3.5.1.5/23 area 0.0.0.1 |
| 1599 |
# network 1.1.1.1/24 area 0.0.0.2 |
| 1600 |
# network 23.235.75.1/23 area 0.0.0.2 |
| 1601 |
# network 3.5.1.5/23 area 0.0.0.2 |
| 1602 |
# ! |
| 1603 |
# router ospf vrf Vrf2 |
| 1604 |
# ! |
| 1605 |
# ---------- |
| 1606 |
|
| 1607 |
|
| 1608 |
|
| 1609 |
Return Values |
| 1610 |
------------- |
| 1611 |
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: |
| 1612 |
|
| 1613 |
.. raw:: html |
| 1614 |
|
| 1615 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 1616 |
<tr> |
| 1617 |
<th colspan="1">Key</th> |
| 1618 |
<th>Returned</th> |
| 1619 |
<th width="100%">Description</th> |
| 1620 |
</tr> |
| 1621 |
<tr> |
| 1622 |
<td colspan="1"> |
| 1623 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1624 |
<b>after</b> |
| 1625 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1626 |
<div style="font-size: small"> |
| 1627 |
<span style="color: purple">list</span> |
| 1628 |
</div> |
| 1629 |
</td> |
| 1630 |
<td>when changed</td> |
| 1631 |
<td> |
| 1632 |
<div>The resulting configuration model invocation.</div> |
| 1633 |
<br/> |
| 1634 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1635 |
<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 |
| 1636 |
as the parameters above.</div> |
| 1637 |
</td> |
| 1638 |
</tr> |
| 1639 |
<tr> |
| 1640 |
<td colspan="1"> |
| 1641 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1642 |
<b>before</b> |
| 1643 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1644 |
<div style="font-size: small"> |
| 1645 |
<span style="color: purple">list</span> |
| 1646 |
</div> |
| 1647 |
</td> |
| 1648 |
<td>always</td> |
| 1649 |
<td> |
| 1650 |
<div>The configuration prior to the model invocation.</div> |
| 1651 |
<br/> |
| 1652 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1653 |
<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 |
| 1654 |
as the parameters above.</div> |
| 1655 |
</td> |
| 1656 |
</tr> |
| 1657 |
<tr> |
| 1658 |
<td colspan="1"> |
| 1659 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1660 |
<b>commands</b> |
| 1661 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1662 |
<div style="font-size: small"> |
| 1663 |
<span style="color: purple">list</span> |
| 1664 |
</div> |
| 1665 |
</td> |
| 1666 |
<td>always</td> |
| 1667 |
<td> |
| 1668 |
<div>The set of commands pushed to the remote device.</div> |
| 1669 |
<br/> |
| 1670 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1671 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[{'config': '...', 'state': '...'}, {'config': '...', 'state': '...'}]</div> |
| 1672 |
</td> |
| 1673 |
</tr> |
| 1674 |
</table> |
| 1675 |
<br/><br/> |
| 1676 |
|
| 1677 |
|
| 1678 |
Status |
| 1679 |
------ |
| 1680 |
|
| 1681 |
|
| 1682 |
Authors |
| 1683 |
~~~~~~~ |
| 1684 |
|
| 1685 |
- Xiao Han (@Xiao_Han2) |