| 1 |
#!/usr/bin/python |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
# Copyright 2020 Red Hat |
| 4 |
# GNU General Public License v3.0+ |
| 5 |
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 6 |
|
| 7 |
############################################# |
| 8 |
# WARNING # |
| 9 |
############################################# |
| 10 |
# |
| 11 |
# This file is auto generated by the resource |
| 12 |
# module builder playbook. |
| 13 |
# |
| 14 |
# Do not edit this file manually. |
| 15 |
# |
| 16 |
# Changes to this file will be over written |
| 17 |
# by the resource module builder. |
| 18 |
# |
| 19 |
# Changes should be made in the model used to |
| 20 |
# generate this file or in the resource module |
| 21 |
# builder template. |
| 22 |
# |
| 23 |
############################################# |
| 24 |
|
| 25 |
""" |
| 26 |
The module file for iosxr_ospfv3 |
| 27 |
""" |
| 28 |
|
| 29 |
from __future__ import absolute_import, division, print_function |
| 30 |
|
| 31 |
|
| 32 |
__metaclass__ = type |
| 33 |
|
| 34 |
DOCUMENTATION = """ |
| 35 |
module: iosxr_ospfv3 |
| 36 |
version_added: 1.1.0 |
| 37 |
short_description: Resource module to configure OSPFv3. |
| 38 |
description: |
| 39 |
- This module manages global ospfv3 configuration on devices running Cisco IOS-XR |
| 40 |
author: Rohit Thakur (@rohitthakur2590) |
| 41 |
notes: |
| 42 |
- This module works with connection C(network_cli). See L(the IOS-XR Platform Options,../network/user_guide/platform_iosxr.html) |
| 43 |
options: |
| 44 |
running_config: |
| 45 |
description: |
| 46 |
- This option is used only with state I(parsed). |
| 47 |
- The value of this option should be the output received from the IOS-XR device |
| 48 |
by executing the command B(show running-config router ospfv3). |
| 49 |
- The state I(parsed) reads the configuration from C(running_config) option and |
| 50 |
transforms it into Ansible structured data as per the resource module's argspec |
| 51 |
and the value is then returned in the I(parsed) key within the result. |
| 52 |
type: str |
| 53 |
config: |
| 54 |
description: A list of ospfv3 process configuration |
| 55 |
type: dict |
| 56 |
suboptions: |
| 57 |
processes: |
| 58 |
description: A list of ospfv3 instances configuration |
| 59 |
type: list |
| 60 |
elements: dict |
| 61 |
suboptions: |
| 62 |
process_id: |
| 63 |
description: The OSPFv3 Process ID |
| 64 |
type: str |
| 65 |
required: true |
| 66 |
address_family_unicast: |
| 67 |
description: Enable unicast topology for ipv4 address family |
| 68 |
type: bool |
| 69 |
authentication: |
| 70 |
description: Enable authentication |
| 71 |
type: dict |
| 72 |
suboptions: |
| 73 |
disable: |
| 74 |
description: Do not authenticate OSPFv3 packets |
| 75 |
type: bool |
| 76 |
default: false |
| 77 |
ipsec: |
| 78 |
description: Specify IPSec AH authentication attributes |
| 79 |
type: dict |
| 80 |
suboptions: |
| 81 |
spi: |
| 82 |
description: Specify the Security Parameter Index value |
| 83 |
type: int |
| 84 |
algorithim_type: |
| 85 |
description: Specify the type of algorithim |
| 86 |
type: str |
| 87 |
choices: ["md5", "sha1"] |
| 88 |
key: |
| 89 |
description: Specify key |
| 90 |
type: str |
| 91 |
clear_key: |
| 92 |
description: Specify key in cleartext form |
| 93 |
type: str |
| 94 |
password_key: |
| 95 |
description: Specify key in encrypted form |
| 96 |
type: str |
| 97 |
auto_cost: |
| 98 |
description: Calculate ospfv3 interface cost according to bandwidth |
| 99 |
type: dict |
| 100 |
suboptions: |
| 101 |
reference_bandwidth: |
| 102 |
description: Specify reference bandwidth in megabits per sec |
| 103 |
type: int |
| 104 |
disable: |
| 105 |
description: Assign ospfv3 cost based on interface type |
| 106 |
type: bool |
| 107 |
bfd: |
| 108 |
description: Configure BFD parameters |
| 109 |
type: dict |
| 110 |
suboptions: |
| 111 |
fast_detect: |
| 112 |
description: Configure fast detection |
| 113 |
type: dict |
| 114 |
suboptions: |
| 115 |
set: |
| 116 |
description: Enable fast detection only |
| 117 |
type: bool |
| 118 |
strict_mode: |
| 119 |
description: Hold down neighbor session until BFD session is up |
| 120 |
type: bool |
| 121 |
minimum_interval: |
| 122 |
description: Hello interval in milli-seconds |
| 123 |
type: int |
| 124 |
multiplier: |
| 125 |
description: Detect multiplier |
| 126 |
type: int |
| 127 |
areas: |
| 128 |
description: Configure ospfv3 areas' properties |
| 129 |
type: list |
| 130 |
elements: dict |
| 131 |
suboptions: |
| 132 |
area_id: |
| 133 |
description: Area ID as IP address or integer |
| 134 |
type: str |
| 135 |
required: True |
| 136 |
authentication: |
| 137 |
description: Enable authentication |
| 138 |
type: dict |
| 139 |
suboptions: |
| 140 |
disable: |
| 141 |
description: Do not authenticate OSPFv3 packets |
| 142 |
type: bool |
| 143 |
default: false |
| 144 |
ipsec: |
| 145 |
description: Specify IPSec AH authentication attributes |
| 146 |
type: dict |
| 147 |
suboptions: |
| 148 |
spi: |
| 149 |
description: Specify the Security Parameter Index value |
| 150 |
type: int |
| 151 |
algorithim_type: |
| 152 |
description: Specify the type of algorithim |
| 153 |
type: str |
| 154 |
choices: ["md5", "sha1"] |
| 155 |
key: |
| 156 |
description: Specify key |
| 157 |
type: str |
| 158 |
clear_key: |
| 159 |
description: Specify key in cleartext form |
| 160 |
type: str |
| 161 |
password_key: |
| 162 |
description: Specify key in encrypted form |
| 163 |
type: str |
| 164 |
bfd: |
| 165 |
description: Configure BFD parameters |
| 166 |
type: dict |
| 167 |
suboptions: |
| 168 |
fast_detect: |
| 169 |
description: Configure fast detection |
| 170 |
type: dict |
| 171 |
suboptions: |
| 172 |
set: |
| 173 |
description: Enable fast detection only |
| 174 |
type: bool |
| 175 |
strict_mode: |
| 176 |
description: Hold down neighbor session until BFD session is up |
| 177 |
type: bool |
| 178 |
minimum_interval: |
| 179 |
description: Hello interval in milli-seconds |
| 180 |
type: int |
| 181 |
multiplier: |
| 182 |
description: Detect multiplier |
| 183 |
type: int |
| 184 |
cost: |
| 185 |
description: Interface cost |
| 186 |
type: int |
| 187 |
database_filter: |
| 188 |
description: Filter LSAs during synchronization and flooding |
| 189 |
type: dict |
| 190 |
suboptions: |
| 191 |
all_outgoing_lsa: |
| 192 |
description: Filter all outgoing LSA |
| 193 |
type: bool |
| 194 |
dead_interval: |
| 195 |
description: Interval after which a neighbor is declared dead |
| 196 |
type: int |
| 197 |
default_cost: |
| 198 |
description: Set the summary default-cost of a NSSA/stub area. Stub's advertised external route metric |
| 199 |
type: int |
| 200 |
demand_circuit: |
| 201 |
description: Enable/Disable ospfv3 demand circuit |
| 202 |
type: bool |
| 203 |
distrinbute_rib_prefix_list_name: |
| 204 |
description: Filter LSAs during synchronization and flooding |
| 205 |
type: str |
| 206 |
fast_reroute: |
| 207 |
description: Specify IP Fast Reroute |
| 208 |
type: dict |
| 209 |
suboptions: |
| 210 |
disabled: |
| 211 |
description: Disable IP fast reroute |
| 212 |
type: bool |
| 213 |
per_link: |
| 214 |
description: Specify per-prefix computation |
| 215 |
type: dict |
| 216 |
suboptions: |
| 217 |
information_type: |
| 218 |
description: Specify per-link LFA exclusion or FRR LFA candidate information |
| 219 |
type: str |
| 220 |
choices: ["exclude", "lfa_candidate"] |
| 221 |
use_candidate_only: |
| 222 |
description: Enable/Disable backup selection from candidate-list only |
| 223 |
type: bool |
| 224 |
interface: |
| 225 |
description: Specify Per-link LFA exclusion information |
| 226 |
type: dict |
| 227 |
suboptions: |
| 228 |
bvi: |
| 229 |
description: Specify Bridge-Group Virtual Interface |
| 230 |
type: list |
| 231 |
elements: int |
| 232 |
bundle_ether: |
| 233 |
description: Specify Aggregated Ethernet interface(s) |
| 234 |
type: list |
| 235 |
elements: int |
| 236 |
pos_int: |
| 237 |
description: Specify Aggregated pos interface(s) |
| 238 |
type: list |
| 239 |
elements: int |
| 240 |
fast_ethernet: |
| 241 |
description: Specify FastEthernet/IEEE 802.3 interface(s) |
| 242 |
type: list |
| 243 |
elements: str |
| 244 |
fiftygige: |
| 245 |
description: Specify FiftyGigE/IEEE 802.3 interface(s) |
| 246 |
type: list |
| 247 |
elements: str |
| 248 |
fortygige: |
| 249 |
description: Specify FortyGigE/IEEE 802.3 interface(s) |
| 250 |
type: list |
| 251 |
elements: str |
| 252 |
fourhundredgige: |
| 253 |
description: Specify FourHundredGigE/IEEE 802.3 interface(s) |
| 254 |
type: list |
| 255 |
elements: str |
| 256 |
gigabitethernet: |
| 257 |
description: Specify GigabitEthernet/IEEE 802.3 interface(s) |
| 258 |
type: list |
| 259 |
elements: str |
| 260 |
hundredgige: |
| 261 |
description: Specify HundredGigE/IEEE 802.3 interface(s) |
| 262 |
type: list |
| 263 |
elements: str |
| 264 |
mgmteth: |
| 265 |
description: Specify MgmtEth/IEEE 802.3 interface(s) |
| 266 |
type: list |
| 267 |
elements: str |
| 268 |
multilink: |
| 269 |
description: Specify Multilink network interface(s) |
| 270 |
type: list |
| 271 |
elements: str |
| 272 |
pw_ether: |
| 273 |
description: Specify PWHE Ethernet Interface |
| 274 |
type: list |
| 275 |
elements: int |
| 276 |
pw_iw: |
| 277 |
description: Specify PWHE VC11 IP Interworking Interface |
| 278 |
type: list |
| 279 |
elements: int |
| 280 |
srp: |
| 281 |
description: Specify SRP interface(s) |
| 282 |
type: list |
| 283 |
elements: str |
| 284 |
serial: |
| 285 |
description: Specify Serial network interface(s) |
| 286 |
type: list |
| 287 |
elements: str |
| 288 |
tengige: |
| 289 |
description: Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
| 290 |
type: list |
| 291 |
elements: str |
| 292 |
twentyfivegige: |
| 293 |
description: Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
| 294 |
type: list |
| 295 |
elements: str |
| 296 |
twohundredgige: |
| 297 |
description: Specify TwoHundredGigE/IEEE 802.3 interface(s) |
| 298 |
type: list |
| 299 |
elements: str |
| 300 |
nve: |
| 301 |
description: Specify Network Virtualization Endpoint Interface(s) |
| 302 |
type: list |
| 303 |
elements: int |
| 304 |
tunnel_ip: |
| 305 |
description: Specify GRE/IPinIP Tunnel Interface(s) |
| 306 |
type: list |
| 307 |
elements: int |
| 308 |
tunnel_ipsec: |
| 309 |
description: Specify IPSec Tunnel interface(s) |
| 310 |
type: list |
| 311 |
elements: int |
| 312 |
tunnel_mte: |
| 313 |
description: Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
| 314 |
type: list |
| 315 |
elements: int |
| 316 |
tunnel_mpls: |
| 317 |
description: MPLS Transport Protocol Tunnel interface |
| 318 |
type: int |
| 319 |
per_prefix: |
| 320 |
description: Specify per-prefix computation |
| 321 |
type: dict |
| 322 |
suboptions: |
| 323 |
information_type: |
| 324 |
description: Specify per_prefix LFA exclusion or FRR LFA candidate information |
| 325 |
type: str |
| 326 |
choices: ["exclude", "lfa_candidate"] |
| 327 |
use_candidate_only: |
| 328 |
description: Enable/Disable backup selection from candidate-list only |
| 329 |
type: bool |
| 330 |
interface: |
| 331 |
description: Specify Per-link LFA exclusion information |
| 332 |
type: dict |
| 333 |
suboptions: |
| 334 |
bvi: |
| 335 |
description: Specify Bridge-Group Virtual Interface |
| 336 |
type: list |
| 337 |
elements: int |
| 338 |
bundle_ether: |
| 339 |
description: Specify Aggregated Ethernet interface(s) |
| 340 |
type: list |
| 341 |
elements: int |
| 342 |
pos_int: |
| 343 |
description: Specify Aggregated pos interface(s) |
| 344 |
type: list |
| 345 |
elements: int |
| 346 |
fast_ethernet: |
| 347 |
description: Specify FastEthernet/IEEE 802.3 interface(s) |
| 348 |
type: list |
| 349 |
elements: str |
| 350 |
fiftygige: |
| 351 |
description: Specify FiftyGigE/IEEE 802.3 interface(s) |
| 352 |
type: list |
| 353 |
elements: str |
| 354 |
fortygige: |
| 355 |
description: Specify FortyGigE/IEEE 802.3 interface(s) |
| 356 |
type: list |
| 357 |
elements: str |
| 358 |
fourhundredgige: |
| 359 |
description: Specify FourHundredGigE/IEEE 802.3 interface(s) |
| 360 |
type: list |
| 361 |
elements: str |
| 362 |
gigabitethernet: |
| 363 |
description: Specify GigabitEthernet/IEEE 802.3 interface(s) |
| 364 |
type: list |
| 365 |
elements: str |
| 366 |
hundredgige: |
| 367 |
description: Specify HundredGigE/IEEE 802.3 interface(s) |
| 368 |
type: list |
| 369 |
elements: str |
| 370 |
mgmteth: |
| 371 |
description: Specify MgmtEth/IEEE 802.3 interface(s) |
| 372 |
type: list |
| 373 |
elements: str |
| 374 |
multilink: |
| 375 |
description: Specify Multilink network interface(s) |
| 376 |
type: list |
| 377 |
elements: str |
| 378 |
pw_ether: |
| 379 |
description: Specify PWHE Ethernet Interface |
| 380 |
type: list |
| 381 |
elements: int |
| 382 |
pw_iw: |
| 383 |
description: Specify PWHE VC11 IP Interworking Interface |
| 384 |
type: list |
| 385 |
elements: int |
| 386 |
srp: |
| 387 |
description: Specify SRP interface(s) |
| 388 |
type: list |
| 389 |
elements: str |
| 390 |
serial: |
| 391 |
description: Specify Serial network interface(s) |
| 392 |
type: list |
| 393 |
elements: str |
| 394 |
tengige: |
| 395 |
description: Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
| 396 |
type: list |
| 397 |
elements: str |
| 398 |
twentyfivegige: |
| 399 |
description: Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
| 400 |
type: list |
| 401 |
elements: str |
| 402 |
twohundredgige: |
| 403 |
description: Specify TwoHundredGigE/IEEE 802.3 interface(s) |
| 404 |
type: list |
| 405 |
elements: str |
| 406 |
nve: |
| 407 |
description: Specify Network Virtualization Endpoint Interface(s) |
| 408 |
type: list |
| 409 |
elements: int |
| 410 |
tunnel_ip: |
| 411 |
description: Specify GRE/IPinIP Tunnel Interface(s) |
| 412 |
type: list |
| 413 |
elements: int |
| 414 |
tunnel_ipsec: |
| 415 |
description: Specify IPSec Tunnel interface(s) |
| 416 |
type: list |
| 417 |
elements: int |
| 418 |
tunnel_mte: |
| 419 |
description: Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
| 420 |
type: list |
| 421 |
elements: int |
| 422 |
tunnel_mpls: |
| 423 |
description: MPLS Transport Protocol Tunnel interface |
| 424 |
type: int |
| 425 |
flood_reduction: |
| 426 |
description: Enable/Disable flood reduction |
| 427 |
type: bool |
| 428 |
hello_interval: |
| 429 |
description: Specify Time between HELLO packets |
| 430 |
type: int |
| 431 |
instance_id: |
| 432 |
description: Specify instance ID |
| 433 |
type: int |
| 434 |
mtu_ignore: |
| 435 |
description: Enable/Disable ignoring of MTU in DBD packets |
| 436 |
type: bool |
| 437 |
mpls_ldp_sync: |
| 438 |
description: Enable/Disable MPLS LDP Sync |
| 439 |
type: bool |
| 440 |
network: |
| 441 |
description: Specify Network type |
| 442 |
type: str |
| 443 |
choices: ["broadcast", "non-broadcast", "point-to-multipoint", "point-to-point"] |
| 444 |
nssa: |
| 445 |
description: NSSA settings for the area |
| 446 |
type: dict |
| 447 |
suboptions: |
| 448 |
set: |
| 449 |
description: Configure area as NSSA |
| 450 |
type: bool |
| 451 |
default_information_originate: |
| 452 |
description: Originate default Type 7 LSA |
| 453 |
type: dict |
| 454 |
suboptions: |
| 455 |
set: |
| 456 |
description: Set nssa to default information originate |
| 457 |
type: bool |
| 458 |
metric: |
| 459 |
description: ospfv3 default metric |
| 460 |
type: int |
| 461 |
metric_type: |
| 462 |
description: Metric type for default routes |
| 463 |
type: int |
| 464 |
no_redistribution: |
| 465 |
description: Do not send redistributed LSAs into NSSA area |
| 466 |
type: bool |
| 467 |
no_summary: |
| 468 |
description: Do not send summary LSAs into NSSA area |
| 469 |
type: bool |
| 470 |
translate: |
| 471 |
description: Translate LSA |
| 472 |
type: dict |
| 473 |
suboptions: |
| 474 |
type7: |
| 475 |
description: Translate from Type 7 to Type 5 |
| 476 |
type: dict |
| 477 |
suboptions: |
| 478 |
always: |
| 479 |
description: Always translate LSAs |
| 480 |
type: bool |
| 481 |
required: true |
| 482 |
packet_size: |
| 483 |
description: Specify limit size of OSPFv3 packets |
| 484 |
type: int |
| 485 |
passive: |
| 486 |
description: Enable/Disable routing updates on an interface |
| 487 |
type: bool |
| 488 |
prefix_suppression: |
| 489 |
description: Hide all transit addresses on this interface |
| 490 |
type: bool |
| 491 |
priority: |
| 492 |
description: Specify Router priority |
| 493 |
type: int |
| 494 |
ranges: |
| 495 |
description: Summarize routes matching address/mask (border routers only) |
| 496 |
type: list |
| 497 |
elements: dict |
| 498 |
suboptions: |
| 499 |
address: |
| 500 |
description: IP in Prefix format (X:X::X/length) |
| 501 |
type: str |
| 502 |
required: True |
| 503 |
cost: |
| 504 |
description: Specify user specified metric for this range |
| 505 |
type: int |
| 506 |
advertise: |
| 507 |
description: Advertise this range (default) |
| 508 |
type: bool |
| 509 |
not_advertise: |
| 510 |
description: DoNotAdvertise this range |
| 511 |
type: bool |
| 512 |
retransmit_interval: |
| 513 |
description: Specify Delay between LSA retransmissions |
| 514 |
type: int |
| 515 |
stub: |
| 516 |
description: Settings for configuring the area as a stub |
| 517 |
type: dict |
| 518 |
suboptions: |
| 519 |
set: |
| 520 |
description: Configure the area as a stub |
| 521 |
type: bool |
| 522 |
no_summary: |
| 523 |
description: Do not send summary LSA into stub area |
| 524 |
type: bool |
| 525 |
transmit_delay: |
| 526 |
description: Specify estimated time needed to send link-state update packet |
| 527 |
type: int |
| 528 |
virtual_link: |
| 529 |
description: Define a virtual link |
| 530 |
type: list |
| 531 |
elements: dict |
| 532 |
suboptions: |
| 533 |
id: |
| 534 |
description: Router-ID of virtual link neighbor (A.B.C.D) |
| 535 |
type: str |
| 536 |
required: True |
| 537 |
authentication: |
| 538 |
description: Enable authentication |
| 539 |
type: dict |
| 540 |
suboptions: |
| 541 |
disable: |
| 542 |
description: Do not authenticate OSPFv3 packets |
| 543 |
type: bool |
| 544 |
default: false |
| 545 |
ipsec: |
| 546 |
description: Specify IPSec AH authentication attributes |
| 547 |
type: dict |
| 548 |
suboptions: |
| 549 |
spi: |
| 550 |
description: Specify the Security Parameter Index value |
| 551 |
type: int |
| 552 |
algorithim_type: |
| 553 |
description: Specify the type of algorithim |
| 554 |
type: str |
| 555 |
choices: ["md5", "sha1"] |
| 556 |
key: |
| 557 |
description: Specify key |
| 558 |
type: str |
| 559 |
clear_key: |
| 560 |
description: Specify key in cleartext form |
| 561 |
type: str |
| 562 |
password_key: |
| 563 |
description: Specify key in encrypted form |
| 564 |
type: str |
| 565 |
dead_interval: |
| 566 |
description: Interval after which a neighbor is declared dead |
| 567 |
type: int |
| 568 |
hello_interval: |
| 569 |
description: Time between HELLO packets |
| 570 |
type: int |
| 571 |
retransmit_interval: |
| 572 |
description: Delay between LSA retransmissions |
| 573 |
type: int |
| 574 |
transmit_delay: |
| 575 |
description: Link state transmit delay |
| 576 |
type: int |
| 577 |
encryption: |
| 578 |
description: Encrypt and authenticate OSPFv3 packets |
| 579 |
type: dict |
| 580 |
suboptions: |
| 581 |
disable: |
| 582 |
description: Do not encrypt OSPFv3 packets |
| 583 |
type: bool |
| 584 |
default: false |
| 585 |
ipsec: |
| 586 |
description: Specify IPSec ESP encryption and authentication |
| 587 |
type: dict |
| 588 |
suboptions: |
| 589 |
spi: |
| 590 |
description: Specify the Security Parameter Index value |
| 591 |
type: int |
| 592 |
esp: |
| 593 |
description: Specify encryption parameters |
| 594 |
type: dict |
| 595 |
suboptions: |
| 596 |
triple_des: |
| 597 |
description: This specify the triple DES algorithim |
| 598 |
type: dict |
| 599 |
suboptions: |
| 600 |
key: |
| 601 |
description: Cleartext 3DES key |
| 602 |
type: str |
| 603 |
clear_key: |
| 604 |
description: Specify 3DES key in cleartext form |
| 605 |
type: str |
| 606 |
password_key: |
| 607 |
description: Specify 3DES key in encrypted form |
| 608 |
type: str |
| 609 |
aes: |
| 610 |
description: This specify the aes algorithim |
| 611 |
type: dict |
| 612 |
suboptions: |
| 613 |
algorithim_type: |
| 614 |
description: Specify the bit encryption for aes algorithim |
| 615 |
type: str |
| 616 |
choices: ["192", "256"] |
| 617 |
key: |
| 618 |
description: Cleartext AES key |
| 619 |
type: str |
| 620 |
clear_key: |
| 621 |
description: Specify AES key in cleartext form |
| 622 |
type: str |
| 623 |
password_key: |
| 624 |
description: Specify AES key in encrypted form |
| 625 |
type: str |
| 626 |
des: |
| 627 |
description: This specify the des algorithim |
| 628 |
type: dict |
| 629 |
suboptions: |
| 630 |
key: |
| 631 |
description: Cleartext AES key |
| 632 |
type: str |
| 633 |
clear_key: |
| 634 |
description: Specify AES key in cleartext form |
| 635 |
type: str |
| 636 |
password_key: |
| 637 |
description: Specify AES key in encrypted form |
| 638 |
type: str |
| 639 |
null_encryption: |
| 640 |
description: Specify null encryption attributes |
| 641 |
type: dict |
| 642 |
suboptions: |
| 643 |
authentication: |
| 644 |
description: Specify authentication parameters |
| 645 |
type: dict |
| 646 |
suboptions: |
| 647 |
algorithim_type: |
| 648 |
description: Specify the type of algorithim |
| 649 |
type: str |
| 650 |
choices: ["md5", "sha1"] |
| 651 |
key: |
| 652 |
description: Specify key |
| 653 |
type: str |
| 654 |
clear_key: |
| 655 |
description: Specify key in cleartext form |
| 656 |
type: str |
| 657 |
password_key: |
| 658 |
description: Specify key in encrypted form |
| 659 |
type: str |
| 660 |
encryption: |
| 661 |
description: Encrypt and authenticate OSPFv3 packets |
| 662 |
type: dict |
| 663 |
suboptions: |
| 664 |
disable: |
| 665 |
description: Do not encrypt OSPFv3 packets |
| 666 |
type: bool |
| 667 |
default: false |
| 668 |
ipsec: |
| 669 |
description: Specify IPSec ESP encryption and authentication |
| 670 |
type: dict |
| 671 |
suboptions: |
| 672 |
spi: |
| 673 |
description: Specify the Security Parameter Index value |
| 674 |
type: int |
| 675 |
esp: |
| 676 |
description: Specify encryption parameters |
| 677 |
type: dict |
| 678 |
suboptions: |
| 679 |
triple_des: |
| 680 |
description: This specify the triple DES algorithim |
| 681 |
type: dict |
| 682 |
suboptions: |
| 683 |
key: |
| 684 |
description: Cleartext 3DES key |
| 685 |
type: str |
| 686 |
clear_key: |
| 687 |
description: Specify 3DES key in cleartext form |
| 688 |
type: str |
| 689 |
password_key: |
| 690 |
description: Specify 3DES key in encrypted form |
| 691 |
type: str |
| 692 |
aes: |
| 693 |
description: This specify the aes algorithim |
| 694 |
type: dict |
| 695 |
suboptions: |
| 696 |
algorithim_type: |
| 697 |
description: Specify the bit encryption for aes algorithim |
| 698 |
type: str |
| 699 |
choices: ["192", "256"] |
| 700 |
key: |
| 701 |
description: Cleartext AES key |
| 702 |
type: str |
| 703 |
clear_key: |
| 704 |
description: Specify AES key in cleartext form |
| 705 |
type: str |
| 706 |
password_key: |
| 707 |
description: Specify AES key in encrypted form |
| 708 |
type: str |
| 709 |
des: |
| 710 |
description: This specify the des algorithim |
| 711 |
type: dict |
| 712 |
suboptions: |
| 713 |
key: |
| 714 |
description: Cleartext AES key |
| 715 |
type: str |
| 716 |
clear_key: |
| 717 |
description: Specify AES key in cleartext form |
| 718 |
type: str |
| 719 |
password_key: |
| 720 |
description: Specify AES key in encrypted form |
| 721 |
type: str |
| 722 |
null_encryption: |
| 723 |
description: Specify null encryption attributes |
| 724 |
type: dict |
| 725 |
suboptions: |
| 726 |
authentication: |
| 727 |
description: Specify authentication parameters |
| 728 |
type: dict |
| 729 |
suboptions: |
| 730 |
algorithim_type: |
| 731 |
description: Specify the type of algorithim |
| 732 |
type: str |
| 733 |
choices: ["md5", "sha1"] |
| 734 |
key: |
| 735 |
description: Specify key |
| 736 |
type: str |
| 737 |
clear_key: |
| 738 |
description: Specify key in cleartext form |
| 739 |
type: str |
| 740 |
password_key: |
| 741 |
description: Specify key in encrypted form |
| 742 |
type: str |
| 743 |
capability: |
| 744 |
description: Enable specific OSPFv3 feature |
| 745 |
type: dict |
| 746 |
suboptions: |
| 747 |
type7: |
| 748 |
description: Specify type7 nssa capability |
| 749 |
type: dict |
| 750 |
suboptions: |
| 751 |
prefer: |
| 752 |
description: Prefer type7 externals over type5 |
| 753 |
type: bool |
| 754 |
translate: |
| 755 |
description: Translate type7 to type5 |
| 756 |
type: bool |
| 757 |
cost: |
| 758 |
description: Specify Interface cost |
| 759 |
type: int |
| 760 |
database_filter: |
| 761 |
description: Filter LSAs during synchronization and flooding |
| 762 |
type: dict |
| 763 |
suboptions: |
| 764 |
all_outgoing_lsa: |
| 765 |
description: Filter all outgoing LSA |
| 766 |
type: bool |
| 767 |
dead_interval: |
| 768 |
description: Interval after which a neighbor is declared dead |
| 769 |
type: int |
| 770 |
default_information_originate: |
| 771 |
description: Control distribution of default information |
| 772 |
type: dict |
| 773 |
suboptions: |
| 774 |
always: |
| 775 |
description: Always advertise default route |
| 776 |
type: bool |
| 777 |
metric: |
| 778 |
description: ospfv3 default metric |
| 779 |
type: int |
| 780 |
metric_type: |
| 781 |
description: ospfv3 metric type for default routes |
| 782 |
type: int |
| 783 |
route_policy: |
| 784 |
description: Apply route-policy to default-information origination |
| 785 |
type: str |
| 786 |
tag: |
| 787 |
description: Set tag for default route |
| 788 |
type: int |
| 789 |
set: |
| 790 |
description: Enable distribution of default route |
| 791 |
type: bool |
| 792 |
default_metric: |
| 793 |
description: Set metric of redistributed routes |
| 794 |
type: int |
| 795 |
demand_circuit: |
| 796 |
description: Enable/Disable ospfv3 demand circuit |
| 797 |
type: bool |
| 798 |
distance: |
| 799 |
description: Define an administrative distance |
| 800 |
type: dict |
| 801 |
suboptions: |
| 802 |
admin_distance: |
| 803 |
description: Administrative distance |
| 804 |
type: int |
| 805 |
ospfv3_distance: |
| 806 |
description: ospfv3 administrative distance |
| 807 |
type: dict |
| 808 |
suboptions: |
| 809 |
external: |
| 810 |
description: Distance for external routes |
| 811 |
type: int |
| 812 |
inter_area: |
| 813 |
description: Distance for inter-area routes |
| 814 |
type: int |
| 815 |
intra_area: |
| 816 |
description: Distance for intra-area routes |
| 817 |
type: int |
| 818 |
distribute_list: |
| 819 |
description: Filter prefixes to/from RIB |
| 820 |
type: dict |
| 821 |
suboptions: |
| 822 |
prefix_list: |
| 823 |
description: Filter prefixes based on an IPv6 prefix-list |
| 824 |
type: list |
| 825 |
elements: str |
| 826 |
suboptions: |
| 827 |
name: |
| 828 |
description: Specify Prefix-list name |
| 829 |
type: str |
| 830 |
in: |
| 831 |
description: Filter prefixes installed to RIB |
| 832 |
type: bool |
| 833 |
out: |
| 834 |
description: Filter prefixes redistributed from RIB |
| 835 |
type: bool |
| 836 |
encryption: |
| 837 |
description: Encrypt and authenticate OSPFv3 packets |
| 838 |
type: dict |
| 839 |
suboptions: |
| 840 |
disable: |
| 841 |
description: Do not encrypt OSPFv3 packets |
| 842 |
type: bool |
| 843 |
default: false |
| 844 |
ipsec: |
| 845 |
description: Specify IPSec ESP encryption and authentication |
| 846 |
type: dict |
| 847 |
suboptions: |
| 848 |
spi: |
| 849 |
description: Specify the Security Parameter Index value |
| 850 |
type: int |
| 851 |
esp: |
| 852 |
description: Specify encryption parameters |
| 853 |
type: dict |
| 854 |
suboptions: |
| 855 |
triple_des: |
| 856 |
description: This specify the triple DES algorithim |
| 857 |
type: dict |
| 858 |
suboptions: |
| 859 |
key: |
| 860 |
description: Cleartext 3DES key |
| 861 |
type: str |
| 862 |
clear_key: |
| 863 |
description: Specify 3DES key in cleartext form |
| 864 |
type: str |
| 865 |
password_key: |
| 866 |
description: Specify 3DES key in encrypted form |
| 867 |
type: str |
| 868 |
aes: |
| 869 |
description: This specify the aes algorithim |
| 870 |
type: dict |
| 871 |
suboptions: |
| 872 |
algorithim_type: |
| 873 |
description: Specify the bit encryption for aes algorithim |
| 874 |
type: str |
| 875 |
choices: ["192", "256"] |
| 876 |
key: |
| 877 |
description: Cleartext AES key |
| 878 |
type: str |
| 879 |
clear_key: |
| 880 |
description: Specify AES key in cleartext form |
| 881 |
type: str |
| 882 |
password_key: |
| 883 |
description: Specify AES key in encrypted form |
| 884 |
type: str |
| 885 |
des: |
| 886 |
description: This specify the des algorithim |
| 887 |
type: dict |
| 888 |
suboptions: |
| 889 |
key: |
| 890 |
description: Cleartext AES key |
| 891 |
type: str |
| 892 |
clear_key: |
| 893 |
description: Specify AES key in cleartext form |
| 894 |
type: str |
| 895 |
password_key: |
| 896 |
description: Specify AES key in encrypted form |
| 897 |
type: str |
| 898 |
null_encryption: |
| 899 |
description: Specify null encryption attributes |
| 900 |
type: dict |
| 901 |
suboptions: |
| 902 |
authentication: |
| 903 |
description: Specify authentication parameters |
| 904 |
type: dict |
| 905 |
suboptions: |
| 906 |
algorithim_type: |
| 907 |
description: Specify the type of algorithim |
| 908 |
type: str |
| 909 |
choices: ["md5", "sha1"] |
| 910 |
key: |
| 911 |
description: Specify key |
| 912 |
type: str |
| 913 |
clear_key: |
| 914 |
description: Specify key in cleartext form |
| 915 |
type: str |
| 916 |
password_key: |
| 917 |
description: Specify key in encrypted form |
| 918 |
type: str |
| 919 |
fast_reroute: |
| 920 |
description: Specify IP Fast Reroute |
| 921 |
type: dict |
| 922 |
suboptions: |
| 923 |
disabled: |
| 924 |
description: Disable IP fast reroute |
| 925 |
type: bool |
| 926 |
per_link: |
| 927 |
description: Specify per-prefix computation |
| 928 |
type: dict |
| 929 |
suboptions: |
| 930 |
information_type: |
| 931 |
description: Specify per-link LFA exclusion or FRR LFA candidate information |
| 932 |
type: str |
| 933 |
choices: ["exclude", "lfa_candidate"] |
| 934 |
use_candidate_only: |
| 935 |
description: Enable/Disable backup selection from candidate-list only |
| 936 |
type: bool |
| 937 |
interface: |
| 938 |
description: Specify Per-link LFA exclusion information |
| 939 |
type: dict |
| 940 |
suboptions: |
| 941 |
bvi: |
| 942 |
description: Specify Bridge-Group Virtual Interface |
| 943 |
type: list |
| 944 |
elements: int |
| 945 |
bundle_ether: |
| 946 |
description: Specify Aggregated Ethernet interface(s) |
| 947 |
type: list |
| 948 |
elements: int |
| 949 |
pos_int: |
| 950 |
description: Specify Aggregated pos interface(s) |
| 951 |
type: list |
| 952 |
elements: int |
| 953 |
fast_ethernet: |
| 954 |
description: Specify FastEthernet/IEEE 802.3 interface(s) |
| 955 |
type: list |
| 956 |
elements: str |
| 957 |
fiftygige: |
| 958 |
description: Specify FiftyGigE/IEEE 802.3 interface(s) |
| 959 |
type: list |
| 960 |
elements: str |
| 961 |
fortygige: |
| 962 |
description: Specify FortyGigE/IEEE 802.3 interface(s) |
| 963 |
type: list |
| 964 |
elements: str |
| 965 |
fourhundredgige: |
| 966 |
description: Specify FourHundredGigE/IEEE 802.3 interface(s) |
| 967 |
type: list |
| 968 |
elements: str |
| 969 |
gigabitethernet: |
| 970 |
description: Specify GigabitEthernet/IEEE 802.3 interface(s) |
| 971 |
type: list |
| 972 |
elements: str |
| 973 |
hundredgige: |
| 974 |
description: Specify HundredGigE/IEEE 802.3 interface(s) |
| 975 |
type: list |
| 976 |
elements: str |
| 977 |
mgmteth: |
| 978 |
description: Specify MgmtEth/IEEE 802.3 interface(s) |
| 979 |
type: list |
| 980 |
elements: str |
| 981 |
multilink: |
| 982 |
description: Specify Multilink network interface(s) |
| 983 |
type: list |
| 984 |
elements: str |
| 985 |
pw_ether: |
| 986 |
description: Specify PWHE Ethernet Interface |
| 987 |
type: list |
| 988 |
elements: int |
| 989 |
pw_iw: |
| 990 |
description: Specify PWHE VC11 IP Interworking Interface |
| 991 |
type: list |
| 992 |
elements: int |
| 993 |
srp: |
| 994 |
description: Specify SRP interface(s) |
| 995 |
type: list |
| 996 |
elements: str |
| 997 |
serial: |
| 998 |
description: Specify Serial network interface(s) |
| 999 |
type: list |
| 1000 |
elements: str |
| 1001 |
tengige: |
| 1002 |
description: Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
| 1003 |
type: list |
| 1004 |
elements: str |
| 1005 |
twentyfivegige: |
| 1006 |
description: Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
| 1007 |
type: list |
| 1008 |
elements: str |
| 1009 |
twohundredgige: |
| 1010 |
description: Specify TwoHundredGigE/IEEE 802.3 interface(s) |
| 1011 |
type: list |
| 1012 |
elements: str |
| 1013 |
nve: |
| 1014 |
description: Specify Network Virtualization Endpoint Interface(s) |
| 1015 |
type: list |
| 1016 |
elements: int |
| 1017 |
tunnel_ip: |
| 1018 |
description: Specify GRE/IPinIP Tunnel Interface(s) |
| 1019 |
type: list |
| 1020 |
elements: int |
| 1021 |
tunnel_ipsec: |
| 1022 |
description: Specify IPSec Tunnel interface(s) |
| 1023 |
type: list |
| 1024 |
elements: int |
| 1025 |
tunnel_mte: |
| 1026 |
description: Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
| 1027 |
type: list |
| 1028 |
elements: int |
| 1029 |
tunnel_mpls: |
| 1030 |
description: MPLS Transport Protocol Tunnel interface |
| 1031 |
type: int |
| 1032 |
per_prefix: |
| 1033 |
description: Specify per-prefix computation |
| 1034 |
type: dict |
| 1035 |
suboptions: |
| 1036 |
information_type: |
| 1037 |
description: Specify per_prefix LFA exclusion or FRR LFA candidate information |
| 1038 |
type: str |
| 1039 |
choices: ["exclude", "lfa_candidate"] |
| 1040 |
use_candidate_only: |
| 1041 |
description: Enable/Disable backup selection from candidate-list only |
| 1042 |
type: bool |
| 1043 |
interface: |
| 1044 |
description: Specify Per-link LFA exclusion information |
| 1045 |
type: dict |
| 1046 |
suboptions: |
| 1047 |
bvi: |
| 1048 |
description: Specify Bridge-Group Virtual Interface |
| 1049 |
type: list |
| 1050 |
elements: int |
| 1051 |
bundle_ether: |
| 1052 |
description: Specify Aggregated Ethernet interface(s) |
| 1053 |
type: list |
| 1054 |
elements: int |
| 1055 |
post_int: |
| 1056 |
description: Specify Aggregated pos interface(s) |
| 1057 |
type: list |
| 1058 |
elements: int |
| 1059 |
fast_ethernet: |
| 1060 |
description: Specify FastEthernet/IEEE 802.3 interface(s) |
| 1061 |
type: list |
| 1062 |
elements: str |
| 1063 |
fiftygige: |
| 1064 |
description: Specify FiftyGigE/IEEE 802.3 interface(s) |
| 1065 |
type: list |
| 1066 |
elements: str |
| 1067 |
fortygige: |
| 1068 |
description: Specify FortyGigE/IEEE 802.3 interface(s) |
| 1069 |
type: list |
| 1070 |
elements: str |
| 1071 |
fourhundredgige: |
| 1072 |
description: Specify FourHundredGigE/IEEE 802.3 interface(s) |
| 1073 |
type: list |
| 1074 |
elements: str |
| 1075 |
gigabitethernet: |
| 1076 |
description: Specify GigabitEthernet/IEEE 802.3 interface(s) |
| 1077 |
type: list |
| 1078 |
elements: str |
| 1079 |
hundredgige: |
| 1080 |
description: Specify HundredGigE/IEEE 802.3 interface(s) |
| 1081 |
type: list |
| 1082 |
elements: str |
| 1083 |
mgmteth: |
| 1084 |
description: Specify MgmtEth/IEEE 802.3 interface(s) |
| 1085 |
type: list |
| 1086 |
elements: str |
| 1087 |
multilink: |
| 1088 |
description: Specify Multilink network interface(s) |
| 1089 |
type: list |
| 1090 |
elements: str |
| 1091 |
pw_ether: |
| 1092 |
description: Specify PWHE Ethernet Interface |
| 1093 |
type: list |
| 1094 |
elements: int |
| 1095 |
pw_iw: |
| 1096 |
description: Specify PWHE VC11 IP Interworking Interface |
| 1097 |
type: list |
| 1098 |
elements: int |
| 1099 |
srp: |
| 1100 |
description: Specify SRP interface(s) |
| 1101 |
type: list |
| 1102 |
elements: str |
| 1103 |
serial: |
| 1104 |
description: Specify Serial network interface(s) |
| 1105 |
type: list |
| 1106 |
elements: str |
| 1107 |
tengige: |
| 1108 |
description: Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
| 1109 |
type: list |
| 1110 |
elements: str |
| 1111 |
twentyfivegige: |
| 1112 |
description: Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
| 1113 |
type: list |
| 1114 |
elements: str |
| 1115 |
twohundredgige: |
| 1116 |
description: Specify TwoHundredGigE/IEEE 802.3 interface(s) |
| 1117 |
type: list |
| 1118 |
elements: str |
| 1119 |
nve: |
| 1120 |
description: Specify Network Virtualization Endpoint Interface(s) |
| 1121 |
type: list |
| 1122 |
elements: int |
| 1123 |
tunnel_ip: |
| 1124 |
description: Specify GRE/IPinIP Tunnel Interface(s) |
| 1125 |
type: list |
| 1126 |
elements: int |
| 1127 |
tunnel_ipsec: |
| 1128 |
description: Specify IPSec Tunnel interface(s) |
| 1129 |
type: list |
| 1130 |
elements: int |
| 1131 |
tunnel_mte: |
| 1132 |
description: Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
| 1133 |
type: list |
| 1134 |
elements: int |
| 1135 |
tunnel_mpls: |
| 1136 |
description: MPLS Transport Protocol Tunnel interface |
| 1137 |
type: int |
| 1138 |
flood_reduction: |
| 1139 |
description: Enable/Disable flood reduction |
| 1140 |
type: bool |
| 1141 |
graceful_restart: |
| 1142 |
description: Enable Graceful-Restart |
| 1143 |
type: dict |
| 1144 |
suboptions: |
| 1145 |
set: |
| 1146 |
description: Set graceful restart |
| 1147 |
type: bool |
| 1148 |
helper_disable: |
| 1149 |
description: Disable router's helper support level |
| 1150 |
type: bool |
| 1151 |
min_interval: |
| 1152 |
description: Minimum interval between Graceful Restarts |
| 1153 |
type: int |
| 1154 |
max_interval: |
| 1155 |
description: Maximum route lifetime following restart |
| 1156 |
type: int |
| 1157 |
hello_interval: |
| 1158 |
description: Specify Time between HELLO packets |
| 1159 |
type: int |
| 1160 |
ignore_mospf_type6_lsa: |
| 1161 |
description: Ignore MOSPF Type 6 LSA |
| 1162 |
type: bool |
| 1163 |
instance_id: |
| 1164 |
description: Specify instance ID |
| 1165 |
type: int |
| 1166 |
log_adjacency_changes: |
| 1167 |
description: Log adjacency state changes |
| 1168 |
type: dict |
| 1169 |
suboptions: |
| 1170 |
set: |
| 1171 |
description: Set log adjacency |
| 1172 |
type: bool |
| 1173 |
disable: |
| 1174 |
description: Disable log adjacency changes |
| 1175 |
type: bool |
| 1176 |
detail: |
| 1177 |
description: Log all state changes |
| 1178 |
type: bool |
| 1179 |
maximum: |
| 1180 |
description: Set OSPFv3 limits |
| 1181 |
type: dict |
| 1182 |
suboptions: |
| 1183 |
interfaces: |
| 1184 |
description: Specify limit for number of interfaces |
| 1185 |
type: int |
| 1186 |
paths: |
| 1187 |
description: Specify limit for number of paths |
| 1188 |
type: int |
| 1189 |
redistributed_prefixes: |
| 1190 |
description: Specify limit for number of redistributed prefixes |
| 1191 |
type: int |
| 1192 |
mpls_ldp_sync: |
| 1193 |
description: Enable/Disable MPLS LDP Sync |
| 1194 |
type: bool |
| 1195 |
mtu_ignore: |
| 1196 |
description: Enable/Disable ignoring of MTU in DBD packets |
| 1197 |
type: bool |
| 1198 |
network: |
| 1199 |
description: Specify Network type |
| 1200 |
type: str |
| 1201 |
choices: ["broadcast", "non-broadcast", "point-to-multipoint", "point-to-point"] |
| 1202 |
nsr: |
| 1203 |
description: Enable/Disable NSR for all VRFs in this process |
| 1204 |
type: bool |
| 1205 |
packet_size: |
| 1206 |
description: Specify limit size of OSPFv3 packets |
| 1207 |
type: int |
| 1208 |
passive: |
| 1209 |
description: Enable/Disable routing updates on an interface |
| 1210 |
type: bool |
| 1211 |
prefix_suppression: |
| 1212 |
description: Hide all transit addresses on this interface |
| 1213 |
type: bool |
| 1214 |
priority: |
| 1215 |
description: Specify Router priority |
| 1216 |
type: int |
| 1217 |
protocol_shutdown: |
| 1218 |
description: Gracefully shutdown the OSPFv3 protocol |
| 1219 |
type: bool |
| 1220 |
redistribute: |
| 1221 |
description: Redistribute information from another routing Protocol |
| 1222 |
type: dict |
| 1223 |
suboptions: |
| 1224 |
application: |
| 1225 |
description: Specify application routes |
| 1226 |
type: list |
| 1227 |
elements: dict |
| 1228 |
suboptions: |
| 1229 |
id: |
| 1230 |
description: OnePK Application name |
| 1231 |
type: str |
| 1232 |
required: true |
| 1233 |
set: |
| 1234 |
description: Set application route |
| 1235 |
type: bool |
| 1236 |
metric: |
| 1237 |
description: Specify metric for redistributed routes |
| 1238 |
type: int |
| 1239 |
metric_type: |
| 1240 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1241 |
type: int |
| 1242 |
route_policy: |
| 1243 |
description: Apply route policy to redistribution |
| 1244 |
type: str |
| 1245 |
tag: |
| 1246 |
description: Set tag for routes redistributed into OSPFv3 |
| 1247 |
type: int |
| 1248 |
bgp: |
| 1249 |
description: Specify bgp routes |
| 1250 |
type: list |
| 1251 |
elements: dict |
| 1252 |
suboptions: |
| 1253 |
id: |
| 1254 |
description: BGP process name |
| 1255 |
type: int |
| 1256 |
required: true |
| 1257 |
set: |
| 1258 |
description: Set bgp route number |
| 1259 |
type: bool |
| 1260 |
metric: |
| 1261 |
description: Specify metric for redistributed routes |
| 1262 |
type: int |
| 1263 |
metric_type: |
| 1264 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1265 |
type: int |
| 1266 |
preserved_med: |
| 1267 |
description: Specify preserve med of BGP routes |
| 1268 |
type: str |
| 1269 |
route_policy: |
| 1270 |
description: Apply route policy to redistribution |
| 1271 |
type: str |
| 1272 |
tag: |
| 1273 |
description: Set tag for routes redistributed into OSPFv3 |
| 1274 |
type: int |
| 1275 |
connected: |
| 1276 |
description: Specify connected routes |
| 1277 |
type: dict |
| 1278 |
suboptions: |
| 1279 |
set: |
| 1280 |
description: Set connected route |
| 1281 |
type: bool |
| 1282 |
metric: |
| 1283 |
description: Specify metric for redistributed routes |
| 1284 |
type: int |
| 1285 |
metric_type: |
| 1286 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1287 |
type: int |
| 1288 |
route_policy: |
| 1289 |
description: Apply route policy to redistribution |
| 1290 |
type: str |
| 1291 |
tag: |
| 1292 |
description: Set tag for routes redistributed into OSPFv3 |
| 1293 |
type: int |
| 1294 |
eigrp: |
| 1295 |
description: Specify eigrp routes |
| 1296 |
type: list |
| 1297 |
elements: dict |
| 1298 |
suboptions: |
| 1299 |
id: |
| 1300 |
description: EIGRP process name |
| 1301 |
type: int |
| 1302 |
required: true |
| 1303 |
set: |
| 1304 |
description: Set bgp route number |
| 1305 |
type: bool |
| 1306 |
match: |
| 1307 |
description: Redistribution of EIGRP routes |
| 1308 |
type: str |
| 1309 |
choices: ["external", "internal"] |
| 1310 |
metric: |
| 1311 |
description: Specify metric for redistributed routes |
| 1312 |
type: int |
| 1313 |
metric_type: |
| 1314 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1315 |
type: int |
| 1316 |
route_policy: |
| 1317 |
description: Apply route policy to redistribution |
| 1318 |
type: str |
| 1319 |
tag: |
| 1320 |
description: Set tag for routes redistributed into OSPFv3 |
| 1321 |
type: int |
| 1322 |
isis: |
| 1323 |
description: Specify IS-IS routes |
| 1324 |
type: list |
| 1325 |
elements: dict |
| 1326 |
suboptions: |
| 1327 |
id: |
| 1328 |
description: IS-IS name |
| 1329 |
type: str |
| 1330 |
required: true |
| 1331 |
set: |
| 1332 |
description: Set IS-IS route number |
| 1333 |
type: bool |
| 1334 |
level: |
| 1335 |
description: Specify IS-IS level routes |
| 1336 |
type: str |
| 1337 |
choices: ["level-1", "level-1-2", "level-2"] |
| 1338 |
metric: |
| 1339 |
description: Specify metric for redistributed routes |
| 1340 |
type: int |
| 1341 |
metric_type: |
| 1342 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1343 |
type: int |
| 1344 |
route_policy: |
| 1345 |
description: Apply route policy to redistribution |
| 1346 |
type: str |
| 1347 |
tag: |
| 1348 |
description: Set tag for routes redistributed into OSPFv3 |
| 1349 |
type: int |
| 1350 |
mobile: |
| 1351 |
description: Specify mobile routes |
| 1352 |
type: dict |
| 1353 |
suboptions: |
| 1354 |
set: |
| 1355 |
description: Set mobile route number |
| 1356 |
type: bool |
| 1357 |
metric: |
| 1358 |
description: Specify metric for redistributed routes |
| 1359 |
type: int |
| 1360 |
metric_type: |
| 1361 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1362 |
type: int |
| 1363 |
route_policy: |
| 1364 |
description: Apply route policy to redistribution |
| 1365 |
type: str |
| 1366 |
tag: |
| 1367 |
description: Set tag for routes redistributed into OSPFv3 |
| 1368 |
type: int |
| 1369 |
ospfv3: |
| 1370 |
description: Specify ospfv3 routes |
| 1371 |
type: list |
| 1372 |
elements: dict |
| 1373 |
suboptions: |
| 1374 |
id: |
| 1375 |
description: OSPFv3 process name |
| 1376 |
type: str |
| 1377 |
required: true |
| 1378 |
set: |
| 1379 |
description: Set ospfv3 route number |
| 1380 |
type: bool |
| 1381 |
match: |
| 1382 |
description: Redistribution of OSPFv3 routes |
| 1383 |
type: dict |
| 1384 |
suboptions: |
| 1385 |
external: |
| 1386 |
description: Redistribute OSPFv3 external routes |
| 1387 |
type: int |
| 1388 |
choices: ["1", "2"] |
| 1389 |
nssa_external: |
| 1390 |
description: Redistribute NSSA OSPFv3 external routes |
| 1391 |
type: int |
| 1392 |
choices: ["1", "2"] |
| 1393 |
internal: |
| 1394 |
description: Redistribute OSPFv3 internal routes |
| 1395 |
type: bool |
| 1396 |
metric: |
| 1397 |
description: Specify metric for redistributed routes |
| 1398 |
type: int |
| 1399 |
metric_type: |
| 1400 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1401 |
type: int |
| 1402 |
route_policy: |
| 1403 |
description: Apply route policy to redistribution |
| 1404 |
type: str |
| 1405 |
tag: |
| 1406 |
description: Set tag for routes redistributed into OSPFv3 |
| 1407 |
type: int |
| 1408 |
static: |
| 1409 |
description: Specify static routes |
| 1410 |
type: dict |
| 1411 |
suboptions: |
| 1412 |
set: |
| 1413 |
description: Set static route |
| 1414 |
type: bool |
| 1415 |
metric: |
| 1416 |
description: Specify metric for redistributed routes |
| 1417 |
type: int |
| 1418 |
metric_type: |
| 1419 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1420 |
type: int |
| 1421 |
route_policy: |
| 1422 |
description: Apply route policy to redistribution |
| 1423 |
type: str |
| 1424 |
tag: |
| 1425 |
description: Set tag for routes redistributed into OSPFv3 |
| 1426 |
type: int |
| 1427 |
subscriber: |
| 1428 |
description: Specify subscriber routes |
| 1429 |
type: dict |
| 1430 |
suboptions: |
| 1431 |
set: |
| 1432 |
description: Set static route |
| 1433 |
type: bool |
| 1434 |
metric: |
| 1435 |
description: Specify metric for redistributed routes |
| 1436 |
type: int |
| 1437 |
metric_type: |
| 1438 |
description: Specify OSPFv3 exterior metric type for redistributed routes |
| 1439 |
type: int |
| 1440 |
route_policy: |
| 1441 |
description: Apply route policy to redistribution |
| 1442 |
type: str |
| 1443 |
tag: |
| 1444 |
description: Set tag for routes redistributed into OSPFv3 |
| 1445 |
type: int |
| 1446 |
retransmit_interval: |
| 1447 |
description: Delay between LSA retransmissions |
| 1448 |
type: int |
| 1449 |
router_id: |
| 1450 |
description: ospfv3 router-id in IPv4 address format (A.B.C.D) |
| 1451 |
type: str |
| 1452 |
spf_prefix_priority: |
| 1453 |
description: Specify SPF configuration |
| 1454 |
type: dict |
| 1455 |
suboptions: |
| 1456 |
disable: |
| 1457 |
description: Disable SPF prefix priority |
| 1458 |
type: bool |
| 1459 |
route_policy: |
| 1460 |
description: Specify the route-policy to prioritize route install |
| 1461 |
type: list |
| 1462 |
elements: dict |
| 1463 |
suboptions: |
| 1464 |
name: |
| 1465 |
description: Specify name of the policy |
| 1466 |
type: str |
| 1467 |
value: |
| 1468 |
description: Specify parameter values for the policy () |
| 1469 |
type: str |
| 1470 |
stub_router: |
| 1471 |
description: Enter stub router configuration submode |
| 1472 |
type: dict |
| 1473 |
suboptions: |
| 1474 |
router_lsa: |
| 1475 |
description: Modify self originated router LSAs |
| 1476 |
type: dict |
| 1477 |
suboptions: |
| 1478 |
advertise_with: |
| 1479 |
description: Advertise LSAs with specified type |
| 1480 |
type: str |
| 1481 |
choices: ["max-metric", "r-bit", "v6-bit"] |
| 1482 |
always: |
| 1483 |
description: Force ospfv3 stub router mode unconditionally |
| 1484 |
type: bool |
| 1485 |
external_lsa: |
| 1486 |
description: Override External LSA metric in stub router mode |
| 1487 |
type: dict |
| 1488 |
suboptions: |
| 1489 |
set: |
| 1490 |
description: Set external lsa |
| 1491 |
type: bool |
| 1492 |
metric: |
| 1493 |
description: Metric to use while in stub router mode |
| 1494 |
type: int |
| 1495 |
include_stub: |
| 1496 |
description: Set maximum metric for stub links in stub router mode |
| 1497 |
type: bool |
| 1498 |
on_proc_migration: |
| 1499 |
description: Enter stub router mode on ospfv3 process migration |
| 1500 |
type: int |
| 1501 |
on_proc_restart: |
| 1502 |
description: Enter stub router mode on ospfv3 process restart |
| 1503 |
type: int |
| 1504 |
on_startup: |
| 1505 |
description: Enter stub router mode on startup |
| 1506 |
type: dict |
| 1507 |
suboptions: |
| 1508 |
time: |
| 1509 |
description: Time in seconds to stay in stub router mode |
| 1510 |
type: int |
| 1511 |
wait_for_bgp: |
| 1512 |
description: Exit stub router mode when BGP converges |
| 1513 |
type: bool |
| 1514 |
on_switchover: |
| 1515 |
description: Enter stub router mode on RP switchover |
| 1516 |
type: int |
| 1517 |
summary_lsa: |
| 1518 |
description: Override Summary LSA metric in stub router mode |
| 1519 |
type: dict |
| 1520 |
suboptions: |
| 1521 |
set: |
| 1522 |
description: Enable summary LSA |
| 1523 |
type: bool |
| 1524 |
metric: |
| 1525 |
description: Metric to use while in stub router mode |
| 1526 |
type: int |
| 1527 |
summary_prefix: |
| 1528 |
description: Configure IP address summaries |
| 1529 |
type: list |
| 1530 |
elements: dict |
| 1531 |
suboptions: |
| 1532 |
prefix: |
| 1533 |
description: IP summary address/mask (A.B.C.D/prefix) |
| 1534 |
type: str |
| 1535 |
required: True |
| 1536 |
not_advertise: |
| 1537 |
description: Suppress routes that match the specified prefix/mask pair |
| 1538 |
type: bool |
| 1539 |
tag: |
| 1540 |
description: Set tag |
| 1541 |
type: int |
| 1542 |
timers: |
| 1543 |
description: Adjust routing timers |
| 1544 |
type: dict |
| 1545 |
suboptions: |
| 1546 |
lsa_arrival: |
| 1547 |
description: Specify LSA arrival timers |
| 1548 |
type: int |
| 1549 |
pacing: |
| 1550 |
description: Specify pacing timers |
| 1551 |
type: dict |
| 1552 |
suboptions: |
| 1553 |
flood: |
| 1554 |
description: Flood pacing timer |
| 1555 |
type: int |
| 1556 |
lsa_group: |
| 1557 |
description: LSA group pacing timer |
| 1558 |
type: int |
| 1559 |
retransmission: |
| 1560 |
description: LSA group pacing timer |
| 1561 |
type: int |
| 1562 |
throttle: |
| 1563 |
description: Adjust throttle timers |
| 1564 |
type: dict |
| 1565 |
suboptions: |
| 1566 |
lsa: |
| 1567 |
description: Specify LSA throttle timers |
| 1568 |
type: dict |
| 1569 |
suboptions: |
| 1570 |
all_lsa_initial: |
| 1571 |
description: Delay to generate first occurrence of LSA in milliseconds |
| 1572 |
type: int |
| 1573 |
all_lsa_minimum: |
| 1574 |
description: Minimum delay between originating the same LSA in milliseconds |
| 1575 |
type: int |
| 1576 |
spf: |
| 1577 |
description: Specify SPF throttle timers |
| 1578 |
type: dict |
| 1579 |
suboptions: |
| 1580 |
spf_initial: |
| 1581 |
description: Delay to generate first occurrence of SPF in ms |
| 1582 |
type: int |
| 1583 |
spf_minimum: |
| 1584 |
description: Minimum delay between originating the same SPF in ms |
| 1585 |
type: int |
| 1586 |
trace: |
| 1587 |
description: Specify OSPF tracing options |
| 1588 |
type: dict |
| 1589 |
suboptions: |
| 1590 |
size: |
| 1591 |
description: Delete existing buffer and create one with N entries |
| 1592 |
type: str |
| 1593 |
value: |
| 1594 |
description: Specify trace entry |
| 1595 |
type: int |
| 1596 |
transmit_delay: |
| 1597 |
description: Estimated time needed to send link-state update packet |
| 1598 |
type: int |
| 1599 |
state: |
| 1600 |
description: |
| 1601 |
- The state the configuration should be left in |
| 1602 |
type: str |
| 1603 |
choices: |
| 1604 |
- merged |
| 1605 |
- replaced |
| 1606 |
- overridden |
| 1607 |
- deleted |
| 1608 |
- gathered |
| 1609 |
- rendered |
| 1610 |
- parsed |
| 1611 |
default: merged |
| 1612 |
""" |
| 1613 |
EXAMPLES = """ |
| 1614 |
# Using merged |
| 1615 |
|
| 1616 |
# Before state: |
| 1617 |
# ------------- |
| 1618 |
# |
| 1619 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 1620 |
# Thu Jun 11 15:54:44.569 UTC |
| 1621 |
# % No such configuration item(s) |
| 1622 |
# |
| 1623 |
|
| 1624 |
- name: Merge provided OSPFv3 configuration with the existing configuration |
| 1625 |
cisco.iosxr.iosxr_ospfv3: |
| 1626 |
config: |
| 1627 |
processes: |
| 1628 |
- process_id: 27 |
| 1629 |
areas: |
| 1630 |
- area_id: 10 |
| 1631 |
hello_interval: 2 |
| 1632 |
- process_id: 26 |
| 1633 |
authentication: |
| 1634 |
disable: true |
| 1635 |
- process_id: 10 |
| 1636 |
areas: |
| 1637 |
- area_id: 11 |
| 1638 |
default_cost: 5 |
| 1639 |
cost: 11 |
| 1640 |
- area_id: 22 |
| 1641 |
default_cost: 6 |
| 1642 |
- process_id: 30 |
| 1643 |
areas: |
| 1644 |
- area_id: 11 |
| 1645 |
default_cost: 5 |
| 1646 |
- area_id: 22 |
| 1647 |
default_cost: 6 |
| 1648 |
cost: 2 |
| 1649 |
default_metric: 10 |
| 1650 |
transmit_delay: 2 |
| 1651 |
hello_interval: 1 |
| 1652 |
dead_interval: 2 |
| 1653 |
retransmit_interval: 2 |
| 1654 |
packet_size: 577 |
| 1655 |
priority: 1 |
| 1656 |
router_id: 2.2.2.2 |
| 1657 |
demand_circuit: true |
| 1658 |
mtu_ignore: true |
| 1659 |
state: merged |
| 1660 |
|
| 1661 |
# |
| 1662 |
# Task Output: |
| 1663 |
# ------------ |
| 1664 |
# |
| 1665 |
# before: {} |
| 1666 |
# |
| 1667 |
# - router ospfv3 10 |
| 1668 |
# - area 11 default-cost 5 |
| 1669 |
# - area 11 cost 11 |
| 1670 |
# - area 22 default-cost 6 |
| 1671 |
# - router ospfv3 26 |
| 1672 |
# - authentication disable |
| 1673 |
# - router ospfv3 27 |
| 1674 |
# - area 10 hello-interval 2 |
| 1675 |
# - router ospfv3 30 |
| 1676 |
# - cost 2 |
| 1677 |
# - priority 1 |
| 1678 |
# - default-metric 10 |
| 1679 |
# - router-id 2.2.2.2 |
| 1680 |
# - demand-circuit |
| 1681 |
# - packet-size 577 |
| 1682 |
# - transmit-delay 2 |
| 1683 |
# - dead-interval 2 |
| 1684 |
# - hello-interval 1 |
| 1685 |
# - retransmit-interval 2 |
| 1686 |
# - mtu-ignore |
| 1687 |
# - area 11 default-cost 5 |
| 1688 |
# - area 22 default-cost 6 |
| 1689 |
# |
| 1690 |
# after: |
| 1691 |
# processes: |
| 1692 |
# - areas: |
| 1693 |
# - area_id: '11' |
| 1694 |
# cost: 11 |
| 1695 |
# default_cost: 5 |
| 1696 |
# - area_id: '22' |
| 1697 |
# default_cost: 6 |
| 1698 |
# process_id: '10' |
| 1699 |
# - authentication: |
| 1700 |
# disable: true |
| 1701 |
# process_id: '26' |
| 1702 |
# - areas: |
| 1703 |
# - area_id: '10' |
| 1704 |
# hello_interval: 2 |
| 1705 |
# process_id: '27' |
| 1706 |
# - areas: |
| 1707 |
# - area_id: '11' |
| 1708 |
# default_cost: 5 |
| 1709 |
# - area_id: '22' |
| 1710 |
# default_cost: 6 |
| 1711 |
# cost: 2 |
| 1712 |
# dead_interval: 2 |
| 1713 |
# default_metric: 10 |
| 1714 |
# demand_circuit: true |
| 1715 |
# hello_interval: 1 |
| 1716 |
# mtu_ignore: true |
| 1717 |
# packet_size: 577 |
| 1718 |
# priority: 1 |
| 1719 |
# process_id: '30' |
| 1720 |
# retransmit_interval: 2 |
| 1721 |
# router_id: 2.2.2.2 |
| 1722 |
# transmit_delay: 2 |
| 1723 |
# |
| 1724 |
# After state: |
| 1725 |
# ------------ |
| 1726 |
# |
| 1727 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 1728 |
# router ospfv3 10 |
| 1729 |
# area 11 |
| 1730 |
# cost 11 |
| 1731 |
# default-cost 5 |
| 1732 |
# ! |
| 1733 |
# area 22 |
| 1734 |
# default-cost 6 |
| 1735 |
# ! |
| 1736 |
# ! |
| 1737 |
# router ospfv3 26 |
| 1738 |
# authentication disable |
| 1739 |
# ! |
| 1740 |
# router ospfv3 27 |
| 1741 |
# area 10 |
| 1742 |
# hello-interval 2 |
| 1743 |
# ! |
| 1744 |
# ! |
| 1745 |
# router ospfv3 30 |
| 1746 |
# cost 2 |
| 1747 |
# priority 1 |
| 1748 |
# mtu-ignore |
| 1749 |
# packet-size 577 |
| 1750 |
# dead-interval 2 |
| 1751 |
# retransmit-interval 2 |
| 1752 |
# demand-circuit |
| 1753 |
# hello-interval 1 |
| 1754 |
# transmit-delay 2 |
| 1755 |
# router-id 2.2.2.2 |
| 1756 |
# default-metric 10 |
| 1757 |
# area 11 |
| 1758 |
# default-cost 5 |
| 1759 |
# ! |
| 1760 |
# area 22 |
| 1761 |
# default-cost 6 |
| 1762 |
# ! |
| 1763 |
# ! |
| 1764 |
|
| 1765 |
# Using replaced |
| 1766 |
# |
| 1767 |
# Before state: |
| 1768 |
# ------------- |
| 1769 |
# |
| 1770 |
# |
| 1771 |
# RP/0/RP0/CPU0:anton#show running-config router ospf |
| 1772 |
# router ospfv3 10 |
| 1773 |
# area 11 |
| 1774 |
# cost 11 |
| 1775 |
# default-cost 5 |
| 1776 |
# ! |
| 1777 |
# area 22 |
| 1778 |
# default-cost 6 |
| 1779 |
# ! |
| 1780 |
# ! |
| 1781 |
# router ospfv3 26 |
| 1782 |
# authentication disable |
| 1783 |
# ! |
| 1784 |
# router ospfv3 27 |
| 1785 |
# area 10 |
| 1786 |
# hello-interval 2 |
| 1787 |
# ! |
| 1788 |
# ! |
| 1789 |
# router ospfv3 30 |
| 1790 |
# cost 2 |
| 1791 |
# priority 1 |
| 1792 |
# mtu-ignore |
| 1793 |
# packet-size 577 |
| 1794 |
# dead-interval 2 |
| 1795 |
# retransmit-interval 2 |
| 1796 |
# demand-circuit |
| 1797 |
# hello-interval 1 |
| 1798 |
# transmit-delay 2 |
| 1799 |
# router-id 2.2.2.2 |
| 1800 |
# default-metric 10 |
| 1801 |
# area 11 |
| 1802 |
# default-cost 5 |
| 1803 |
# ! |
| 1804 |
# area 22 |
| 1805 |
# default-cost 6 |
| 1806 |
# ! |
| 1807 |
# ! |
| 1808 |
|
| 1809 |
- name: Replace OSPFv3 routes configurations from the device |
| 1810 |
cisco.iosxr.iosxr_ospfv3: |
| 1811 |
config: |
| 1812 |
processes: |
| 1813 |
- process_id: 27 |
| 1814 |
areas: |
| 1815 |
- area_id: 10 |
| 1816 |
hello_interval: 2 |
| 1817 |
- area_id: 20 |
| 1818 |
cost: 2 |
| 1819 |
default_cost: 2 |
| 1820 |
- process_id: 26 |
| 1821 |
authentication: |
| 1822 |
disable: true |
| 1823 |
state: replaced |
| 1824 |
|
| 1825 |
# |
| 1826 |
# Task Output: |
| 1827 |
# ------------ |
| 1828 |
# |
| 1829 |
# before: |
| 1830 |
# processes: |
| 1831 |
# - areas: |
| 1832 |
# - area_id: '11' |
| 1833 |
# cost: 11 |
| 1834 |
# default_cost: 5 |
| 1835 |
# - area_id: '22' |
| 1836 |
# default_cost: 6 |
| 1837 |
# process_id: '10' |
| 1838 |
# - authentication: |
| 1839 |
# disable: true |
| 1840 |
# process_id: '26' |
| 1841 |
# - areas: |
| 1842 |
# - area_id: '10' |
| 1843 |
# hello_interval: 2 |
| 1844 |
# process_id: '27' |
| 1845 |
# - areas: |
| 1846 |
# - area_id: '11' |
| 1847 |
# default_cost: 5 |
| 1848 |
# - area_id: '22' |
| 1849 |
# default_cost: 6 |
| 1850 |
# cost: 2 |
| 1851 |
# dead_interval: 2 |
| 1852 |
# default_metric: 10 |
| 1853 |
# demand_circuit: true |
| 1854 |
# hello_interval: 1 |
| 1855 |
# mtu_ignore: true |
| 1856 |
# packet_size: 577 |
| 1857 |
# priority: 1 |
| 1858 |
# process_id: '30' |
| 1859 |
# retransmit_interval: 2 |
| 1860 |
# router_id: 2.2.2.2 |
| 1861 |
# transmit_delay: 2 |
| 1862 |
# |
| 1863 |
# commands: |
| 1864 |
# - router ospfv3 27 |
| 1865 |
# - area 20 default-cost 2 |
| 1866 |
# - area 20 cost 2 |
| 1867 |
# |
| 1868 |
# after: |
| 1869 |
# processes: |
| 1870 |
# - areas: |
| 1871 |
# - area_id: '11' |
| 1872 |
# cost: 11 |
| 1873 |
# default_cost: 5 |
| 1874 |
# - area_id: '22' |
| 1875 |
# default_cost: 6 |
| 1876 |
# process_id: '10' |
| 1877 |
# - authentication: |
| 1878 |
# disable: true |
| 1879 |
# process_id: '26' |
| 1880 |
# - areas: |
| 1881 |
# - area_id: '10' |
| 1882 |
# hello_interval: 2 |
| 1883 |
# - area_id: '20' |
| 1884 |
# cost: 2 |
| 1885 |
# default_cost: 2 |
| 1886 |
# process_id: '27' |
| 1887 |
# - areas: |
| 1888 |
# - area_id: '11' |
| 1889 |
# default_cost: 5 |
| 1890 |
# - area_id: '22' |
| 1891 |
# default_cost: 6 |
| 1892 |
# cost: 2 |
| 1893 |
# dead_interval: 2 |
| 1894 |
# default_metric: 10 |
| 1895 |
# demand_circuit: true |
| 1896 |
# hello_interval: 1 |
| 1897 |
# mtu_ignore: true |
| 1898 |
# packet_size: 577 |
| 1899 |
# priority: 1 |
| 1900 |
# process_id: '30' |
| 1901 |
# retransmit_interval: 2 |
| 1902 |
# router_id: 2.2.2.2 |
| 1903 |
# transmit_delay: 2 |
| 1904 |
# |
| 1905 |
# |
| 1906 |
# After state: |
| 1907 |
# ------------ |
| 1908 |
# |
| 1909 |
# RP/0/RP0/CPU0:anton(config)#do show running-config router ospfv3 |
| 1910 |
# router ospfv3 10 |
| 1911 |
# area 11 |
| 1912 |
# cost 11 |
| 1913 |
# default-cost 5 |
| 1914 |
# ! |
| 1915 |
# area 22 |
| 1916 |
# default-cost 6 |
| 1917 |
# ! |
| 1918 |
# ! |
| 1919 |
# router ospfv3 26 |
| 1920 |
# authentication disable |
| 1921 |
# ! |
| 1922 |
# router ospfv3 27 |
| 1923 |
# area 10 |
| 1924 |
# hello-interval 2 |
| 1925 |
# ! |
| 1926 |
# area 20 |
| 1927 |
# cost 2 |
| 1928 |
# default-cost 2 |
| 1929 |
# ! |
| 1930 |
# ! |
| 1931 |
# router ospfv3 30 |
| 1932 |
# cost 2 |
| 1933 |
# priority 1 |
| 1934 |
# mtu-ignore |
| 1935 |
# packet-size 577 |
| 1936 |
# dead-interval 2 |
| 1937 |
# retransmit-interval 2 |
| 1938 |
# demand-circuit |
| 1939 |
# hello-interval 1 |
| 1940 |
# transmit-delay 2 |
| 1941 |
# router-id 2.2.2.2 |
| 1942 |
# default-metric 10 |
| 1943 |
# area 11 |
| 1944 |
# default-cost 5 |
| 1945 |
# ! |
| 1946 |
# area 22 |
| 1947 |
# default-cost 6 |
| 1948 |
# ! |
| 1949 |
# ! |
| 1950 |
|
| 1951 |
# Using overridden |
| 1952 |
# |
| 1953 |
# Before state: |
| 1954 |
# ------------- |
| 1955 |
# |
| 1956 |
# router ospfv3 10 |
| 1957 |
# area 11 |
| 1958 |
# cost 11 |
| 1959 |
# default-cost 5 |
| 1960 |
# ! |
| 1961 |
# area 22 |
| 1962 |
# default-cost 6 |
| 1963 |
# ! |
| 1964 |
# ! |
| 1965 |
# router ospfv3 26 |
| 1966 |
# authentication disable |
| 1967 |
# ! |
| 1968 |
# router ospfv3 27 |
| 1969 |
# area 10 |
| 1970 |
# hello-interval 2 |
| 1971 |
# ! |
| 1972 |
# area 20 |
| 1973 |
# cost 2 |
| 1974 |
# default-cost 2 |
| 1975 |
# ! |
| 1976 |
# ! |
| 1977 |
# router ospfv3 30 |
| 1978 |
# cost 2 |
| 1979 |
# priority 1 |
| 1980 |
# mtu-ignore |
| 1981 |
# packet-size 577 |
| 1982 |
# dead-interval 2 |
| 1983 |
# retransmit-interval 2 |
| 1984 |
# demand-circuit |
| 1985 |
# hello-interval 1 |
| 1986 |
# transmit-delay 2 |
| 1987 |
# router-id 2.2.2.2 |
| 1988 |
# default-metric 10 |
| 1989 |
# area 11 |
| 1990 |
# default-cost 5 |
| 1991 |
# ! |
| 1992 |
# area 22 |
| 1993 |
# default-cost 6 |
| 1994 |
# ! |
| 1995 |
# ! |
| 1996 |
|
| 1997 |
- name: Override existing OSPFv3 configurations from the device |
| 1998 |
cisco.iosxr.iosxr_ospfv3: |
| 1999 |
config: |
| 2000 |
processes: |
| 2001 |
- process_id: 27 |
| 2002 |
areas: |
| 2003 |
- area_id: 10 |
| 2004 |
hello_interval: 2 |
| 2005 |
authentication: |
| 2006 |
disable: true |
| 2007 |
- area_id: 20 |
| 2008 |
cost: 2 |
| 2009 |
default_cost: 2 |
| 2010 |
authentication: |
| 2011 |
disable: true |
| 2012 |
- process_id: 26 |
| 2013 |
areas: |
| 2014 |
- area_id: 10 |
| 2015 |
hello_interval: 2 |
| 2016 |
authentication: |
| 2017 |
disable: true |
| 2018 |
state: overridden |
| 2019 |
|
| 2020 |
# |
| 2021 |
# Task Output: |
| 2022 |
# ------------ |
| 2023 |
# |
| 2024 |
# before: |
| 2025 |
# processes: |
| 2026 |
# - areas: |
| 2027 |
# - area_id: '11' |
| 2028 |
# cost: 11 |
| 2029 |
# default_cost: 5 |
| 2030 |
# - area_id: '22' |
| 2031 |
# default_cost: 6 |
| 2032 |
# process_id: '10' |
| 2033 |
# - authentication: |
| 2034 |
# disable: true |
| 2035 |
# process_id: '26' |
| 2036 |
# - areas: |
| 2037 |
# - area_id: '10' |
| 2038 |
# hello_interval: 2 |
| 2039 |
# - area_id: '20' |
| 2040 |
# cost: 2 |
| 2041 |
# default_cost: 2 |
| 2042 |
# process_id: '27' |
| 2043 |
# - areas: |
| 2044 |
# - area_id: '11' |
| 2045 |
# default_cost: 5 |
| 2046 |
# - area_id: '22' |
| 2047 |
# default_cost: 6 |
| 2048 |
# cost: 2 |
| 2049 |
# dead_interval: 2 |
| 2050 |
# default_metric: 10 |
| 2051 |
# demand_circuit: true |
| 2052 |
# hello_interval: 1 |
| 2053 |
# mtu_ignore: true |
| 2054 |
# packet_size: 577 |
| 2055 |
# priority: 1 |
| 2056 |
# process_id: '30' |
| 2057 |
# retransmit_interval: 2 |
| 2058 |
# router_id: 2.2.2.2 |
| 2059 |
# transmit_delay: 2 |
| 2060 |
# |
| 2061 |
# commands: |
| 2062 |
# - router ospfv3 10 |
| 2063 |
# - no area 11 default-cost 5 |
| 2064 |
# - no area 11 cost 11 |
| 2065 |
# - no area 22 default-cost 6 |
| 2066 |
# - router ospfv3 30 |
| 2067 |
# - no cost 2 |
| 2068 |
# - no priority 1 |
| 2069 |
# - no default-metric 10 |
| 2070 |
# - no router-id 2.2.2.2 |
| 2071 |
# - no demand-circuit |
| 2072 |
# - no packet-size 577 |
| 2073 |
# - no transmit-delay 2 |
| 2074 |
# - no dead-interval 2 |
| 2075 |
# - no hello-interval 1 |
| 2076 |
# - no retransmit-interval 2 |
| 2077 |
# - no mtu-ignore |
| 2078 |
# - no area 11 default-cost 5 |
| 2079 |
# - no area 22 default-cost 6 |
| 2080 |
# - router ospfv3 27 |
| 2081 |
# - area 10 authentication disable |
| 2082 |
# - area 20 authentication disable |
| 2083 |
# - router ospfv3 26 |
| 2084 |
# - no authentication disable |
| 2085 |
# - area 10 authentication disable |
| 2086 |
# - area 10 hello-interval 2 |
| 2087 |
# |
| 2088 |
# after: |
| 2089 |
# processes: |
| 2090 |
# - process_id: '10' |
| 2091 |
# - areas: |
| 2092 |
# - area_id: '10' |
| 2093 |
# authentication: |
| 2094 |
# disable: true |
| 2095 |
# hello_interval: 2 |
| 2096 |
# process_id: '26' |
| 2097 |
# - areas: |
| 2098 |
# - area_id: '10' |
| 2099 |
# authentication: |
| 2100 |
# disable: true |
| 2101 |
# hello_interval: 2 |
| 2102 |
# - area_id: '20' |
| 2103 |
# authentication: |
| 2104 |
# disable: true |
| 2105 |
# cost: 2 |
| 2106 |
# default_cost: 2 |
| 2107 |
# process_id: '27' |
| 2108 |
# - process_id: '30' |
| 2109 |
# |
| 2110 |
# After state: |
| 2111 |
# ------------ |
| 2112 |
# |
| 2113 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 2114 |
# router ospfv3 10 |
| 2115 |
# area 11 |
| 2116 |
# ! |
| 2117 |
# area 22 |
| 2118 |
# ! |
| 2119 |
# ! |
| 2120 |
# router ospfv3 26 |
| 2121 |
# area 10 |
| 2122 |
# authentication disable |
| 2123 |
# hello-interval 2 |
| 2124 |
# ! |
| 2125 |
# ! |
| 2126 |
# router ospfv3 27 |
| 2127 |
# area 10 |
| 2128 |
# authentication disable |
| 2129 |
# hello-interval 2 |
| 2130 |
# ! |
| 2131 |
# area 20 |
| 2132 |
# cost 2 |
| 2133 |
# authentication disable |
| 2134 |
# default-cost 2 |
| 2135 |
# ! |
| 2136 |
# ! |
| 2137 |
# router ospfv3 30 |
| 2138 |
# area 11 |
| 2139 |
# ! |
| 2140 |
# area 22 |
| 2141 |
# ! |
| 2142 |
# ! |
| 2143 |
|
| 2144 |
# Using deleted |
| 2145 |
# |
| 2146 |
# Before state: |
| 2147 |
# ------------- |
| 2148 |
# |
| 2149 |
# |
| 2150 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 2151 |
# router ospfv3 10 |
| 2152 |
# area 11 |
| 2153 |
# cost 11 |
| 2154 |
# default-cost 5 |
| 2155 |
# ! |
| 2156 |
# area 22 |
| 2157 |
# default-cost 6 |
| 2158 |
# ! |
| 2159 |
# ! |
| 2160 |
# router ospfv3 26 |
| 2161 |
# authentication disable |
| 2162 |
# area 10 |
| 2163 |
# authentication disable |
| 2164 |
# hello-interval 2 |
| 2165 |
# ! |
| 2166 |
# ! |
| 2167 |
# router ospfv3 27 |
| 2168 |
# area 10 |
| 2169 |
# authentication disable |
| 2170 |
# hello-interval 2 |
| 2171 |
# ! |
| 2172 |
# area 20 |
| 2173 |
# cost 2 |
| 2174 |
# authentication disable |
| 2175 |
# default-cost 2 |
| 2176 |
# ! |
| 2177 |
# ! |
| 2178 |
# router ospfv3 30 |
| 2179 |
# cost 2 |
| 2180 |
# priority 1 |
| 2181 |
# mtu-ignore |
| 2182 |
# packet-size 577 |
| 2183 |
# dead-interval 2 |
| 2184 |
# retransmit-interval 2 |
| 2185 |
# demand-circuit |
| 2186 |
# hello-interval 1 |
| 2187 |
# transmit-delay 2 |
| 2188 |
# router-id 2.2.2.2 |
| 2189 |
# default-metric 10 |
| 2190 |
# area 11 |
| 2191 |
# default-cost 5 |
| 2192 |
# ! |
| 2193 |
# area 22 |
| 2194 |
# default-cost 6 |
| 2195 |
# ! |
| 2196 |
# ! |
| 2197 |
|
| 2198 |
- name: Deleted existing OSPFv3 configurations from the device |
| 2199 |
cisco.iosxr.iosxr_ospfv3: |
| 2200 |
config: |
| 2201 |
processes: |
| 2202 |
- process_id: '10' |
| 2203 |
- process_id: '26' |
| 2204 |
- process_id: '27' |
| 2205 |
- process_id: '30' |
| 2206 |
state: deleted |
| 2207 |
|
| 2208 |
|
| 2209 |
# |
| 2210 |
# Task Output: |
| 2211 |
# ------------ |
| 2212 |
# |
| 2213 |
# before: |
| 2214 |
# processes: |
| 2215 |
# - areas: |
| 2216 |
# - area_id: '11' |
| 2217 |
# cost: 11 |
| 2218 |
# default_cost: 5 |
| 2219 |
# - area_id: '22' |
| 2220 |
# default_cost: 6 |
| 2221 |
# process_id: '10' |
| 2222 |
# - areas: |
| 2223 |
# - area_id: '10' |
| 2224 |
# authentication: |
| 2225 |
# disable: true |
| 2226 |
# hello_interval: 2 |
| 2227 |
# authentication: |
| 2228 |
# disable: true |
| 2229 |
# process_id: '26' |
| 2230 |
# - areas: |
| 2231 |
# - area_id: '10' |
| 2232 |
# authentication: |
| 2233 |
# disable: true |
| 2234 |
# hello_interval: 2 |
| 2235 |
# - area_id: '20' |
| 2236 |
# authentication: |
| 2237 |
# disable: true |
| 2238 |
# cost: 2 |
| 2239 |
# default_cost: 2 |
| 2240 |
# process_id: '27' |
| 2241 |
# - areas: |
| 2242 |
# - area_id: '11' |
| 2243 |
# default_cost: 5 |
| 2244 |
# - area_id: '22' |
| 2245 |
# default_cost: 6 |
| 2246 |
# cost: 2 |
| 2247 |
# dead_interval: 2 |
| 2248 |
# default_metric: 10 |
| 2249 |
# demand_circuit: true |
| 2250 |
# hello_interval: 1 |
| 2251 |
# mtu_ignore: true |
| 2252 |
# packet_size: 577 |
| 2253 |
# priority: 1 |
| 2254 |
# process_id: '30' |
| 2255 |
# retransmit_interval: 2 |
| 2256 |
# router_id: 2.2.2.2 |
| 2257 |
# transmit_delay: 2 |
| 2258 |
# |
| 2259 |
# commands: |
| 2260 |
# - router ospfv3 10 |
| 2261 |
# - no area 11 default-cost 5 |
| 2262 |
# - no area 11 cost 11 |
| 2263 |
# - no area 22 default-cost 6 |
| 2264 |
# - router ospfv3 26 |
| 2265 |
# - no authentication disable |
| 2266 |
# - no area 10 authentication disable |
| 2267 |
# - no area 10 hello-interval 2 |
| 2268 |
# - router ospfv3 27 |
| 2269 |
# - no area 10 authentication disable |
| 2270 |
# - no area 10 hello-interval 2 |
| 2271 |
# - no area 20 authentication disable |
| 2272 |
# - no area 20 default-cost 2 |
| 2273 |
# - no area 20 cost 2 |
| 2274 |
# - router ospfv3 30 |
| 2275 |
# - no cost 2 |
| 2276 |
# - no priority 1 |
| 2277 |
# - no default-metric 10 |
| 2278 |
# - no router-id 2.2.2.2 |
| 2279 |
# - no demand-circuit |
| 2280 |
# - no packet-size 577 |
| 2281 |
# - no transmit-delay 2 |
| 2282 |
# - no dead-interval 2 |
| 2283 |
# - no hello-interval 1 |
| 2284 |
# - no retransmit-interval 2 |
| 2285 |
# - no mtu-ignore |
| 2286 |
# - no area 11 default-cost 5 |
| 2287 |
# - no area 22 default-cost 6 |
| 2288 |
# |
| 2289 |
# after: |
| 2290 |
# processes: |
| 2291 |
# - process_id: '10' |
| 2292 |
# - process_id: '26' |
| 2293 |
# - process_id: '27' |
| 2294 |
# - process_id: '30' |
| 2295 |
# |
| 2296 |
# After state: |
| 2297 |
# ------------ |
| 2298 |
# |
| 2299 |
# RP/0/RP0/CPU0:anton(config)#show running-config router ospfv3 |
| 2300 |
# router ospfv3 10 |
| 2301 |
# area 11 |
| 2302 |
# ! |
| 2303 |
# area 22 |
| 2304 |
# ! |
| 2305 |
# ! |
| 2306 |
# router ospfv3 26 |
| 2307 |
# area 10 |
| 2308 |
# ! |
| 2309 |
# ! |
| 2310 |
# router ospfv3 27 |
| 2311 |
# area 10 |
| 2312 |
# ! |
| 2313 |
# area 20 |
| 2314 |
# ! |
| 2315 |
# ! |
| 2316 |
# router ospfv3 30 |
| 2317 |
# area 11 |
| 2318 |
# ! |
| 2319 |
# area 22 |
| 2320 |
# ! |
| 2321 |
# ! |
| 2322 |
|
| 2323 |
# Using deleted |
| 2324 |
# |
| 2325 |
# Before state: |
| 2326 |
# ------------- |
| 2327 |
# |
| 2328 |
# |
| 2329 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 2330 |
# router ospfv3 10 |
| 2331 |
# area 11 |
| 2332 |
# cost 11 |
| 2333 |
# default-cost 5 |
| 2334 |
# ! |
| 2335 |
# area 22 |
| 2336 |
# default-cost 6 |
| 2337 |
# ! |
| 2338 |
# ! |
| 2339 |
# router ospfv3 26 |
| 2340 |
# authentication disable |
| 2341 |
# area 10 |
| 2342 |
# authentication disable |
| 2343 |
# hello-interval 2 |
| 2344 |
# ! |
| 2345 |
# ! |
| 2346 |
# router ospfv3 27 |
| 2347 |
# area 10 |
| 2348 |
# authentication disable |
| 2349 |
# hello-interval 2 |
| 2350 |
# ! |
| 2351 |
# area 20 |
| 2352 |
# cost 2 |
| 2353 |
# authentication disable |
| 2354 |
# default-cost 2 |
| 2355 |
# ! |
| 2356 |
# ! |
| 2357 |
# router ospfv3 30 |
| 2358 |
# cost 2 |
| 2359 |
# priority 1 |
| 2360 |
# mtu-ignore |
| 2361 |
# packet-size 577 |
| 2362 |
# dead-interval 2 |
| 2363 |
# retransmit-interval 2 |
| 2364 |
# demand-circuit |
| 2365 |
# hello-interval 1 |
| 2366 |
# transmit-delay 2 |
| 2367 |
# router-id 2.2.2.2 |
| 2368 |
# default-metric 10 |
| 2369 |
# area 11 |
| 2370 |
# default-cost 5 |
| 2371 |
# ! |
| 2372 |
# area 22 |
| 2373 |
# default-cost 6 |
| 2374 |
# ! |
| 2375 |
# ! |
| 2376 |
|
| 2377 |
- name: Deleted existing OSPFv3 configurations from the device |
| 2378 |
cisco.iosxr.iosxr_ospfv3: |
| 2379 |
config: |
| 2380 |
state: deleted |
| 2381 |
|
| 2382 |
# |
| 2383 |
# Task Output: |
| 2384 |
# ------------ |
| 2385 |
# |
| 2386 |
# before: |
| 2387 |
# processes: |
| 2388 |
# - areas: |
| 2389 |
# - area_id: '11' |
| 2390 |
# cost: 11 |
| 2391 |
# default_cost: 5 |
| 2392 |
# - area_id: '22' |
| 2393 |
# default_cost: 6 |
| 2394 |
# process_id: '10' |
| 2395 |
# - areas: |
| 2396 |
# - area_id: '10' |
| 2397 |
# authentication: |
| 2398 |
# disable: true |
| 2399 |
# hello_interval: 2 |
| 2400 |
# authentication: |
| 2401 |
# disable: true |
| 2402 |
# process_id: '26' |
| 2403 |
# - areas: |
| 2404 |
# - area_id: '10' |
| 2405 |
# authentication: |
| 2406 |
# disable: true |
| 2407 |
# hello_interval: 2 |
| 2408 |
# - area_id: '20' |
| 2409 |
# authentication: |
| 2410 |
# disable: true |
| 2411 |
# cost: 2 |
| 2412 |
# default_cost: 2 |
| 2413 |
# process_id: '27' |
| 2414 |
# - areas: |
| 2415 |
# - area_id: '11' |
| 2416 |
# default_cost: 5 |
| 2417 |
# - area_id: '22' |
| 2418 |
# default_cost: 6 |
| 2419 |
# cost: 2 |
| 2420 |
# dead_interval: 2 |
| 2421 |
# default_metric: 10 |
| 2422 |
# demand_circuit: true |
| 2423 |
# hello_interval: 1 |
| 2424 |
# mtu_ignore: true |
| 2425 |
# packet_size: 577 |
| 2426 |
# priority: 1 |
| 2427 |
# process_id: '30' |
| 2428 |
# retransmit_interval: 2 |
| 2429 |
# router_id: 2.2.2.2 |
| 2430 |
# transmit_delay: 2 |
| 2431 |
# |
| 2432 |
# commands: |
| 2433 |
# - router ospfv3 10 |
| 2434 |
# - no area 11 default-cost 5 |
| 2435 |
# - no area 11 cost 11 |
| 2436 |
# - no area 22 default-cost 6 |
| 2437 |
# - router ospfv3 26 |
| 2438 |
# - no authentication disable |
| 2439 |
# - no area 10 authentication disable |
| 2440 |
# - no area 10 hello-interval 2 |
| 2441 |
# - router ospfv3 27 |
| 2442 |
# - no area 10 authentication disable |
| 2443 |
# - no area 10 hello-interval 2 |
| 2444 |
# - no area 20 authentication disable |
| 2445 |
# - no area 20 default-cost 2 |
| 2446 |
# - no area 20 cost 2 |
| 2447 |
# - router ospfv3 30 |
| 2448 |
# - no cost 2 |
| 2449 |
# - no priority 1 |
| 2450 |
# - no default-metric 10 |
| 2451 |
# - no router-id 2.2.2.2 |
| 2452 |
# - no demand-circuit |
| 2453 |
# - no packet-size 577 |
| 2454 |
# - no transmit-delay 2 |
| 2455 |
# - no dead-interval 2 |
| 2456 |
# - no hello-interval 1 |
| 2457 |
# - no retransmit-interval 2 |
| 2458 |
# - no mtu-ignore |
| 2459 |
# - no area 11 default-cost 5 |
| 2460 |
# - no area 22 default-cost 6 |
| 2461 |
# |
| 2462 |
# after: |
| 2463 |
# processes: |
| 2464 |
# - process_id: '10' |
| 2465 |
# - process_id: '26' |
| 2466 |
# - process_id: '27' |
| 2467 |
# - process_id: '30' |
| 2468 |
# |
| 2469 |
# After state: |
| 2470 |
# ------------ |
| 2471 |
# |
| 2472 |
# RP/0/RP0/CPU0:anton(config)#show running-config router ospfv3 |
| 2473 |
# router ospfv3 10 |
| 2474 |
# area 11 |
| 2475 |
# ! |
| 2476 |
# area 22 |
| 2477 |
# ! |
| 2478 |
# ! |
| 2479 |
# router ospfv3 26 |
| 2480 |
# area 10 |
| 2481 |
# ! |
| 2482 |
# ! |
| 2483 |
# router ospfv3 27 |
| 2484 |
# area 10 |
| 2485 |
# ! |
| 2486 |
# area 20 |
| 2487 |
# ! |
| 2488 |
# ! |
| 2489 |
# router ospfv3 30 |
| 2490 |
# area 11 |
| 2491 |
# ! |
| 2492 |
# area 22 |
| 2493 |
# ! |
| 2494 |
# ! |
| 2495 |
|
| 2496 |
|
| 2497 |
# Using parsed |
| 2498 |
# |
| 2499 |
# parsed.cfg |
| 2500 |
# ------------ |
| 2501 |
# router ospfv3 10 |
| 2502 |
# area 11 |
| 2503 |
# cost 11 |
| 2504 |
# default-cost 5 |
| 2505 |
# ! |
| 2506 |
# area 22 |
| 2507 |
# default-cost 6 |
| 2508 |
# ! |
| 2509 |
# ! |
| 2510 |
# router ospfv3 26 |
| 2511 |
# authentication disable |
| 2512 |
# ! |
| 2513 |
# router ospfv3 27 |
| 2514 |
# area 10 |
| 2515 |
# hello-interval 2 |
| 2516 |
# ! |
| 2517 |
# ! |
| 2518 |
# router ospfv3 30 |
| 2519 |
# router-id 2.2.2.2 |
| 2520 |
# cost 2 |
| 2521 |
# packet-size 577 |
| 2522 |
# priority 1 |
| 2523 |
# mtu-ignore |
| 2524 |
# dead-interval 2 |
| 2525 |
# retransmit-interval 2 |
| 2526 |
# demand-circuit |
| 2527 |
# hello-interval 1 |
| 2528 |
# transmit-delay 2 |
| 2529 |
# default-metric 10 |
| 2530 |
# area 11 |
| 2531 |
# default-cost 5 |
| 2532 |
# ! |
| 2533 |
# area 22 |
| 2534 |
# default-cost 6 |
| 2535 |
# ! |
| 2536 |
# ! |
| 2537 |
- name: Parsed the device configuration to get output commands |
| 2538 |
cisco.iosxr.iosxr_ospfv3: |
| 2539 |
running_config: "{{ lookup('file', './parsed.cfg') }}" |
| 2540 |
state: parsed |
| 2541 |
# |
| 2542 |
# |
| 2543 |
# Task Output: |
| 2544 |
# ------------ |
| 2545 |
# |
| 2546 |
# parsed: |
| 2547 |
# processes: |
| 2548 |
# - areas: |
| 2549 |
# - area_id: '11' |
| 2550 |
# cost: 11 |
| 2551 |
# default_cost: 5 |
| 2552 |
# - area_id: '22' |
| 2553 |
# default_cost: 6 |
| 2554 |
# process_id: '10' |
| 2555 |
# - authentication: |
| 2556 |
# disable: true |
| 2557 |
# process_id: '26' |
| 2558 |
# - areas: |
| 2559 |
# - area_id: '10' |
| 2560 |
# hello_interval: 2 |
| 2561 |
# process_id: '27' |
| 2562 |
# - areas: |
| 2563 |
# - area_id: '11' |
| 2564 |
# default_cost: 5 |
| 2565 |
# - area_id: '22' |
| 2566 |
# default_cost: 6 |
| 2567 |
# cost: 2 |
| 2568 |
# dead_interval: 2 |
| 2569 |
# default_metric: 10 |
| 2570 |
# demand_circuit: true |
| 2571 |
# hello_interval: 1 |
| 2572 |
# mtu_ignore: true |
| 2573 |
# packet_size: 577 |
| 2574 |
# priority: 1 |
| 2575 |
# process_id: '30' |
| 2576 |
# retransmit_interval: 2 |
| 2577 |
# router_id: 2.2.2.2 |
| 2578 |
# transmit_delay: 2 |
| 2579 |
# |
| 2580 |
# Using rendered |
| 2581 |
# |
| 2582 |
- name: Render the commands for provided configuration |
| 2583 |
cisco.iosxr.iosxr_ospfv3: |
| 2584 |
config: |
| 2585 |
processes: |
| 2586 |
- process_id: 27 |
| 2587 |
areas: |
| 2588 |
- area_id: 10 |
| 2589 |
hello_interval: 2 |
| 2590 |
- process_id: 26 |
| 2591 |
authentication: |
| 2592 |
disable: true |
| 2593 |
- process_id: 10 |
| 2594 |
areas: |
| 2595 |
- area_id: 11 |
| 2596 |
default_cost: 5 |
| 2597 |
cost: 11 |
| 2598 |
- area_id: 22 |
| 2599 |
default_cost: 6 |
| 2600 |
- process_id: 30 |
| 2601 |
areas: |
| 2602 |
- area_id: 11 |
| 2603 |
default_cost: 5 |
| 2604 |
- area_id: 22 |
| 2605 |
default_cost: 6 |
| 2606 |
cost: 2 |
| 2607 |
default_metric: 10 |
| 2608 |
transmit_delay: 2 |
| 2609 |
hello_interval: 1 |
| 2610 |
dead_interval: 2 |
| 2611 |
retransmit_interval: 2 |
| 2612 |
packet_size: 577 |
| 2613 |
priority: 1 |
| 2614 |
router_id: '2.2.2.2' |
| 2615 |
demand_circuit: true |
| 2616 |
mtu_ignore: true |
| 2617 |
state: rendered |
| 2618 |
|
| 2619 |
# |
| 2620 |
# |
| 2621 |
# Task Output: |
| 2622 |
# ------------ |
| 2623 |
# |
| 2624 |
# rendered: |
| 2625 |
# - router ospfv3 27 |
| 2626 |
# - area 10 hello-interval 2 |
| 2627 |
# - router ospfv3 26 |
| 2628 |
# - authentication disable |
| 2629 |
# - router ospfv3 10 |
| 2630 |
# - area 11 default-cost 5 |
| 2631 |
# - area 11 cost 11 |
| 2632 |
# - area 22 default-cost 6 |
| 2633 |
# - router ospfv3 30 |
| 2634 |
# - cost 2 |
| 2635 |
# - priority 1 |
| 2636 |
# - default-metric 10 |
| 2637 |
# - router-id 2.2.2.2 |
| 2638 |
# - demand-circuit |
| 2639 |
# - packet-size 577 |
| 2640 |
# - transmit-delay 2 |
| 2641 |
# - dead-interval 2 |
| 2642 |
# - hello-interval 1 |
| 2643 |
# - retransmit-interval 2 |
| 2644 |
# - mtu-ignore |
| 2645 |
# - area 11 default-cost 5 |
| 2646 |
# - area 22 default-cost 6 |
| 2647 |
|
| 2648 |
|
| 2649 |
# Using gathered |
| 2650 |
# |
| 2651 |
# Before state: |
| 2652 |
# ------------- |
| 2653 |
# |
| 2654 |
# RP/0/RP0/CPU0:anton#show running-config router ospfv3 |
| 2655 |
# router ospfv3 10 |
| 2656 |
# area 11 |
| 2657 |
# cost 11 |
| 2658 |
# default-cost 5 |
| 2659 |
# ! |
| 2660 |
# area 22 |
| 2661 |
# default-cost 6 |
| 2662 |
# ! |
| 2663 |
# ! |
| 2664 |
# router ospfv3 26 |
| 2665 |
# authentication disable |
| 2666 |
# area 10 |
| 2667 |
# ! |
| 2668 |
# ! |
| 2669 |
# router ospfv3 27 |
| 2670 |
# area 10 |
| 2671 |
# hello-interval 2 |
| 2672 |
# ! |
| 2673 |
# area 20 |
| 2674 |
# ! |
| 2675 |
# ! |
| 2676 |
# router ospfv3 30 |
| 2677 |
# cost 2 |
| 2678 |
# priority 1 |
| 2679 |
# mtu-ignore |
| 2680 |
# packet-size 577 |
| 2681 |
# dead-interval 2 |
| 2682 |
# retransmit-interval 2 |
| 2683 |
# demand-circuit |
| 2684 |
# hello-interval 1 |
| 2685 |
# transmit-delay 2 |
| 2686 |
# router-id 2.2.2.2 |
| 2687 |
# default-metric 10 |
| 2688 |
# area 11 |
| 2689 |
# default-cost 5 |
| 2690 |
# ! |
| 2691 |
# area 22 |
| 2692 |
# default-cost 6 |
| 2693 |
# ! |
| 2694 |
# ! |
| 2695 |
|
| 2696 |
- name: Gather ospfv3 routes configuration |
| 2697 |
cisco.iosxr.iosxr_ospfv3: |
| 2698 |
state: gathered |
| 2699 |
# |
| 2700 |
# |
| 2701 |
# Task Output: |
| 2702 |
# ------------ |
| 2703 |
# |
| 2704 |
# gathered: |
| 2705 |
# processes: |
| 2706 |
# - areas: |
| 2707 |
# - area_id: '11' |
| 2708 |
# cost: 11 |
| 2709 |
# default_cost: 5 |
| 2710 |
# - area_id: '22' |
| 2711 |
# default_cost: 6 |
| 2712 |
# process_id: '10' |
| 2713 |
# - authentication: |
| 2714 |
# disable: true |
| 2715 |
# process_id: '26' |
| 2716 |
# - areas: |
| 2717 |
# - area_id: '10' |
| 2718 |
# hello_interval: 2 |
| 2719 |
# process_id: '27' |
| 2720 |
# - areas: |
| 2721 |
# - area_id: '11' |
| 2722 |
# default_cost: 5 |
| 2723 |
# - area_id: '22' |
| 2724 |
# default_cost: 6 |
| 2725 |
# cost: 2 |
| 2726 |
# dead_interval: 2 |
| 2727 |
# default_metric: 10 |
| 2728 |
# demand_circuit: true |
| 2729 |
# hello_interval: 1 |
| 2730 |
# mtu_ignore: true |
| 2731 |
# packet_size: 577 |
| 2732 |
# priority: 1 |
| 2733 |
# process_id: '30' |
| 2734 |
# retransmit_interval: 2 |
| 2735 |
# router_id: 2.2.2.2 |
| 2736 |
# transmit_delay: 2 |
| 2737 |
# |
| 2738 |
""" |
| 2739 |
RETURN = """ |
| 2740 |
before: |
| 2741 |
description: The configuration prior to the model invocation. |
| 2742 |
returned: always |
| 2743 |
type: dict |
| 2744 |
sample: > |
| 2745 |
The configuration returned will always be in the same format |
| 2746 |
of the parameters above. |
| 2747 |
after: |
| 2748 |
description: The resulting configuration model invocation. |
| 2749 |
returned: when changed |
| 2750 |
type: dict |
| 2751 |
sample: > |
| 2752 |
The configuration returned will always be in the same format |
| 2753 |
of the parameters above. |
| 2754 |
commands: |
| 2755 |
description: The set of commands pushed to the remote device. |
| 2756 |
returned: always |
| 2757 |
type: list |
| 2758 |
sample: |
| 2759 |
- router ospfv3 10 |
| 2760 |
- area 11 default-cost 5 |
| 2761 |
- area 11 cost 11 |
| 2762 |
- area 22 default-cost 6 |
| 2763 |
|
| 2764 |
rendered: |
| 2765 |
description: The provided configuration in the task rendered in device-native format (offline). |
| 2766 |
returned: when I(state) is C(rendered) |
| 2767 |
type: list |
| 2768 |
sample: |
| 2769 |
- router ospfv3 27 |
| 2770 |
- area 10 hello-interval 2 |
| 2771 |
gathered: |
| 2772 |
description: Facts about the network resource gathered from the remote device as structured data. |
| 2773 |
returned: when I(state) is C(gathered) |
| 2774 |
type: dict |
| 2775 |
sample: > |
| 2776 |
This output will always be in the same format as the |
| 2777 |
module argspec. |
| 2778 |
parsed: |
| 2779 |
description: The device native config provided in I(running_config) option parsed into structured data as per module argspec. |
| 2780 |
returned: when I(state) is C(parsed) |
| 2781 |
type: dict |
| 2782 |
sample: > |
| 2783 |
This output will always be in the same format as the |
| 2784 |
module argspec. |
| 2785 |
""" |
| 2786 |
|
| 2787 |
from ansible.module_utils.basic import AnsibleModule |
| 2788 |
|
| 2789 |
from ansible_collections.cisco.iosxr.plugins.module_utils.network.iosxr.argspec.ospfv3.ospfv3 import ( |
| 2790 |
Ospfv3Args, |
| 2791 |
) |
| 2792 |
from ansible_collections.cisco.iosxr.plugins.module_utils.network.iosxr.config.ospfv3.ospfv3 import ( |
| 2793 |
Ospfv3, |
| 2794 |
) |
| 2795 |
|
| 2796 |
|
| 2797 |
def main(): |
| 2798 |
""" |
| 2799 |
Main entry point for module execution |
| 2800 |
|
| 2801 |
:returns: the result form module invocation |
| 2802 |
""" |
| 2803 |
module = AnsibleModule( |
| 2804 |
argument_spec=Ospfv3Args.argument_spec, |
| 2805 |
mutually_exclusive=[["config", "running_config"]], |
| 2806 |
required_if=[ |
| 2807 |
["state", "merged", ["config"]], |
| 2808 |
["state", "replaced", ["config"]], |
| 2809 |
["state", "overridden", ["config"]], |
| 2810 |
["state", "rendered", ["config"]], |
| 2811 |
["state", "parsed", ["running_config"]], |
| 2812 |
], |
| 2813 |
supports_check_mode=True, |
| 2814 |
) |
| 2815 |
|
| 2816 |
result = Ospfv3(module).execute_module() |
| 2817 |
module.exit_json(**result) |
| 2818 |
|
| 2819 |
|
| 2820 |
if __name__ == "__main__": |
| 2821 |
main() |