| 1 |
#!/usr/bin/python |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
# Copyright 2022 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 |
The module file for ios_bgp_address_family |
| 9 |
""" |
| 10 |
|
| 11 |
from __future__ import absolute_import, division, print_function |
| 12 |
|
| 13 |
|
| 14 |
__metaclass__ = type |
| 15 |
|
| 16 |
DOCUMENTATION = """ |
| 17 |
module: ios_bgp_address_family |
| 18 |
short_description: Resource module to configure BGP Address family. |
| 19 |
description: This module configures and manages the attributes of bgp address family on Cisco IOS. |
| 20 |
version_added: 1.2.0 |
| 21 |
author: |
| 22 |
- Sagar Paul (@KB-perByte) |
| 23 |
- Sumit Jaiswal (@justjais) |
| 24 |
notes: |
| 25 |
- Tested against Cisco IOS-XE Version 17.3 on CML. |
| 26 |
- This module works with connection C(network_cli). |
| 27 |
See U(https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html) |
| 28 |
- The module examples uses callback plugin (stdout_callback = yaml) to generate task |
| 29 |
output in yaml format. |
| 30 |
options: |
| 31 |
config: |
| 32 |
description: A list of configurations for bgp address family. |
| 33 |
type: dict |
| 34 |
suboptions: |
| 35 |
as_number: |
| 36 |
description: Autonomous system number. |
| 37 |
type: str |
| 38 |
address_family: |
| 39 |
description: A list of configurations for bgp address family. |
| 40 |
type: list |
| 41 |
elements: dict |
| 42 |
suboptions: |
| 43 |
afi: |
| 44 |
description: Address Family |
| 45 |
type: str |
| 46 |
choices: |
| 47 |
["ipv4", "ipv6", "l2vpn", "nsap", "rtfilter", "vpnv4", "vpnv6"] |
| 48 |
safi: |
| 49 |
description: Address Family modifier |
| 50 |
type: str |
| 51 |
choices: ["flowspec", "mdt", "multicast", "mvpn", "evpn", "unicast"] |
| 52 |
vrf: |
| 53 |
description: Specify parameters for a VPN Routing/Forwarding instance |
| 54 |
type: str |
| 55 |
advertise: |
| 56 |
description: Configure path advertise/export to other address-family |
| 57 |
type: dict |
| 58 |
suboptions: |
| 59 |
afi: |
| 60 |
description: Address family for VRF advertise/export |
| 61 |
type: str |
| 62 |
choices: ["l2vpn"] |
| 63 |
safi: |
| 64 |
description: Advertise/export prefixes to address family |
| 65 |
type: str |
| 66 |
choices: ["evpn"] |
| 67 |
aggregate_addresses: |
| 68 |
description: Configure BGP aggregate entries |
| 69 |
type: list |
| 70 |
elements: dict |
| 71 |
aliases: |
| 72 |
- aggregate_address |
| 73 |
suboptions: |
| 74 |
address: |
| 75 |
description: Aggregate address(A.B.C.D) |
| 76 |
type: str |
| 77 |
netmask: |
| 78 |
description: Aggregate mask(A.B.C.D) |
| 79 |
type: str |
| 80 |
advertise_map: |
| 81 |
description: Set condition to advertise attribute |
| 82 |
type: str |
| 83 |
as_confed_set: |
| 84 |
description: Generate AS confed set path information |
| 85 |
type: bool |
| 86 |
as_set: |
| 87 |
description: Generate AS set path information |
| 88 |
type: bool |
| 89 |
attribute_map: |
| 90 |
description: Set attributes of aggregate |
| 91 |
type: str |
| 92 |
summary_only: |
| 93 |
description: Filter more specific routes from updates |
| 94 |
type: bool |
| 95 |
suppress_map: |
| 96 |
description: Conditionally filter more specific routes from updates |
| 97 |
type: str |
| 98 |
auto_summary: |
| 99 |
description: Enable automatic network number summarization |
| 100 |
type: bool |
| 101 |
maximum_paths: |
| 102 |
description: Forward packets over multiple paths |
| 103 |
type: dict |
| 104 |
suboptions: |
| 105 |
paths: |
| 106 |
description: Number of paths |
| 107 |
type: int |
| 108 |
eibgp: |
| 109 |
description: Both eBGP and iBGP paths as multipath |
| 110 |
type: int |
| 111 |
ibgp: |
| 112 |
description: iBGP-multipath |
| 113 |
type: int |
| 114 |
maximum_secondary_paths: |
| 115 |
description: Maximum secondary paths |
| 116 |
type: dict |
| 117 |
suboptions: |
| 118 |
paths: |
| 119 |
description: Number of secondary paths |
| 120 |
type: int |
| 121 |
eibgp: |
| 122 |
description: Both eBGP and iBGP paths as secondary multipath |
| 123 |
type: int |
| 124 |
ibgp: |
| 125 |
description: iBGP-secondary-multipath |
| 126 |
type: int |
| 127 |
bgp: |
| 128 |
description: Configure BGP aggregate entries |
| 129 |
type: dict |
| 130 |
suboptions: |
| 131 |
additional_paths: |
| 132 |
description: Additional paths in the BGP table |
| 133 |
type: dict |
| 134 |
suboptions: |
| 135 |
receive: |
| 136 |
description: Receive additional paths from neighbors |
| 137 |
type: bool |
| 138 |
select: |
| 139 |
description: Selection criteria to pick the paths |
| 140 |
type: dict |
| 141 |
suboptions: |
| 142 |
all: |
| 143 |
description: Select all available paths |
| 144 |
type: bool |
| 145 |
backup: |
| 146 |
description: Select backup path |
| 147 |
type: bool |
| 148 |
best: |
| 149 |
description: Select best N paths (2-3). |
| 150 |
type: int |
| 151 |
best_external: |
| 152 |
description: Select best-external path |
| 153 |
type: bool |
| 154 |
group_best: |
| 155 |
description: Select group-best path |
| 156 |
type: bool |
| 157 |
send: |
| 158 |
description: Send additional paths to neighbors |
| 159 |
type: bool |
| 160 |
install: |
| 161 |
description: Additional paths to install into RIB |
| 162 |
type: bool |
| 163 |
aggregate_timer: |
| 164 |
description: |
| 165 |
- Configure Aggregation Timer |
| 166 |
- Please refer vendor documentation for valid values |
| 167 |
type: int |
| 168 |
dampening: |
| 169 |
description: Enable route-flap dampening |
| 170 |
type: dict |
| 171 |
suboptions: |
| 172 |
penalty_half_time: |
| 173 |
description: |
| 174 |
- Half-life time for the penalty |
| 175 |
- Please refer vendor documentation for valid values |
| 176 |
type: int |
| 177 |
reuse_route_val: |
| 178 |
description: |
| 179 |
- Value to start reusing a route |
| 180 |
- Please refer vendor documentation for valid values |
| 181 |
type: int |
| 182 |
suppress_route_val: |
| 183 |
description: |
| 184 |
- Value to start suppressing a route |
| 185 |
- Please refer vendor documentation for valid values |
| 186 |
type: int |
| 187 |
max_suppress: |
| 188 |
description: |
| 189 |
- Maximum duration to suppress a stable route |
| 190 |
- Please refer vendor documentation for valid values |
| 191 |
type: int |
| 192 |
route_map: |
| 193 |
description: Route-map to specify criteria for dampening |
| 194 |
type: str |
| 195 |
dmzlink_bw: |
| 196 |
description: Use DMZ Link Bandwidth as weight for BGP multipaths |
| 197 |
type: bool |
| 198 |
nexthop: |
| 199 |
description: Nexthop tracking commands |
| 200 |
type: dict |
| 201 |
suboptions: |
| 202 |
route_map: |
| 203 |
description: Route map for valid nexthops |
| 204 |
type: str |
| 205 |
trigger: |
| 206 |
description: Nexthop triggering |
| 207 |
type: dict |
| 208 |
suboptions: |
| 209 |
delay: |
| 210 |
description: |
| 211 |
- Set the delay to tigger nexthop tracking |
| 212 |
- Please refer vendor documentation for valid values |
| 213 |
type: int |
| 214 |
enable: |
| 215 |
description: Enable nexthop tracking |
| 216 |
type: bool |
| 217 |
redistribute_internal: |
| 218 |
description: Allow redistribution of iBGP into IGPs (dangerous) |
| 219 |
type: bool |
| 220 |
route_map: |
| 221 |
description: |
| 222 |
- route-map control commands |
| 223 |
- Have route-map set commands take priority over BGP commands such as next-hop unchanged |
| 224 |
type: bool |
| 225 |
scan_time: |
| 226 |
description: |
| 227 |
- Configure background scanner interval |
| 228 |
- Please refer vendor documentation for valid values |
| 229 |
type: int |
| 230 |
slow_peer: |
| 231 |
description: |
| 232 |
- Nexthop triggering |
| 233 |
- This option is DEPRECATED and replaced with slow_peer_options, |
| 234 |
this attribute will be removed after 2025-01-01. |
| 235 |
type: list |
| 236 |
elements: dict |
| 237 |
suboptions: |
| 238 |
detection: |
| 239 |
description: Slow-peer detection |
| 240 |
type: dict |
| 241 |
suboptions: |
| 242 |
enable: |
| 243 |
description: Enable slow-peer detection |
| 244 |
type: bool |
| 245 |
threshold: |
| 246 |
description: |
| 247 |
- Set the slow-peer detection threshold |
| 248 |
- Threshold value (seconds) |
| 249 |
- Please refer vendor documentation for valid values |
| 250 |
type: int |
| 251 |
split_update_group: |
| 252 |
description: Configure slow-peer split-update-group |
| 253 |
type: dict |
| 254 |
suboptions: |
| 255 |
dynamic: |
| 256 |
description: Dynamically split the slow peer to slow-update group |
| 257 |
type: bool |
| 258 |
permanent: |
| 259 |
description: Keep the slow-peer permanently in slow-update group |
| 260 |
type: bool |
| 261 |
slow_peer_options: |
| 262 |
description: Nexthop triggering |
| 263 |
type: dict |
| 264 |
suboptions: |
| 265 |
detection: |
| 266 |
description: Slow-peer detection |
| 267 |
type: dict |
| 268 |
suboptions: |
| 269 |
enable: |
| 270 |
description: Enable slow-peer detection |
| 271 |
type: bool |
| 272 |
threshold: |
| 273 |
description: |
| 274 |
- Set the slow-peer detection threshold |
| 275 |
- Threshold value (seconds) |
| 276 |
- Please refer vendor documentation for valid values |
| 277 |
type: int |
| 278 |
split_update_group: |
| 279 |
description: Configure slow-peer split-update-group |
| 280 |
type: dict |
| 281 |
suboptions: |
| 282 |
dynamic: |
| 283 |
description: Dynamically split the slow peer to slow-update group |
| 284 |
type: bool |
| 285 |
permanent: |
| 286 |
description: Keep the slow-peer permanently in slow-update group |
| 287 |
type: bool |
| 288 |
soft_reconfig_backup: |
| 289 |
description: Use soft-reconfiguration inbound only when route-refresh is not negotiated |
| 290 |
type: bool |
| 291 |
update_group: |
| 292 |
description: |
| 293 |
- Manage peers in bgp update groups |
| 294 |
- Split update groups based on Policy |
| 295 |
- Keep peers with as-override in different update groups |
| 296 |
type: bool |
| 297 |
default: |
| 298 |
description: Set a command to its defaults |
| 299 |
type: bool |
| 300 |
default_information: |
| 301 |
description: |
| 302 |
- Distribution of default information |
| 303 |
- Distribute default route |
| 304 |
type: bool |
| 305 |
default_metric: |
| 306 |
description: Set metric of redistributed routes |
| 307 |
type: int |
| 308 |
distance: |
| 309 |
description: Define an administrative distance |
| 310 |
type: dict |
| 311 |
suboptions: |
| 312 |
external: |
| 313 |
description: Distance for routes external to the AS |
| 314 |
type: int |
| 315 |
internal: |
| 316 |
description: Distance for routes internal to the AS |
| 317 |
type: int |
| 318 |
local: |
| 319 |
description: Distance for local routes |
| 320 |
type: int |
| 321 |
neighbors: |
| 322 |
description: Specify a neighbor router |
| 323 |
type: list |
| 324 |
elements: dict |
| 325 |
aliases: |
| 326 |
- neighbor |
| 327 |
suboptions: |
| 328 |
neighbor_address: |
| 329 |
description: |
| 330 |
- Neighbor address (A.B.C.D) |
| 331 |
- Neighbor tag |
| 332 |
- Neighbor ipv6 address (X:X:X:X::X) |
| 333 |
type: str |
| 334 |
address: |
| 335 |
description: |
| 336 |
- Neighbor address (A.B.C.D) |
| 337 |
- This option is DEPRECATED and replaced with neighbor_address, |
| 338 |
this attribute will be removed after 2025-01-01. |
| 339 |
type: str |
| 340 |
tag: |
| 341 |
description: |
| 342 |
- Neighbor tag |
| 343 |
- This option is DEPRECATED and replaced with neighbor_address, |
| 344 |
this attribute will be removed after 2025-01-01. |
| 345 |
type: str |
| 346 |
ipv6_address: |
| 347 |
description: |
| 348 |
- Neighbor ipv6 address (X:X:X:X::X) |
| 349 |
- This option is DEPRECATED and replaced with neighbor_address, |
| 350 |
this attribute will be removed after 2025-01-01. |
| 351 |
type: str |
| 352 |
aliases: |
| 353 |
- ipv6_adddress |
| 354 |
activate: |
| 355 |
description: Enable the Address Family for this Neighbor |
| 356 |
type: bool |
| 357 |
additional_paths: |
| 358 |
description: Negotiate additional paths capabilities with this neighbor |
| 359 |
type: dict |
| 360 |
suboptions: |
| 361 |
disable: |
| 362 |
description: Disable additional paths for this neighbor |
| 363 |
type: bool |
| 364 |
receive: |
| 365 |
description: Receive additional paths from neighbors |
| 366 |
type: bool |
| 367 |
send: |
| 368 |
description: Send additional paths to this neighbor |
| 369 |
type: bool |
| 370 |
advertise: |
| 371 |
description: |
| 372 |
- Advertise to this neighbor |
| 373 |
- Advertise additional paths |
| 374 |
type: dict |
| 375 |
suboptions: |
| 376 |
all: |
| 377 |
description: Select all available paths |
| 378 |
type: bool |
| 379 |
best: |
| 380 |
description: Select best N paths (2-3). |
| 381 |
type: int |
| 382 |
group_best: |
| 383 |
description: Select group-best path |
| 384 |
type: bool |
| 385 |
advertises: |
| 386 |
description: Advertise to this neighbor |
| 387 |
type: dict |
| 388 |
suboptions: |
| 389 |
additional_paths: |
| 390 |
description: Advertise additional paths |
| 391 |
type: dict |
| 392 |
suboptions: |
| 393 |
all: |
| 394 |
description: Select all available paths |
| 395 |
type: bool |
| 396 |
best: |
| 397 |
description: Select best N paths (2-3). |
| 398 |
type: int |
| 399 |
group_best: |
| 400 |
description: Select group-best path |
| 401 |
type: bool |
| 402 |
best_external: |
| 403 |
description: Advertise best-external (at RRs best-internal) path |
| 404 |
type: bool |
| 405 |
diverse_path: |
| 406 |
description: Advertise additional paths |
| 407 |
type: dict |
| 408 |
suboptions: |
| 409 |
backup: |
| 410 |
description: Diverse path can be backup path |
| 411 |
type: bool |
| 412 |
mpath: |
| 413 |
description: Diverse path can be multipath |
| 414 |
type: bool |
| 415 |
advertise_map: |
| 416 |
description: specify route-map for conditional advertisement |
| 417 |
type: dict |
| 418 |
suboptions: |
| 419 |
name: |
| 420 |
description: advertise route-map name |
| 421 |
type: str |
| 422 |
exist_map: |
| 423 |
description: |
| 424 |
- advertise prefix only if prefix is in the condition exists |
| 425 |
- condition route-map name |
| 426 |
type: str |
| 427 |
non_exist_map: |
| 428 |
description: |
| 429 |
- advertise prefix only if prefix in the condition does not exist |
| 430 |
- condition route-map name |
| 431 |
type: str |
| 432 |
advertisement_interval: |
| 433 |
description: Minimum interval between sending BGP routing updates |
| 434 |
type: int |
| 435 |
aigp: |
| 436 |
description: Enable a AIGP on neighbor |
| 437 |
type: dict |
| 438 |
suboptions: |
| 439 |
enable: |
| 440 |
description: Enable a AIGP on neighbor |
| 441 |
type: str |
| 442 |
send: |
| 443 |
description: Cost community or MED carrying AIGP VALUE |
| 444 |
type: dict |
| 445 |
suboptions: |
| 446 |
cost_community: |
| 447 |
description: Cost extended community carrying AIGP Value |
| 448 |
type: dict |
| 449 |
suboptions: |
| 450 |
id: |
| 451 |
description: |
| 452 |
- Community ID |
| 453 |
- Please refer vendor documentation for valid values |
| 454 |
type: int |
| 455 |
poi: |
| 456 |
description: Point of Insertion |
| 457 |
type: dict |
| 458 |
suboptions: |
| 459 |
igp_cost: |
| 460 |
description: Point of Insertion After IGP |
| 461 |
type: bool |
| 462 |
pre_bestpath: |
| 463 |
description: Point of Insertion At Beginning |
| 464 |
type: bool |
| 465 |
transitive: |
| 466 |
description: Cost community is Transitive |
| 467 |
type: bool |
| 468 |
med: |
| 469 |
description: Med carrying AIGP Value |
| 470 |
type: bool |
| 471 |
allow_policy: |
| 472 |
description: Enable the policy support for this IBGP Neighbor |
| 473 |
type: bool |
| 474 |
allowas_in: |
| 475 |
description: |
| 476 |
- Accept as-path with my AS present in it |
| 477 |
- Please refer vendor documentation for valid values |
| 478 |
type: int |
| 479 |
as_override: |
| 480 |
description: Override matching AS-number while sending update |
| 481 |
type: dict |
| 482 |
suboptions: |
| 483 |
set: |
| 484 |
description: Enable AS override |
| 485 |
type: bool |
| 486 |
split_horizon: |
| 487 |
description: Maintain Split Horizon while sending update |
| 488 |
type: bool |
| 489 |
bmp_activate: |
| 490 |
description: Activate the BMP monitoring for a BGP peer |
| 491 |
type: dict |
| 492 |
suboptions: |
| 493 |
all: |
| 494 |
description: Activate BMP monitoring for all servers |
| 495 |
type: bool |
| 496 |
server: |
| 497 |
description: |
| 498 |
- Activate BMP for server |
| 499 |
- BMP Server Number |
| 500 |
- Please refer vendor documentation for valid values |
| 501 |
type: int |
| 502 |
capability: |
| 503 |
description: |
| 504 |
- Advertise capability to the peer |
| 505 |
- Advertise ORF capability to the peer |
| 506 |
- Advertise prefixlist ORF capability to this neighbor |
| 507 |
type: dict |
| 508 |
suboptions: |
| 509 |
both: |
| 510 |
description: Capability to SEND and RECEIVE the ORF to/from this neighbor |
| 511 |
type: bool |
| 512 |
receive: |
| 513 |
description: Capability to RECEIVE the ORF from this neighbor |
| 514 |
type: bool |
| 515 |
send: |
| 516 |
description: Capability to SEND the ORF to this neighbor |
| 517 |
type: bool |
| 518 |
cluster_id: |
| 519 |
description: |
| 520 |
- Configure Route-Reflector Cluster-id (peers may reset) |
| 521 |
- Route-Reflector Cluster-id as 32 bit quantity, or |
| 522 |
Route-Reflector Cluster-id in IP address format (A.B.C.D) |
| 523 |
type: str |
| 524 |
default_originate: |
| 525 |
description: Originate default route to this neighbor |
| 526 |
type: dict |
| 527 |
suboptions: |
| 528 |
set: |
| 529 |
description: Set default route to this neighbor |
| 530 |
type: bool |
| 531 |
route_map: |
| 532 |
description: Route-map to specify criteria to originate default |
| 533 |
type: str |
| 534 |
description: |
| 535 |
description: Neighbor specific description |
| 536 |
type: str |
| 537 |
disable_connected_check: |
| 538 |
description: one-hop away EBGP peer using loopback address |
| 539 |
type: bool |
| 540 |
distribute_list: |
| 541 |
description: Filter updates to/from this neighbor |
| 542 |
type: dict |
| 543 |
suboptions: |
| 544 |
acl: |
| 545 |
description: ACL id/name |
| 546 |
type: str |
| 547 |
in: |
| 548 |
description: Filter incoming updates |
| 549 |
type: bool |
| 550 |
out: |
| 551 |
description: Filter outgoing updates |
| 552 |
type: bool |
| 553 |
dmzlink_bw: |
| 554 |
description: Propagate the DMZ link bandwidth |
| 555 |
type: bool |
| 556 |
ebgp_multihop: |
| 557 |
description: Allow EBGP neighbors not on directly connected networks |
| 558 |
type: dict |
| 559 |
suboptions: |
| 560 |
enable: |
| 561 |
description: Allow EBGP neighbors not on directly connected networks |
| 562 |
type: bool |
| 563 |
hop_count: |
| 564 |
description: |
| 565 |
- Maximum hop count |
| 566 |
- Please refer vendor documentation for valid values |
| 567 |
type: int |
| 568 |
fall_over: |
| 569 |
description: Session fall on peer route lost |
| 570 |
type: dict |
| 571 |
suboptions: |
| 572 |
bfd: |
| 573 |
description: Use BFD to detect failure |
| 574 |
type: dict |
| 575 |
suboptions: |
| 576 |
set: |
| 577 |
description: set bfd |
| 578 |
type: bool |
| 579 |
multi_hop: |
| 580 |
description: Force BFD multi-hop to detect failure |
| 581 |
type: bool |
| 582 |
single_hop: |
| 583 |
description: Force BFD single-hop to detect failure |
| 584 |
type: bool |
| 585 |
route_map: |
| 586 |
description: Route map for peer route |
| 587 |
type: str |
| 588 |
filter_list: |
| 589 |
description: Establish BGP filters |
| 590 |
type: dict |
| 591 |
suboptions: |
| 592 |
as_path_acl: |
| 593 |
description: |
| 594 |
- AS path access list |
| 595 |
- Please refer vendor documentation for valid values |
| 596 |
type: int |
| 597 |
in: |
| 598 |
description: Filter incoming updates |
| 599 |
type: bool |
| 600 |
out: |
| 601 |
description: Filter outgoing updates |
| 602 |
type: bool |
| 603 |
ha_mode: |
| 604 |
description: high availability mode |
| 605 |
type: dict |
| 606 |
suboptions: |
| 607 |
set: |
| 608 |
description: set ha-mode and graceful-restart for this peer |
| 609 |
type: bool |
| 610 |
disable: |
| 611 |
description: disable graceful-restart |
| 612 |
type: bool |
| 613 |
inherit: |
| 614 |
description: |
| 615 |
- Inherit a template |
| 616 |
- Inherit a peer-policy template |
| 617 |
type: str |
| 618 |
internal_vpn_client: |
| 619 |
description: Stack iBGP-CE Neighbor Path in ATTR_SET for vpn update |
| 620 |
type: bool |
| 621 |
local_as: |
| 622 |
description: Specify a local-as number |
| 623 |
type: dict |
| 624 |
suboptions: |
| 625 |
set: |
| 626 |
description: set local-as number |
| 627 |
type: bool |
| 628 |
number: |
| 629 |
description: |
| 630 |
- AS number used as local AS |
| 631 |
- Please refer vendor documentation for valid values |
| 632 |
type: str |
| 633 |
dual_as: |
| 634 |
description: Accept either real AS or local AS from the ebgp peer |
| 635 |
type: bool |
| 636 |
no_prepend: |
| 637 |
description: Do not prepend local-as to updates from ebgp peers |
| 638 |
type: dict |
| 639 |
suboptions: |
| 640 |
set: |
| 641 |
description: Set prepend |
| 642 |
type: bool |
| 643 |
replace_as: |
| 644 |
description: Replace real AS with local AS in the EBGP updates |
| 645 |
type: bool |
| 646 |
log_neighbor_changes: |
| 647 |
description: Log neighbor up/down and reset reason |
| 648 |
type: dict |
| 649 |
suboptions: |
| 650 |
set: |
| 651 |
description: set Log neighbor up/down and reset |
| 652 |
type: bool |
| 653 |
disable: |
| 654 |
description: disable Log neighbor up/down and reset |
| 655 |
type: bool |
| 656 |
maximum_prefix: |
| 657 |
description: Establish BGP filters |
| 658 |
type: dict |
| 659 |
suboptions: |
| 660 |
number: |
| 661 |
description: |
| 662 |
- maximum no. of prefix limit |
| 663 |
- Please refer vendor documentation for valid values |
| 664 |
type: int |
| 665 |
threshold_value: |
| 666 |
description: |
| 667 |
- Threshold value (%) at which to generate a warning msg |
| 668 |
- Please refer vendor documentation for valid values |
| 669 |
type: int |
| 670 |
restart: |
| 671 |
description: Restart bgp connection after limit is exceeded |
| 672 |
type: int |
| 673 |
warning_only: |
| 674 |
description: Only give warning message when limit is exceeded |
| 675 |
type: bool |
| 676 |
nexthop_self: |
| 677 |
description: Disable the next hop calculation for this neighbor |
| 678 |
type: dict |
| 679 |
suboptions: |
| 680 |
set: |
| 681 |
description: set the next hop self |
| 682 |
type: bool |
| 683 |
all: |
| 684 |
description: Enable next-hop-self for both eBGP and iBGP received paths |
| 685 |
type: bool |
| 686 |
next_hop_unchanged: |
| 687 |
description: |
| 688 |
- Propagate next hop unchanged for iBGP paths to this neighbor |
| 689 |
- Propagate next hop unchanged for all paths (iBGP and eBGP) to this neighbor |
| 690 |
type: dict |
| 691 |
suboptions: |
| 692 |
set: |
| 693 |
description: Enable next-hop-unchanged |
| 694 |
type: bool |
| 695 |
allpaths: |
| 696 |
description: Propagate next hop unchanged for all paths (iBGP and eBGP) to this neighbor |
| 697 |
type: bool |
| 698 |
password_options: |
| 699 |
description: Set a password with encryption type |
| 700 |
type: dict |
| 701 |
suboptions: |
| 702 |
encryption: |
| 703 |
description: Encryption type (0 to disable encryption, 7 for proprietary) |
| 704 |
type: int |
| 705 |
pass_key: |
| 706 |
description: The password |
| 707 |
type: str |
| 708 |
path_attribute: |
| 709 |
description: BGP optional attribute filtering |
| 710 |
type: dict |
| 711 |
suboptions: |
| 712 |
discard: |
| 713 |
description: Discard matching path-attribute for this neighbor |
| 714 |
type: dict |
| 715 |
suboptions: |
| 716 |
type: |
| 717 |
description: |
| 718 |
- path attribute type |
| 719 |
- Please refer vendor documentation for valid values |
| 720 |
type: int |
| 721 |
range: |
| 722 |
description: path attribute range |
| 723 |
type: dict |
| 724 |
suboptions: |
| 725 |
start: |
| 726 |
description: |
| 727 |
- path attribute range start value |
| 728 |
- Please refer vendor documentation for valid values |
| 729 |
type: int |
| 730 |
end: |
| 731 |
description: |
| 732 |
- path attribute range end value |
| 733 |
- Please refer vendor documentation for valid values |
| 734 |
type: int |
| 735 |
in: |
| 736 |
description: Perform inbound path-attribute filtering |
| 737 |
type: bool |
| 738 |
treat_as_withdraw: |
| 739 |
description: Treat-as-withdraw matching path-attribute for this neighbor |
| 740 |
type: dict |
| 741 |
suboptions: |
| 742 |
type: |
| 743 |
description: |
| 744 |
- path attribute type |
| 745 |
- Please refer vendor documentation for valid values |
| 746 |
type: int |
| 747 |
range: |
| 748 |
description: path attribute range |
| 749 |
type: dict |
| 750 |
suboptions: |
| 751 |
start: |
| 752 |
description: |
| 753 |
- path attribute range start value |
| 754 |
- Please refer vendor documentation for valid values |
| 755 |
type: int |
| 756 |
end: |
| 757 |
description: |
| 758 |
- path attribute range end value |
| 759 |
- Please refer vendor documentation for valid values |
| 760 |
type: int |
| 761 |
in: |
| 762 |
description: Perform inbound path-attribute filtering |
| 763 |
type: bool |
| 764 |
peer_group: |
| 765 |
description: Member of the peer-group |
| 766 |
type: bool |
| 767 |
peer_group_name: |
| 768 |
description: Member of the peer-group |
| 769 |
type: str |
| 770 |
prefix_list: |
| 771 |
description: |
| 772 |
- Filter updates to/from this neighbor |
| 773 |
- This option is DEPRECATED and is replaced with prefix_lists which |
| 774 |
accepts list of dict as input |
| 775 |
type: dict |
| 776 |
suboptions: |
| 777 |
name: |
| 778 |
description: Name of a prefix list |
| 779 |
type: str |
| 780 |
in: |
| 781 |
description: Filter incoming updates |
| 782 |
type: bool |
| 783 |
out: |
| 784 |
description: Filter outgoing updates |
| 785 |
type: bool |
| 786 |
prefix_lists: |
| 787 |
description: Filter updates to/from this neighbor |
| 788 |
type: list |
| 789 |
elements: dict |
| 790 |
suboptions: |
| 791 |
name: |
| 792 |
description: Name of a prefix list |
| 793 |
type: str |
| 794 |
in: |
| 795 |
description: Filter incoming updates |
| 796 |
type: bool |
| 797 |
out: |
| 798 |
description: Filter outgoing updates |
| 799 |
type: bool |
| 800 |
remote_as: |
| 801 |
description: |
| 802 |
- Specify a BGP neighbor |
| 803 |
- AS of remote neighbor |
| 804 |
type: str |
| 805 |
remove_private_as: |
| 806 |
description: Remove private AS number from outbound updates |
| 807 |
type: dict |
| 808 |
suboptions: |
| 809 |
set: |
| 810 |
description: Remove private AS number from outbound updates |
| 811 |
type: bool |
| 812 |
all: |
| 813 |
description: Remove all private AS numbers |
| 814 |
type: bool |
| 815 |
replace_as: |
| 816 |
description: Replace all private AS numbers with local AS |
| 817 |
type: bool |
| 818 |
route_map: |
| 819 |
description: |
| 820 |
- Apply route map to neighbor |
| 821 |
- This option is DEPRECATED and is replaced with route_maps which |
| 822 |
accepts list of dict as input |
| 823 |
type: dict |
| 824 |
suboptions: |
| 825 |
name: |
| 826 |
description: Name of route map |
| 827 |
type: str |
| 828 |
in: |
| 829 |
description: Apply map to incoming routes |
| 830 |
type: bool |
| 831 |
out: |
| 832 |
description: Apply map to outbound routes |
| 833 |
type: bool |
| 834 |
route_maps: |
| 835 |
description: Apply route map to neighbor |
| 836 |
type: list |
| 837 |
elements: dict |
| 838 |
suboptions: |
| 839 |
name: |
| 840 |
description: Name of route map |
| 841 |
type: str |
| 842 |
in: |
| 843 |
description: Apply map to incoming routes |
| 844 |
type: bool |
| 845 |
out: |
| 846 |
description: Apply map to outbound routes |
| 847 |
type: bool |
| 848 |
route_reflector_client: |
| 849 |
description: Configure a neighbor as Route Reflector client |
| 850 |
type: bool |
| 851 |
route_server_client: |
| 852 |
description: Configure a neighbor as Route Server client |
| 853 |
type: bool |
| 854 |
send_community: |
| 855 |
description: Send Community attribute to this neighbor |
| 856 |
type: dict |
| 857 |
suboptions: |
| 858 |
set: |
| 859 |
description: |
| 860 |
- Send Standard Community attribute. |
| 861 |
- Maintains backwards compatibility for configurations that do not specify a send-community type. |
| 862 |
type: bool |
| 863 |
both: |
| 864 |
description: Send Standard and Extended Community attributes |
| 865 |
type: bool |
| 866 |
extended: |
| 867 |
description: Send Extended Community attribute |
| 868 |
type: bool |
| 869 |
standard: |
| 870 |
description: Send Standard Community attribute |
| 871 |
type: bool |
| 872 |
shutdown: |
| 873 |
description: Administratively shut down this neighbor |
| 874 |
type: dict |
| 875 |
suboptions: |
| 876 |
set: |
| 877 |
description: shut down |
| 878 |
type: bool |
| 879 |
graceful: |
| 880 |
description: |
| 881 |
- Gracefully shut down this neighbor |
| 882 |
- time in seconds |
| 883 |
- Please refer vendor documentation for valid values |
| 884 |
type: int |
| 885 |
slow_peer: |
| 886 |
description: |
| 887 |
- Configure slow-peer |
| 888 |
- This option is DEPRECATED and replaced with slow_peer_options, |
| 889 |
this attribute will be removed after 2025-01-01. |
| 890 |
type: list |
| 891 |
elements: dict |
| 892 |
suboptions: |
| 893 |
detection: |
| 894 |
description: Configure slow-peer |
| 895 |
type: dict |
| 896 |
suboptions: |
| 897 |
enable: |
| 898 |
description: Enable slow-peer detection |
| 899 |
type: bool |
| 900 |
disable: |
| 901 |
description: Disable slow-peer detection |
| 902 |
type: bool |
| 903 |
threshold: |
| 904 |
description: Set the slow-peer detection threshold |
| 905 |
type: int |
| 906 |
split_update_group: |
| 907 |
description: Configure slow-peer |
| 908 |
type: dict |
| 909 |
suboptions: |
| 910 |
dynamic: |
| 911 |
description: Configure slow-peer |
| 912 |
type: dict |
| 913 |
suboptions: |
| 914 |
enable: |
| 915 |
description: Configure slow-peer |
| 916 |
type: bool |
| 917 |
disable: |
| 918 |
description: Configure slow-peer |
| 919 |
type: bool |
| 920 |
permanent: |
| 921 |
description: Configure slow-peer |
| 922 |
type: bool |
| 923 |
static: |
| 924 |
description: Configure slow-peer |
| 925 |
type: bool |
| 926 |
slow_peer_options: |
| 927 |
description: Configure slow-peer options |
| 928 |
type: dict |
| 929 |
suboptions: |
| 930 |
detection: |
| 931 |
description: Configure slow-peer |
| 932 |
type: dict |
| 933 |
suboptions: |
| 934 |
enable: |
| 935 |
description: Enable slow-peer detection |
| 936 |
type: bool |
| 937 |
disable: |
| 938 |
description: Disable slow-peer detection |
| 939 |
type: bool |
| 940 |
threshold: |
| 941 |
description: Set the slow-peer detection threshold |
| 942 |
type: int |
| 943 |
split_update_group: |
| 944 |
description: Configure slow-peer |
| 945 |
type: dict |
| 946 |
suboptions: |
| 947 |
dynamic: |
| 948 |
description: Configure slow-peer |
| 949 |
type: dict |
| 950 |
suboptions: |
| 951 |
enable: |
| 952 |
description: Configure slow-peer |
| 953 |
type: bool |
| 954 |
disable: |
| 955 |
description: Configure slow-peer |
| 956 |
type: bool |
| 957 |
permanent: |
| 958 |
description: Configure slow-peer |
| 959 |
type: bool |
| 960 |
static: |
| 961 |
description: Configure slow-peer |
| 962 |
type: bool |
| 963 |
soft_reconfiguration: |
| 964 |
description: |
| 965 |
- Per neighbor soft reconfiguration |
| 966 |
- Allow inbound soft reconfiguration for this neighbor |
| 967 |
type: bool |
| 968 |
soo: |
| 969 |
description: Site-of-Origin extended community |
| 970 |
type: str |
| 971 |
timers: |
| 972 |
description: BGP per neighbor timers |
| 973 |
type: dict |
| 974 |
suboptions: |
| 975 |
interval: |
| 976 |
description: Keepalive interval |
| 977 |
type: int |
| 978 |
holdtime: |
| 979 |
description: Holdtime |
| 980 |
type: int |
| 981 |
min_holdtime: |
| 982 |
description: Minimum hold time from neighbor |
| 983 |
type: int |
| 984 |
transport: |
| 985 |
description: Transport options |
| 986 |
type: dict |
| 987 |
suboptions: |
| 988 |
connection_mode: |
| 989 |
description: Specify passive or active connection |
| 990 |
type: dict |
| 991 |
suboptions: |
| 992 |
active: |
| 993 |
description: Actively establish the TCP session |
| 994 |
type: bool |
| 995 |
passive: |
| 996 |
description: Passively establish the TCP session |
| 997 |
type: bool |
| 998 |
multi_session: |
| 999 |
description: Use Multi-session for transport |
| 1000 |
type: bool |
| 1001 |
path_mtu_discovery: |
| 1002 |
description: Use transport path MTU discovery |
| 1003 |
type: dict |
| 1004 |
suboptions: |
| 1005 |
set: |
| 1006 |
description: Use path MTU discovery |
| 1007 |
type: bool |
| 1008 |
disable: |
| 1009 |
description: disable |
| 1010 |
type: bool |
| 1011 |
ttl_security: |
| 1012 |
description: |
| 1013 |
- BGP ttl security check |
| 1014 |
- maximum number of hops |
| 1015 |
- Please refer vendor documentation for valid values |
| 1016 |
type: int |
| 1017 |
unsuppress_map: |
| 1018 |
description: Route-map to selectively unsuppress suppressed routes |
| 1019 |
type: str |
| 1020 |
version: |
| 1021 |
description: |
| 1022 |
- Set the BGP version to match a neighbor |
| 1023 |
- Neighbor's BGP version |
| 1024 |
- Please refer vendor documentation for valid values |
| 1025 |
type: int |
| 1026 |
weight: |
| 1027 |
description: Set default weight for routes from this neighbor |
| 1028 |
type: int |
| 1029 |
networks: |
| 1030 |
description: Specify a network to announce via BGP |
| 1031 |
type: list |
| 1032 |
elements: dict |
| 1033 |
aliases: |
| 1034 |
- network |
| 1035 |
suboptions: |
| 1036 |
address: |
| 1037 |
description: Network number (A.B.C.D) |
| 1038 |
type: str |
| 1039 |
mask: |
| 1040 |
description: Network mask (A.B.C.D) |
| 1041 |
type: str |
| 1042 |
backdoor: |
| 1043 |
description: Specify a BGP backdoor route |
| 1044 |
type: bool |
| 1045 |
evpn: |
| 1046 |
description: Advertise or Export to EVPN address-family |
| 1047 |
type: bool |
| 1048 |
route_map: |
| 1049 |
description: Route-map to modify the attributes |
| 1050 |
type: str |
| 1051 |
redistribute: |
| 1052 |
description: |
| 1053 |
- Redistribute information from another routing protocol |
| 1054 |
type: list |
| 1055 |
elements: dict |
| 1056 |
suboptions: |
| 1057 |
application: |
| 1058 |
description: Application |
| 1059 |
type: dict |
| 1060 |
suboptions: |
| 1061 |
name: |
| 1062 |
description: Application name |
| 1063 |
type: str |
| 1064 |
metric: |
| 1065 |
description: Metric for redistributed routes |
| 1066 |
type: int |
| 1067 |
route_map: |
| 1068 |
description: Route map reference |
| 1069 |
type: str |
| 1070 |
bgp: |
| 1071 |
description: Border Gateway Protocol (BGP) |
| 1072 |
type: dict |
| 1073 |
suboptions: |
| 1074 |
as_number: |
| 1075 |
description: Autonomous system number |
| 1076 |
type: str |
| 1077 |
metric: |
| 1078 |
description: Metric for redistributed routes |
| 1079 |
type: int |
| 1080 |
route_map: |
| 1081 |
description: Route map reference |
| 1082 |
type: str |
| 1083 |
connected: |
| 1084 |
description: Connected |
| 1085 |
type: dict |
| 1086 |
suboptions: |
| 1087 |
set: |
| 1088 |
description: |
| 1089 |
- Redistribute automatically established IP connected routes. |
| 1090 |
- This only needs to be set if metric or route_map aren't used. |
| 1091 |
type: bool |
| 1092 |
metric: |
| 1093 |
description: Metric for redistributed routes |
| 1094 |
type: int |
| 1095 |
route_map: |
| 1096 |
description: Route map reference |
| 1097 |
type: str |
| 1098 |
eigrp: |
| 1099 |
description: Enhanced Interior Gateway Routing Protocol (EIGRP) |
| 1100 |
type: dict |
| 1101 |
suboptions: |
| 1102 |
as_number: |
| 1103 |
description: Autonomous system number |
| 1104 |
type: str |
| 1105 |
metric: |
| 1106 |
description: Metric for redistributed routes |
| 1107 |
type: int |
| 1108 |
route_map: |
| 1109 |
description: Route map reference |
| 1110 |
type: str |
| 1111 |
isis: |
| 1112 |
description: ISO IS-IS |
| 1113 |
type: dict |
| 1114 |
suboptions: |
| 1115 |
area_tag: |
| 1116 |
description: ISO routing area tag |
| 1117 |
type: str |
| 1118 |
clns: |
| 1119 |
description: Redistribution of OSI dynamic routes |
| 1120 |
type: bool |
| 1121 |
ip: |
| 1122 |
description: Redistribution of IP dynamic routes |
| 1123 |
type: bool |
| 1124 |
metric: |
| 1125 |
description: Metric for redistributed routes |
| 1126 |
type: int |
| 1127 |
route_map: |
| 1128 |
description: Route map reference |
| 1129 |
type: str |
| 1130 |
iso_igrp: |
| 1131 |
description: IGRP for OSI networks |
| 1132 |
type: dict |
| 1133 |
suboptions: |
| 1134 |
area_tag: |
| 1135 |
description: ISO routing area tag |
| 1136 |
type: str |
| 1137 |
route_map: |
| 1138 |
description: Route map reference |
| 1139 |
type: str |
| 1140 |
lisp: |
| 1141 |
description: Locator ID Separation Protocol (LISP) |
| 1142 |
type: dict |
| 1143 |
suboptions: |
| 1144 |
set: |
| 1145 |
description: Set the top level attribute |
| 1146 |
type: bool |
| 1147 |
metric: |
| 1148 |
description: Metric for redistributed routes |
| 1149 |
type: int |
| 1150 |
route_map: |
| 1151 |
description: Route map reference |
| 1152 |
type: str |
| 1153 |
mobile: |
| 1154 |
description: Mobile routes |
| 1155 |
type: dict |
| 1156 |
suboptions: |
| 1157 |
set: |
| 1158 |
description: Set the top level attribute |
| 1159 |
type: bool |
| 1160 |
metric: |
| 1161 |
description: Metric for redistributed routes |
| 1162 |
type: int |
| 1163 |
route_map: |
| 1164 |
description: Route map reference |
| 1165 |
type: str |
| 1166 |
odr: |
| 1167 |
description: On Demand stub Routes |
| 1168 |
type: dict |
| 1169 |
suboptions: |
| 1170 |
set: |
| 1171 |
description: Set the top level attribute |
| 1172 |
type: bool |
| 1173 |
metric: |
| 1174 |
description: Metric for redistributed routes |
| 1175 |
type: int |
| 1176 |
route_map: |
| 1177 |
description: Route map reference |
| 1178 |
type: str |
| 1179 |
ospf: |
| 1180 |
description: Open Shortest Path First (OSPF) |
| 1181 |
type: dict |
| 1182 |
suboptions: |
| 1183 |
process_id: |
| 1184 |
description: Process ID |
| 1185 |
type: int |
| 1186 |
include_connected: |
| 1187 |
description: Include connected. Only applicable under IPv6 AFI |
| 1188 |
type: bool |
| 1189 |
match: |
| 1190 |
description: Redistribute matched routes |
| 1191 |
type: dict |
| 1192 |
suboptions: |
| 1193 |
external: |
| 1194 |
description: |
| 1195 |
- Redistribute OSPF external routes |
| 1196 |
- This option is DEPRECATED and replaced with externals option, |
| 1197 |
this attribute will be removed after 2025-01-01. |
| 1198 |
type: bool |
| 1199 |
externals: |
| 1200 |
description: Redistribute OSPF external routes |
| 1201 |
type: dict |
| 1202 |
suboptions: |
| 1203 |
type_1: |
| 1204 |
description: Redistribute OSPF External type 1 routes |
| 1205 |
type: bool |
| 1206 |
type_2: |
| 1207 |
description: Redistribute OSPF External type 1 routes |
| 1208 |
type: bool |
| 1209 |
internal: |
| 1210 |
description: Redistribute OSPF internal routes |
| 1211 |
type: bool |
| 1212 |
nssa_external: |
| 1213 |
description: |
| 1214 |
- Redistribute OSPF NSSA external routes |
| 1215 |
- This option is DEPRECATED and replaced with nssa_externals option, |
| 1216 |
this attribute will be removed after 2025-01-01. |
| 1217 |
type: bool |
| 1218 |
type_1: |
| 1219 |
description: |
| 1220 |
- Redistribute NSSA external type 1 routes |
| 1221 |
- This option is DEPRECATED and replaced with nssa_externals.type_1 option, |
| 1222 |
this attribute will be removed after 2025-01-01. |
| 1223 |
type: bool |
| 1224 |
type_2: |
| 1225 |
description: |
| 1226 |
- Redistribute NSSA external type 2 routes |
| 1227 |
- This option is DEPRECATED and replaced with nssa_externals.type_2 option, |
| 1228 |
this attribute will be removed after 2025-01-01. |
| 1229 |
type: bool |
| 1230 |
nssa_externals: |
| 1231 |
description: Redistribute OSPF NSSA external routes |
| 1232 |
type: dict |
| 1233 |
suboptions: |
| 1234 |
type_1: |
| 1235 |
description: Redistribute NSSA external type 1 routes |
| 1236 |
type: bool |
| 1237 |
type_2: |
| 1238 |
description: Redistribute NSSA external type 2 routes |
| 1239 |
type: bool |
| 1240 |
metric: |
| 1241 |
description: Metric for redistributed routes |
| 1242 |
type: int |
| 1243 |
route_map: |
| 1244 |
description: Route map reference |
| 1245 |
type: str |
| 1246 |
vrf: |
| 1247 |
description: VPN Routing/Forwarding Instance |
| 1248 |
type: str |
| 1249 |
ospfv3: |
| 1250 |
description: OSPFv3 |
| 1251 |
type: dict |
| 1252 |
suboptions: |
| 1253 |
process_id: |
| 1254 |
description: Process ID |
| 1255 |
type: int |
| 1256 |
match: |
| 1257 |
description: Redistribute matched routes |
| 1258 |
type: dict |
| 1259 |
suboptions: |
| 1260 |
external: |
| 1261 |
description: |
| 1262 |
- Redistribute OSPF external routes |
| 1263 |
- This option is DEPRECATED and replaced with externals, |
| 1264 |
this attribute will be removed after 2025-01-01. |
| 1265 |
type: bool |
| 1266 |
externals: |
| 1267 |
description: Redistribute OSPF external routes |
| 1268 |
type: dict |
| 1269 |
suboptions: |
| 1270 |
type_1: |
| 1271 |
description: Redistribute OSPF External type 1 routes |
| 1272 |
type: bool |
| 1273 |
type_2: |
| 1274 |
description: Redistribute OSPF External type 1 routes |
| 1275 |
type: bool |
| 1276 |
internal: |
| 1277 |
description: Redistribute OSPF internal routes |
| 1278 |
type: bool |
| 1279 |
nssa_external: |
| 1280 |
description: |
| 1281 |
- Redistribute OSPF internal routes |
| 1282 |
- This option is DEPRECATED and replaced with nssa_externals, |
| 1283 |
this attribute will be removed after 2025-01-01. |
| 1284 |
type: bool |
| 1285 |
type_1: |
| 1286 |
description: |
| 1287 |
- Redistribute NSSA external type 1 routes |
| 1288 |
- This option is DEPRECATED and replaced with nssa_externals.type_1 option, |
| 1289 |
this attribute will be removed after 2025-01-01. |
| 1290 |
type: bool |
| 1291 |
type_2: |
| 1292 |
description: |
| 1293 |
- Redistribute NSSA external type 2 routes |
| 1294 |
- This option is DEPRECATED and replaced with nssa_externals.type_2 option, |
| 1295 |
this attribute will be removed after 2025-01-01. |
| 1296 |
type: bool |
| 1297 |
nssa_externals: |
| 1298 |
description: Redistribute OSPF NSSA external routes |
| 1299 |
type: dict |
| 1300 |
suboptions: |
| 1301 |
type_1: |
| 1302 |
description: Redistribute NSSA external type 1 routes |
| 1303 |
type: bool |
| 1304 |
type_2: |
| 1305 |
description: Redistribute NSSA external type 2 routes |
| 1306 |
type: bool |
| 1307 |
metric: |
| 1308 |
description: Metric for redistributed routes |
| 1309 |
type: int |
| 1310 |
route_map: |
| 1311 |
description: Route map reference |
| 1312 |
type: str |
| 1313 |
rip: |
| 1314 |
description: Routing Information Protocol (RIP) |
| 1315 |
type: dict |
| 1316 |
suboptions: |
| 1317 |
set: |
| 1318 |
description: Set the top level attribute |
| 1319 |
type: bool |
| 1320 |
metric: |
| 1321 |
description: Metric for redistributed routes |
| 1322 |
type: int |
| 1323 |
route_map: |
| 1324 |
description: Route map reference |
| 1325 |
type: str |
| 1326 |
static: |
| 1327 |
description: Static routes |
| 1328 |
type: dict |
| 1329 |
suboptions: |
| 1330 |
set: |
| 1331 |
description: Set the top level attribute |
| 1332 |
type: bool |
| 1333 |
clns: |
| 1334 |
description: Redistribution of OSI static routes |
| 1335 |
type: bool |
| 1336 |
ip: |
| 1337 |
description: Redistribution of IP static routes |
| 1338 |
type: bool |
| 1339 |
metric: |
| 1340 |
description: Metric for redistributed routes |
| 1341 |
type: int |
| 1342 |
route_map: |
| 1343 |
description: Route map reference |
| 1344 |
type: str |
| 1345 |
vrf: |
| 1346 |
description: Specify a source VRF |
| 1347 |
type: dict |
| 1348 |
suboptions: |
| 1349 |
name: |
| 1350 |
description: Source VRF name |
| 1351 |
type: str |
| 1352 |
global: |
| 1353 |
description: global VRF |
| 1354 |
type: bool |
| 1355 |
snmp: |
| 1356 |
description: Modify snmp parameters |
| 1357 |
type: dict |
| 1358 |
suboptions: |
| 1359 |
context: |
| 1360 |
description: |
| 1361 |
- Configure a SNMP context |
| 1362 |
- Context Name |
| 1363 |
type: dict |
| 1364 |
suboptions: |
| 1365 |
name: |
| 1366 |
description: Context Name |
| 1367 |
type: str |
| 1368 |
community: |
| 1369 |
description: Configure a SNMP v2c Community string and access privs |
| 1370 |
type: dict |
| 1371 |
suboptions: |
| 1372 |
snmp_community: |
| 1373 |
description: SNMP community string |
| 1374 |
type: str |
| 1375 |
acl: |
| 1376 |
description: |
| 1377 |
- Standard IP accesslist allowing access with this community string |
| 1378 |
- Expanded IP accesslist allowing access with this community string |
| 1379 |
- Access-list name |
| 1380 |
type: str |
| 1381 |
ipv6: |
| 1382 |
description: |
| 1383 |
- Specify IPv6 Named Access-List |
| 1384 |
- IPv6 Access-list name |
| 1385 |
type: str |
| 1386 |
ro: |
| 1387 |
description: Read-only access with this community string |
| 1388 |
type: bool |
| 1389 |
rw: |
| 1390 |
description: Read-write access with this community string |
| 1391 |
type: bool |
| 1392 |
user: |
| 1393 |
description: Configure a SNMP v3 user |
| 1394 |
type: dict |
| 1395 |
suboptions: |
| 1396 |
name: |
| 1397 |
description: SNMP community string |
| 1398 |
type: str |
| 1399 |
access: |
| 1400 |
description: specify an access-list associated with this group |
| 1401 |
type: dict |
| 1402 |
suboptions: |
| 1403 |
acl: |
| 1404 |
description: SNMP community string |
| 1405 |
type: str |
| 1406 |
ipv6: |
| 1407 |
description: |
| 1408 |
- Specify IPv6 Named Access-List |
| 1409 |
- IPv6 Access-list name |
| 1410 |
type: str |
| 1411 |
auth: |
| 1412 |
description: authentication parameters for the user |
| 1413 |
type: dict |
| 1414 |
suboptions: |
| 1415 |
md5: |
| 1416 |
description: |
| 1417 |
- Use HMAC MD5 algorithm for authentication |
| 1418 |
- authentication password for user |
| 1419 |
type: str |
| 1420 |
sha: |
| 1421 |
description: |
| 1422 |
- Use HMAC SHA algorithm for authentication |
| 1423 |
- authentication password for user |
| 1424 |
type: str |
| 1425 |
priv: |
| 1426 |
description: encryption parameters for the user |
| 1427 |
type: dict |
| 1428 |
suboptions: |
| 1429 |
des: |
| 1430 |
description: Use 56 bit DES algorithm for encryption |
| 1431 |
type: str |
| 1432 |
des56: |
| 1433 |
description: Use 56 bit DES algorithm for encryption |
| 1434 |
type: str |
| 1435 |
aes128: |
| 1436 |
description: Use 128 bit AES algorithm for encryption |
| 1437 |
type: str |
| 1438 |
aes192: |
| 1439 |
description: Use 192 bit 3DES algorithm for encryption |
| 1440 |
type: str |
| 1441 |
aes256: |
| 1442 |
description: Use 256 bit DES algorithm for encryption |
| 1443 |
type: str |
| 1444 |
credential: |
| 1445 |
description: If the user password is already configured and saved |
| 1446 |
type: bool |
| 1447 |
encrypted: |
| 1448 |
description: specifying passwords as MD5 or SHA digests |
| 1449 |
type: bool |
| 1450 |
table_map: |
| 1451 |
description: Map external entry attributes into routing table |
| 1452 |
type: dict |
| 1453 |
suboptions: |
| 1454 |
name: |
| 1455 |
description: route-map name |
| 1456 |
type: str |
| 1457 |
filter: |
| 1458 |
description: Selective route download |
| 1459 |
type: bool |
| 1460 |
running_config: |
| 1461 |
description: |
| 1462 |
- This option is used only with state I(parsed). |
| 1463 |
- The value of this option should be the output received from the IOS |
| 1464 |
device by executing the command B(sh running-config | section ^router bgp). |
| 1465 |
- The state I(parsed) reads the configuration from C(running_config) |
| 1466 |
option and transforms it into Ansible structured data as per the |
| 1467 |
resource module's argspec and the value is then returned in the |
| 1468 |
I(parsed) key within the result. |
| 1469 |
type: str |
| 1470 |
state: |
| 1471 |
choices: |
| 1472 |
- merged |
| 1473 |
- replaced |
| 1474 |
- overridden |
| 1475 |
- deleted |
| 1476 |
- gathered |
| 1477 |
- rendered |
| 1478 |
- parsed |
| 1479 |
default: merged |
| 1480 |
description: |
| 1481 |
- The state the configuration should be left in |
| 1482 |
- The states I(rendered), I(gathered) and I(parsed) does not perform any change |
| 1483 |
on the device. |
| 1484 |
- The state I(rendered) will transform the configuration in C(config) option to |
| 1485 |
platform specific CLI commands which will be returned in the I(rendered) key |
| 1486 |
within the result. For state I(rendered) active connection to remote host is |
| 1487 |
not required. |
| 1488 |
- The state I(gathered) will fetch the running configuration from device and transform |
| 1489 |
it into structured data in the format as per the resource module argspec and |
| 1490 |
the value is returned in the I(gathered) key within the result. |
| 1491 |
- The state I(parsed) reads the configuration from C(running_config) option and |
| 1492 |
transforms it into JSON format as per the resource module parameters and the |
| 1493 |
value is returned in the I(parsed) key within the result. The value of C(running_config) |
| 1494 |
option should be the same format as the output of command I(show running-config |
| 1495 |
| include ip route|ipv6 route) executed on device. For state I(parsed) active |
| 1496 |
connection to remote host is not required. |
| 1497 |
type: str |
| 1498 |
""" |
| 1499 |
|
| 1500 |
EXAMPLES = """ |
| 1501 |
# Using merged |
| 1502 |
|
| 1503 |
# Before state: |
| 1504 |
# ------------- |
| 1505 |
# |
| 1506 |
# vios#sh running-config | section ^router bgp |
| 1507 |
# router bgp 65000 |
| 1508 |
# bgp log-neighbor-changes |
| 1509 |
# bgp nopeerup-delay cold-boot 20 |
| 1510 |
|
| 1511 |
- name: Merge provided configuration with device configuration |
| 1512 |
cisco.ios.ios_bgp_address_family: |
| 1513 |
config: |
| 1514 |
as_number: 65000 |
| 1515 |
address_family: |
| 1516 |
- afi: ipv4 |
| 1517 |
safi: multicast |
| 1518 |
vrf: blue |
| 1519 |
aggregate_address: |
| 1520 |
- address: 192.0.2.1 |
| 1521 |
netmask: 255.255.255.255 |
| 1522 |
as_confed_set: true |
| 1523 |
bgp: |
| 1524 |
aggregate_timer: 10 |
| 1525 |
dampening: |
| 1526 |
penalty_half_time: 1 |
| 1527 |
reuse_route_val: 1 |
| 1528 |
suppress_route_val: 1 |
| 1529 |
max_suppress: 1 |
| 1530 |
slow_peer: |
| 1531 |
- detection: |
| 1532 |
threshold: 150 |
| 1533 |
neighbor: |
| 1534 |
- address: 198.51.100.1 |
| 1535 |
aigp: |
| 1536 |
send: |
| 1537 |
cost_community: |
| 1538 |
id: 100 |
| 1539 |
poi: |
| 1540 |
igp_cost: true |
| 1541 |
transitive: true |
| 1542 |
slow_peer: |
| 1543 |
- detection: |
| 1544 |
threshold: 150 |
| 1545 |
remote_as: 10 |
| 1546 |
route_map: |
| 1547 |
- name: test-route-out |
| 1548 |
out: true |
| 1549 |
- name: test-route-in |
| 1550 |
in: true |
| 1551 |
route_server_client: true |
| 1552 |
network: |
| 1553 |
- address: 198.51.110.10 |
| 1554 |
mask: 255.255.255.255 |
| 1555 |
backdoor: true |
| 1556 |
snmp: |
| 1557 |
context: |
| 1558 |
name: snmp_con |
| 1559 |
community: |
| 1560 |
snmp_community: community |
| 1561 |
ro: true |
| 1562 |
acl: 10 |
| 1563 |
- afi: ipv4 |
| 1564 |
safi: mdt |
| 1565 |
bgp: |
| 1566 |
dmzlink_bw: true |
| 1567 |
dampening: |
| 1568 |
penalty_half_time: 1 |
| 1569 |
reuse_route_val: 10 |
| 1570 |
suppress_route_val: 100 |
| 1571 |
max_suppress: 5 |
| 1572 |
soft_reconfig_backup: true |
| 1573 |
- afi: ipv4 |
| 1574 |
safi: multicast |
| 1575 |
aggregate_address: |
| 1576 |
- address: 192.0.3.1 |
| 1577 |
netmask: 255.255.255.255 |
| 1578 |
as_confed_set: true |
| 1579 |
default_metric: 12 |
| 1580 |
distance: |
| 1581 |
external: 10 |
| 1582 |
internal: 10 |
| 1583 |
local: 100 |
| 1584 |
network: |
| 1585 |
- address: 198.51.111.11 |
| 1586 |
mask: 255.255.255.255 |
| 1587 |
route_map: test |
| 1588 |
table_map: |
| 1589 |
name: test_tableMap |
| 1590 |
filter: true |
| 1591 |
state: merged |
| 1592 |
|
| 1593 |
# Task Output: |
| 1594 |
# ------------ |
| 1595 |
# |
| 1596 |
# before: {} |
| 1597 |
# commands: |
| 1598 |
# - router bgp 65000 |
| 1599 |
# - address-family ipv4 multicast vrf blue |
| 1600 |
# - bgp aggregate-timer 10 |
| 1601 |
# - bgp dampening 1 1 1 1 |
| 1602 |
# - bgp slow-peer detection threshold 150 |
| 1603 |
# - snmp context snmp_con community community ro 10 |
| 1604 |
# - neighbor 198.51.100.1 remote-as 10 |
| 1605 |
# - neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 1606 |
# - neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 1607 |
# - network 198.51.110.10 mask 255.255.255.255 backdoor |
| 1608 |
# - aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 1609 |
# - address-family ipv4 multicast |
| 1610 |
# - default-metric 12 |
| 1611 |
# - distance bgp 10 10 100 |
| 1612 |
# - table-map test_tableMap filter |
| 1613 |
# - network 198.51.111.11 mask 255.255.255.255 route-map test |
| 1614 |
# - aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 1615 |
# - address-family ipv4 mdt |
| 1616 |
# - bgp dmzlink-bw |
| 1617 |
# - bgp soft-reconfig-backup |
| 1618 |
# - bgp dampening 1 10 100 5 |
| 1619 |
# after: |
| 1620 |
# address_family: |
| 1621 |
# - afi: ipv4 |
| 1622 |
# aggregate_addresses: |
| 1623 |
# - address: 192.0.2.1 |
| 1624 |
# as_confed_set: true |
| 1625 |
# netmask: 255.255.255.255 |
| 1626 |
# bgp: |
| 1627 |
# aggregate_timer: 10 |
| 1628 |
# dampening: |
| 1629 |
# max_suppress: 1 |
| 1630 |
# penalty_half_time: 1 |
| 1631 |
# reuse_route_val: 1 |
| 1632 |
# suppress_route_val: 1 |
| 1633 |
# slow_peer_options: |
| 1634 |
# detection: |
| 1635 |
# threshold: 150 |
| 1636 |
# neighbors: |
| 1637 |
# - activate: true |
| 1638 |
# aigp: |
| 1639 |
# send: |
| 1640 |
# cost_community: |
| 1641 |
# id: 100 |
| 1642 |
# poi: |
| 1643 |
# igp_cost: true |
| 1644 |
# transitive: true |
| 1645 |
# neighbor_address: 198.51.100.1 |
| 1646 |
# slow_peer_options: |
| 1647 |
# detection: |
| 1648 |
# threshold: 150 |
| 1649 |
# networks: |
| 1650 |
# - address: 198.51.110.10 |
| 1651 |
# backdoor: true |
| 1652 |
# mask: 255.255.255.255 |
| 1653 |
# snmp: |
| 1654 |
# context: |
| 1655 |
# community: |
| 1656 |
# acl: '10' |
| 1657 |
# ro: true |
| 1658 |
# snmp_community: community |
| 1659 |
# name: snmp_con |
| 1660 |
# - afi: ipv4 |
| 1661 |
# aggregate_addresses: |
| 1662 |
# - address: 192.0.3.1 |
| 1663 |
# as_confed_set: true |
| 1664 |
# netmask: 255.255.255.255 |
| 1665 |
# default_metric: 12 |
| 1666 |
# distance: |
| 1667 |
# external: 10 |
| 1668 |
# internal: 10 |
| 1669 |
# local: 100 |
| 1670 |
# networks: |
| 1671 |
# - address: 198.51.111.11 |
| 1672 |
# mask: 255.255.255.255 |
| 1673 |
# route_map: test |
| 1674 |
# safi: multicast |
| 1675 |
# table_map: |
| 1676 |
# filter: true |
| 1677 |
# name: test_tableMap |
| 1678 |
# - afi: ipv4 |
| 1679 |
# bgp: |
| 1680 |
# dampening: |
| 1681 |
# max_suppress: 5 |
| 1682 |
# penalty_half_time: 1 |
| 1683 |
# reuse_route_val: 10 |
| 1684 |
# suppress_route_val: 100 |
| 1685 |
# dmzlink_bw: true |
| 1686 |
# soft_reconfig_backup: true |
| 1687 |
# safi: mdt |
| 1688 |
# as_number: '65000' |
| 1689 |
|
| 1690 |
# After state: |
| 1691 |
# ------------ |
| 1692 |
# |
| 1693 |
# vios#sh running-config | section ^router bgp |
| 1694 |
# router bgp 65000 |
| 1695 |
# bgp log-neighbor-changes |
| 1696 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 1697 |
# snmp context snmp_con community community RO 10 |
| 1698 |
# neighbor 198.51.100.1 remote-as 10 |
| 1699 |
# ! |
| 1700 |
# address-family ipv4 |
| 1701 |
# snmp context snmp_con community community RO 10 |
| 1702 |
# bgp aggregate-timer 10 |
| 1703 |
# bgp slow-peer detection threshold 150 |
| 1704 |
# bgp dampening 1 1 1 1 |
| 1705 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 1706 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 1707 |
# neighbor 198.51.100.1 activate |
| 1708 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 1709 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 1710 |
# exit-address-family |
| 1711 |
# ! |
| 1712 |
# address-family ipv4 multicast |
| 1713 |
# table-map test_tableMap filter |
| 1714 |
# network 198.51.111.11 mask 255.255.255.255 route-map test |
| 1715 |
# aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 1716 |
# default-metric 12 |
| 1717 |
# distance bgp 10 10 100 |
| 1718 |
# exit-address-family |
| 1719 |
# ! |
| 1720 |
# address-family ipv4 mdt |
| 1721 |
# bgp dampening 1 10 100 5 |
| 1722 |
# bgp dmzlink-bw |
| 1723 |
# bgp soft-reconfig-backup |
| 1724 |
# exit-address-family |
| 1725 |
|
| 1726 |
# Using replaced |
| 1727 |
|
| 1728 |
# Before state: |
| 1729 |
# ------------- |
| 1730 |
# |
| 1731 |
# vios#sh running-config | section ^router bgp |
| 1732 |
# router bgp 65000 |
| 1733 |
# bgp log-neighbor-changes |
| 1734 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 1735 |
# snmp context snmp_con community community RO 10 |
| 1736 |
# neighbor 198.51.100.1 remote-as 10 |
| 1737 |
# ! |
| 1738 |
# address-family ipv4 |
| 1739 |
# snmp context snmp_con community community RO 10 |
| 1740 |
# bgp aggregate-timer 10 |
| 1741 |
# bgp slow-peer detection threshold 150 |
| 1742 |
# bgp dampening 1 1 1 1 |
| 1743 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 1744 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 1745 |
# neighbor 198.51.100.1 activate |
| 1746 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 1747 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 1748 |
# exit-address-family |
| 1749 |
# ! |
| 1750 |
# address-family ipv4 multicast |
| 1751 |
# table-map test_tableMap filter |
| 1752 |
# network 198.51.111.11 mask 255.255.255.255 route-map test |
| 1753 |
# aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 1754 |
# default-metric 12 |
| 1755 |
# distance bgp 10 10 100 |
| 1756 |
# exit-address-family |
| 1757 |
# ! |
| 1758 |
# address-family ipv4 mdt |
| 1759 |
# bgp dampening 1 10 100 5 |
| 1760 |
# bgp dmzlink-bw |
| 1761 |
# bgp soft-reconfig-backup |
| 1762 |
# exit-address-family |
| 1763 |
|
| 1764 |
- name: Replaces device configuration of listed AF BGP with provided configuration |
| 1765 |
cisco.ios.ios_bgp_address_family: |
| 1766 |
config: |
| 1767 |
as_number: 65000 |
| 1768 |
address_family: |
| 1769 |
- afi: ipv4 |
| 1770 |
safi: multicast |
| 1771 |
vrf: blue |
| 1772 |
aggregate_address: |
| 1773 |
- address: 192.0.2.1 |
| 1774 |
netmask: 255.255.255.255 |
| 1775 |
as_confed_set: true |
| 1776 |
bgp: |
| 1777 |
aggregate_timer: 10 |
| 1778 |
dampening: |
| 1779 |
penalty_half_time: 1 |
| 1780 |
reuse_route_val: 1 |
| 1781 |
suppress_route_val: 1 |
| 1782 |
max_suppress: 1 |
| 1783 |
slow_peer: |
| 1784 |
- detection: |
| 1785 |
threshold: 150 |
| 1786 |
neighbor: |
| 1787 |
- address: 198.51.110.1 |
| 1788 |
activate: true |
| 1789 |
aigp: |
| 1790 |
send: |
| 1791 |
cost_community: |
| 1792 |
id: 200 |
| 1793 |
poi: |
| 1794 |
igp_cost: true |
| 1795 |
transitive: true |
| 1796 |
slow_peer: |
| 1797 |
- detection: |
| 1798 |
threshold: 150 |
| 1799 |
remote_as: 10 |
| 1800 |
network: |
| 1801 |
- address: 198.51.110.10 |
| 1802 |
mask: 255.255.255.255 |
| 1803 |
backdoor: true |
| 1804 |
- afi: ipv4 |
| 1805 |
safi: multicast |
| 1806 |
bgp: |
| 1807 |
aggregate_timer: 10 |
| 1808 |
dampening: |
| 1809 |
penalty_half_time: 10 |
| 1810 |
reuse_route_val: 10 |
| 1811 |
suppress_route_val: 10 |
| 1812 |
max_suppress: 10 |
| 1813 |
slow_peer: |
| 1814 |
- detection: |
| 1815 |
threshold: 200 |
| 1816 |
network: |
| 1817 |
- address: 192.0.2.1 |
| 1818 |
mask: 255.255.255.255 |
| 1819 |
route_map: test |
| 1820 |
state: replaced |
| 1821 |
|
| 1822 |
# Task Output: |
| 1823 |
# ------------ |
| 1824 |
# before: |
| 1825 |
# address_family: |
| 1826 |
# - afi: ipv4 |
| 1827 |
# aggregate_addresses: |
| 1828 |
# - address: 192.0.2.1 |
| 1829 |
# as_confed_set: true |
| 1830 |
# netmask: 255.255.255.255 |
| 1831 |
# bgp: |
| 1832 |
# aggregate_timer: 10 |
| 1833 |
# dampening: |
| 1834 |
# max_suppress: 1 |
| 1835 |
# penalty_half_time: 1 |
| 1836 |
# reuse_route_val: 1 |
| 1837 |
# suppress_route_val: 1 |
| 1838 |
# slow_peer_options: |
| 1839 |
# detection: |
| 1840 |
# threshold: 150 |
| 1841 |
# neighbors: |
| 1842 |
# - activate: true |
| 1843 |
# aigp: |
| 1844 |
# send: |
| 1845 |
# cost_community: |
| 1846 |
# id: 100 |
| 1847 |
# poi: |
| 1848 |
# igp_cost: true |
| 1849 |
# transitive: true |
| 1850 |
# neighbor_address: 198.51.100.1 |
| 1851 |
# slow_peer_options: |
| 1852 |
# detection: |
| 1853 |
# threshold: 150 |
| 1854 |
# networks: |
| 1855 |
# - address: 198.51.110.10 |
| 1856 |
# backdoor: true |
| 1857 |
# mask: 255.255.255.255 |
| 1858 |
# snmp: |
| 1859 |
# context: |
| 1860 |
# community: |
| 1861 |
# acl: '10' |
| 1862 |
# ro: true |
| 1863 |
# snmp_community: community |
| 1864 |
# name: snmp_con |
| 1865 |
# - afi: ipv4 |
| 1866 |
# aggregate_addresses: |
| 1867 |
# - address: 192.0.3.1 |
| 1868 |
# as_confed_set: true |
| 1869 |
# netmask: 255.255.255.255 |
| 1870 |
# default_metric: 12 |
| 1871 |
# distance: |
| 1872 |
# external: 10 |
| 1873 |
# internal: 10 |
| 1874 |
# local: 100 |
| 1875 |
# networks: |
| 1876 |
# - address: 198.51.111.11 |
| 1877 |
# mask: 255.255.255.255 |
| 1878 |
# route_map: test |
| 1879 |
# safi: multicast |
| 1880 |
# table_map: |
| 1881 |
# filter: true |
| 1882 |
# name: test_tableMap |
| 1883 |
# - afi: ipv4 |
| 1884 |
# bgp: |
| 1885 |
# dampening: |
| 1886 |
# max_suppress: 5 |
| 1887 |
# penalty_half_time: 1 |
| 1888 |
# reuse_route_val: 10 |
| 1889 |
# suppress_route_val: 100 |
| 1890 |
# dmzlink_bw: true |
| 1891 |
# soft_reconfig_backup: true |
| 1892 |
# safi: mdt |
| 1893 |
# as_number: '65000' |
| 1894 |
# commands: |
| 1895 |
# - router bgp 65000 |
| 1896 |
# - address-family ipv4 multicast vrf blue |
| 1897 |
# - bgp aggregate-timer 10 |
| 1898 |
# - bgp dampening 1 1 1 1 |
| 1899 |
# - bgp slow-peer detection threshold 150 |
| 1900 |
# - neighbor 198.51.110.1 remote-as 10 |
| 1901 |
# - neighbor 198.51.110.1 activate |
| 1902 |
# - neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 1903 |
# - neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 1904 |
# - network 198.51.110.10 mask 255.255.255.255 backdoor |
| 1905 |
# - aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 1906 |
# - address-family ipv4 multicast |
| 1907 |
# - no default-metric 12 |
| 1908 |
# - no distance bgp 10 10 100 |
| 1909 |
# - no table-map test_tableMap filter |
| 1910 |
# - bgp aggregate-timer 10 |
| 1911 |
# - bgp dampening 10 10 10 10 |
| 1912 |
# - bgp slow-peer detection threshold 200 |
| 1913 |
# - network 192.0.2.1 mask 255.255.255.255 route-map test |
| 1914 |
# - no network 198.51.111.11 mask 255.255.255.255 route-map test |
| 1915 |
# - no aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 1916 |
# after: |
| 1917 |
# address_family: |
| 1918 |
# - afi: ipv4 |
| 1919 |
# aggregate_addresses: |
| 1920 |
# - address: 192.0.2.1 |
| 1921 |
# as_confed_set: true |
| 1922 |
# netmask: 255.255.255.255 |
| 1923 |
# bgp: |
| 1924 |
# aggregate_timer: 10 |
| 1925 |
# dampening: |
| 1926 |
# max_suppress: 1 |
| 1927 |
# penalty_half_time: 1 |
| 1928 |
# reuse_route_val: 1 |
| 1929 |
# suppress_route_val: 1 |
| 1930 |
# slow_peer_options: |
| 1931 |
# detection: |
| 1932 |
# threshold: 150 |
| 1933 |
# neighbors: |
| 1934 |
# - activate: true |
| 1935 |
# aigp: |
| 1936 |
# send: |
| 1937 |
# cost_community: |
| 1938 |
# id: 100 |
| 1939 |
# poi: |
| 1940 |
# igp_cost: true |
| 1941 |
# transitive: true |
| 1942 |
# neighbor_address: 198.51.100.1 |
| 1943 |
# slow_peer_options: |
| 1944 |
# detection: |
| 1945 |
# threshold: 150 |
| 1946 |
# - activate: true |
| 1947 |
# aigp: |
| 1948 |
# send: |
| 1949 |
# cost_community: |
| 1950 |
# id: 200 |
| 1951 |
# poi: |
| 1952 |
# igp_cost: true |
| 1953 |
# transitive: true |
| 1954 |
# neighbor_address: 198.51.110.1 |
| 1955 |
# slow_peer_options: |
| 1956 |
# detection: |
| 1957 |
# threshold: 150 |
| 1958 |
# networks: |
| 1959 |
# - address: 198.51.110.10 |
| 1960 |
# backdoor: true |
| 1961 |
# mask: 255.255.255.255 |
| 1962 |
# snmp: |
| 1963 |
# context: |
| 1964 |
# community: |
| 1965 |
# acl: '10' |
| 1966 |
# ro: true |
| 1967 |
# snmp_community: community |
| 1968 |
# name: snmp_con |
| 1969 |
# - afi: ipv4 |
| 1970 |
# bgp: |
| 1971 |
# aggregate_timer: 10 |
| 1972 |
# dampening: |
| 1973 |
# max_suppress: 10 |
| 1974 |
# penalty_half_time: 10 |
| 1975 |
# reuse_route_val: 10 |
| 1976 |
# suppress_route_val: 10 |
| 1977 |
# slow_peer_options: |
| 1978 |
# detection: |
| 1979 |
# threshold: 200 |
| 1980 |
# networks: |
| 1981 |
# - address: 192.0.2.1 |
| 1982 |
# mask: 255.255.255.255 |
| 1983 |
# route_map: test |
| 1984 |
# safi: multicast |
| 1985 |
# - afi: ipv4 |
| 1986 |
# bgp: |
| 1987 |
# dampening: |
| 1988 |
# max_suppress: 5 |
| 1989 |
# penalty_half_time: 1 |
| 1990 |
# reuse_route_val: 10 |
| 1991 |
# suppress_route_val: 100 |
| 1992 |
# dmzlink_bw: true |
| 1993 |
# soft_reconfig_backup: true |
| 1994 |
# safi: mdt |
| 1995 |
# as_number: '65000' |
| 1996 |
|
| 1997 |
# After state: |
| 1998 |
# ------------- |
| 1999 |
# |
| 2000 |
# vios#sh running-config | section ^router bgp |
| 2001 |
# router bgp 65000 |
| 2002 |
# bgp log-neighbor-changes |
| 2003 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2004 |
# snmp context snmp_con community community RO 10 |
| 2005 |
# neighbor 198.51.100.1 remote-as 10 |
| 2006 |
# neighbor 198.51.110.1 remote-as 10 |
| 2007 |
# ! |
| 2008 |
# address-family ipv4 |
| 2009 |
# snmp context snmp_con community community RO 10 |
| 2010 |
# bgp aggregate-timer 10 |
| 2011 |
# bgp slow-peer detection threshold 150 |
| 2012 |
# bgp dampening 1 1 1 1 |
| 2013 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2014 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2015 |
# neighbor 198.51.100.1 activate |
| 2016 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2017 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2018 |
# neighbor 198.51.110.1 activate |
| 2019 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2020 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2021 |
# exit-address-family |
| 2022 |
# ! |
| 2023 |
# address-family ipv4 multicast |
| 2024 |
# bgp aggregate-timer 10 |
| 2025 |
# bgp slow-peer detection threshold 200 |
| 2026 |
# bgp dampening 10 10 10 10 |
| 2027 |
# network 192.0.2.1 mask 255.255.255.255 route-map test |
| 2028 |
# exit-address-family |
| 2029 |
# ! |
| 2030 |
# address-family ipv4 mdt |
| 2031 |
# bgp dampening 1 10 100 5 |
| 2032 |
# bgp dmzlink-bw |
| 2033 |
# bgp soft-reconfig-backup |
| 2034 |
# exit-address-family |
| 2035 |
|
| 2036 |
# Using overridden |
| 2037 |
|
| 2038 |
# Before state: |
| 2039 |
# ------------- |
| 2040 |
# |
| 2041 |
# vios#sh running-config | section ^router bgp |
| 2042 |
# router bgp 65000 |
| 2043 |
# bgp log-neighbor-changes |
| 2044 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2045 |
# snmp context snmp_con community community RO 10 |
| 2046 |
# neighbor 198.51.100.1 remote-as 10 |
| 2047 |
# neighbor 198.51.110.1 remote-as 10 |
| 2048 |
# ! |
| 2049 |
# address-family ipv4 |
| 2050 |
# snmp context snmp_con community community RO 10 |
| 2051 |
# bgp aggregate-timer 10 |
| 2052 |
# bgp slow-peer detection threshold 150 |
| 2053 |
# bgp dampening 1 1 1 1 |
| 2054 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2055 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2056 |
# neighbor 198.51.100.1 activate |
| 2057 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2058 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2059 |
# neighbor 198.51.110.1 activate |
| 2060 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2061 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2062 |
# exit-address-family |
| 2063 |
# ! |
| 2064 |
# address-family ipv4 multicast |
| 2065 |
# bgp aggregate-timer 10 |
| 2066 |
# bgp slow-peer detection threshold 200 |
| 2067 |
# bgp dampening 10 10 10 10 |
| 2068 |
# network 192.0.2.1 mask 255.255.255.255 route-map test |
| 2069 |
# exit-address-family |
| 2070 |
# ! |
| 2071 |
# address-family ipv4 mdt |
| 2072 |
# bgp dampening 1 10 100 5 |
| 2073 |
# bgp dmzlink-bw |
| 2074 |
# bgp soft-reconfig-backup |
| 2075 |
# exit-address-family |
| 2076 |
|
| 2077 |
- name: Override device configuration of all AF BGP with provided configuration |
| 2078 |
cisco.ios.ios_bgp_address_family: |
| 2079 |
config: |
| 2080 |
as_number: 65000 |
| 2081 |
address_family: |
| 2082 |
- afi: ipv4 |
| 2083 |
safi: multicast |
| 2084 |
vrf: blue |
| 2085 |
aggregate_address: |
| 2086 |
- address: 192.0.2.1 |
| 2087 |
netmask: 255.255.255.255 |
| 2088 |
as_confed_set: true |
| 2089 |
bgp: |
| 2090 |
aggregate_timer: 10 |
| 2091 |
dampening: |
| 2092 |
penalty_half_time: 10 |
| 2093 |
reuse_route_val: 10 |
| 2094 |
suppress_route_val: 100 |
| 2095 |
max_suppress: 50 |
| 2096 |
slow_peer: |
| 2097 |
- detection: |
| 2098 |
threshold: 150 |
| 2099 |
neighbor: |
| 2100 |
- address: 198.51.110.1 |
| 2101 |
activate: true |
| 2102 |
log_neighbor_changes: |
| 2103 |
disable: true |
| 2104 |
maximum_prefix: |
| 2105 |
number: 1 |
| 2106 |
threshold_value: 10 |
| 2107 |
restart: 100 |
| 2108 |
slow_peer: |
| 2109 |
- detection: |
| 2110 |
threshold: 150 |
| 2111 |
remote_as: 100 |
| 2112 |
version: 4 |
| 2113 |
network: |
| 2114 |
- address: 198.51.110.10 |
| 2115 |
mask: 255.255.255.255 |
| 2116 |
backdoor: true |
| 2117 |
- afi: ipv6 |
| 2118 |
safi: multicast |
| 2119 |
default_information: true |
| 2120 |
bgp: |
| 2121 |
aggregate_timer: 10 |
| 2122 |
dampening: |
| 2123 |
penalty_half_time: 10 |
| 2124 |
reuse_route_val: 10 |
| 2125 |
suppress_route_val: 10 |
| 2126 |
max_suppress: 10 |
| 2127 |
slow_peer: |
| 2128 |
- detection: |
| 2129 |
threshold: 200 |
| 2130 |
network: |
| 2131 |
- address: 2001:DB8:0:3::/64 |
| 2132 |
route_map: test_ipv6 |
| 2133 |
state: overridden |
| 2134 |
|
| 2135 |
# Task Output: |
| 2136 |
# ------------ |
| 2137 |
# |
| 2138 |
# before: |
| 2139 |
# address_family: |
| 2140 |
# - afi: ipv4 |
| 2141 |
# aggregate_addresses: |
| 2142 |
# - address: 192.0.2.1 |
| 2143 |
# as_confed_set: true |
| 2144 |
# netmask: 255.255.255.255 |
| 2145 |
# bgp: |
| 2146 |
# aggregate_timer: 10 |
| 2147 |
# dampening: |
| 2148 |
# max_suppress: 10 |
| 2149 |
# penalty_half_time: 10 |
| 2150 |
# reuse_route_val: 10 |
| 2151 |
# suppress_route_val: 10 |
| 2152 |
# slow_peer_options: |
| 2153 |
# detection: |
| 2154 |
# threshold: 200 |
| 2155 |
# default_information: true |
| 2156 |
# neighbors: |
| 2157 |
# - activate: true |
| 2158 |
# aigp: |
| 2159 |
# send: |
| 2160 |
# cost_community: |
| 2161 |
# id: 100 |
| 2162 |
# poi: |
| 2163 |
# igp_cost: true |
| 2164 |
# transitive: true |
| 2165 |
# neighbor_address: 198.51.100.1 |
| 2166 |
# slow_peer_options: |
| 2167 |
# detection: |
| 2168 |
# threshold: 150 |
| 2169 |
# - activate: true |
| 2170 |
# aigp: |
| 2171 |
# send: |
| 2172 |
# cost_community: |
| 2173 |
# id: 200 |
| 2174 |
# poi: |
| 2175 |
# igp_cost: true |
| 2176 |
# transitive: true |
| 2177 |
# maximum_prefix: |
| 2178 |
# number: 1 |
| 2179 |
# restart: 100 |
| 2180 |
# threshold_value: 10 |
| 2181 |
# neighbor_address: 198.51.110.1 |
| 2182 |
# slow_peer_options: |
| 2183 |
# detection: |
| 2184 |
# threshold: 150 |
| 2185 |
# networks: |
| 2186 |
# - address: 198.51.110.10 |
| 2187 |
# backdoor: true |
| 2188 |
# mask: 255.255.255.255 |
| 2189 |
# - afi: ipv4 |
| 2190 |
# safi: multicast |
| 2191 |
# - afi: ipv4 |
| 2192 |
# safi: mdt |
| 2193 |
# - afi: ipv6 |
| 2194 |
# safi: multicast |
| 2195 |
# as_number: '65000' |
| 2196 |
# commands: |
| 2197 |
# - router bgp 65000 |
| 2198 |
# - address-family ipv4 |
| 2199 |
# - no default-information originate |
| 2200 |
# - no bgp aggregate-timer 10 |
| 2201 |
# - no bgp dampening 10 10 10 10 |
| 2202 |
# - no bgp slow-peer detection threshold 200 |
| 2203 |
# - no neighbor 198.51.100.1 |
| 2204 |
# - no neighbor 198.51.110.1 |
| 2205 |
# - no network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2206 |
# - no aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2207 |
# - address-family ipv4 multicast vrf blue |
| 2208 |
# - bgp aggregate-timer 10 |
| 2209 |
# - bgp dampening 10 10 100 50 |
| 2210 |
# - bgp slow-peer detection threshold 150 |
| 2211 |
# - neighbor 198.51.110.1 remote-as 100 |
| 2212 |
# - neighbor 198.51.110.1 activate |
| 2213 |
# - neighbor 198.51.110.1 disable |
| 2214 |
# - neighbor 198.51.110.1 maximum-prefix 1 10 restart 100 |
| 2215 |
# - neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2216 |
# - neighbor 198.51.110.1 version 4 |
| 2217 |
# - network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2218 |
# - aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2219 |
# - address-family ipv6 multicast |
| 2220 |
# - default-information originate |
| 2221 |
# - bgp aggregate-timer 10 |
| 2222 |
# - bgp dampening 10 10 10 10 |
| 2223 |
# - bgp slow-peer detection threshold 200 |
| 2224 |
# after: |
| 2225 |
# address_family: |
| 2226 |
# - afi: ipv4 |
| 2227 |
# aggregate_addresses: |
| 2228 |
# - address: 192.0.2.1 |
| 2229 |
# as_confed_set: true |
| 2230 |
# netmask: 255.255.255.255 |
| 2231 |
# bgp: |
| 2232 |
# aggregate_timer: 10 |
| 2233 |
# dampening: |
| 2234 |
# max_suppress: 10 |
| 2235 |
# penalty_half_time: 10 |
| 2236 |
# reuse_route_val: 10 |
| 2237 |
# suppress_route_val: 10 |
| 2238 |
# slow_peer_options: |
| 2239 |
# detection: |
| 2240 |
# threshold: 200 |
| 2241 |
# default_information: true |
| 2242 |
# neighbors: |
| 2243 |
# - activate: true |
| 2244 |
# aigp: |
| 2245 |
# send: |
| 2246 |
# cost_community: |
| 2247 |
# id: 100 |
| 2248 |
# poi: |
| 2249 |
# igp_cost: true |
| 2250 |
# transitive: true |
| 2251 |
# neighbor_address: 198.51.100.1 |
| 2252 |
# slow_peer_options: |
| 2253 |
# detection: |
| 2254 |
# threshold: 150 |
| 2255 |
# - activate: true |
| 2256 |
# aigp: |
| 2257 |
# send: |
| 2258 |
# cost_community: |
| 2259 |
# id: 200 |
| 2260 |
# poi: |
| 2261 |
# igp_cost: true |
| 2262 |
# transitive: true |
| 2263 |
# maximum_prefix: |
| 2264 |
# number: 1 |
| 2265 |
# restart: 100 |
| 2266 |
# threshold_value: 10 |
| 2267 |
# neighbor_address: 198.51.110.1 |
| 2268 |
# slow_peer_options: |
| 2269 |
# detection: |
| 2270 |
# threshold: 150 |
| 2271 |
# networks: |
| 2272 |
# - address: 198.51.110.10 |
| 2273 |
# backdoor: true |
| 2274 |
# mask: 255.255.255.255 |
| 2275 |
# - afi: ipv4 |
| 2276 |
# safi: multicast |
| 2277 |
# - afi: ipv4 |
| 2278 |
# safi: mdt |
| 2279 |
# - afi: ipv6 |
| 2280 |
# safi: multicast |
| 2281 |
# as_number: '65000' |
| 2282 |
|
| 2283 |
# After state: |
| 2284 |
# ------------- |
| 2285 |
# |
| 2286 |
# vios#sh running-config | section ^router bgp |
| 2287 |
# router bgp 65000 |
| 2288 |
# bgp log-neighbor-changes |
| 2289 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2290 |
# neighbor 198.51.100.1 remote-as 10 |
| 2291 |
# neighbor 198.51.110.1 remote-as 100 |
| 2292 |
# neighbor 198.51.110.1 disable-connected-check |
| 2293 |
# neighbor 198.51.110.1 version 4 |
| 2294 |
# ! |
| 2295 |
# address-family ipv4 |
| 2296 |
# bgp aggregate-timer 10 |
| 2297 |
# bgp slow-peer detection threshold 200 |
| 2298 |
# bgp dampening 10 10 10 10 |
| 2299 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2300 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2301 |
# neighbor 198.51.100.1 activate |
| 2302 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2303 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2304 |
# neighbor 198.51.110.1 activate |
| 2305 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2306 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2307 |
# neighbor 198.51.110.1 maximum-prefix 1 10 restart 100 |
| 2308 |
# default-information originate |
| 2309 |
# exit-address-family |
| 2310 |
# ! |
| 2311 |
# address-family ipv4 multicast |
| 2312 |
# exit-address-family |
| 2313 |
# ! |
| 2314 |
# address-family ipv4 mdt |
| 2315 |
# exit-address-family |
| 2316 |
# ! |
| 2317 |
# address-family ipv6 multicast |
| 2318 |
# exit-address-family |
| 2319 |
|
| 2320 |
# Using deleted |
| 2321 |
|
| 2322 |
# Before state: |
| 2323 |
# ------------- |
| 2324 |
# |
| 2325 |
# vios#sh running-config | section ^router bgp |
| 2326 |
# router bgp 65000 |
| 2327 |
# bgp log-neighbor-changes |
| 2328 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2329 |
# neighbor 198.51.100.1 remote-as 10 |
| 2330 |
# neighbor 198.51.110.1 remote-as 100 |
| 2331 |
# neighbor 198.51.110.1 disable-connected-check |
| 2332 |
# neighbor 198.51.110.1 version 4 |
| 2333 |
# ! |
| 2334 |
# address-family ipv4 |
| 2335 |
# bgp aggregate-timer 10 |
| 2336 |
# bgp slow-peer detection threshold 200 |
| 2337 |
# bgp dampening 10 10 10 10 |
| 2338 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2339 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2340 |
# neighbor 198.51.100.1 activate |
| 2341 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2342 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2343 |
# neighbor 198.51.110.1 activate |
| 2344 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2345 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2346 |
# neighbor 198.51.110.1 maximum-prefix 1 10 restart 100 |
| 2347 |
# default-information originate |
| 2348 |
# exit-address-family |
| 2349 |
# ! |
| 2350 |
# address-family ipv4 multicast |
| 2351 |
# exit-address-family |
| 2352 |
# ! |
| 2353 |
# address-family ipv4 mdt |
| 2354 |
# exit-address-family |
| 2355 |
# ! |
| 2356 |
# address-family ipv6 multicast |
| 2357 |
# exit-address-family |
| 2358 |
|
| 2359 |
- name: "Delete AF BGP (Note: This won't delete the all configured AF BGP)" |
| 2360 |
cisco.ios.ios_bgp_address_family: |
| 2361 |
config: |
| 2362 |
as_number: 65000 |
| 2363 |
address_family: |
| 2364 |
- afi: ipv4 |
| 2365 |
safi: multicast |
| 2366 |
- afi: ipv4 |
| 2367 |
safi: mdt |
| 2368 |
state: deleted |
| 2369 |
|
| 2370 |
# Task Output: |
| 2371 |
# ------------ |
| 2372 |
# |
| 2373 |
# before: |
| 2374 |
# address_family: |
| 2375 |
# - afi: ipv4 |
| 2376 |
# aggregate_addresses: |
| 2377 |
# - address: 192.0.2.1 |
| 2378 |
# as_confed_set: true |
| 2379 |
# netmask: 255.255.255.255 |
| 2380 |
# bgp: |
| 2381 |
# aggregate_timer: 10 |
| 2382 |
# dampening: |
| 2383 |
# max_suppress: 10 |
| 2384 |
# penalty_half_time: 10 |
| 2385 |
# reuse_route_val: 10 |
| 2386 |
# suppress_route_val: 10 |
| 2387 |
# slow_peer_options: |
| 2388 |
# detection: |
| 2389 |
# threshold: 200 |
| 2390 |
# default_information: true |
| 2391 |
# neighbors: |
| 2392 |
# - activate: true |
| 2393 |
# aigp: |
| 2394 |
# send: |
| 2395 |
# cost_community: |
| 2396 |
# id: 100 |
| 2397 |
# poi: |
| 2398 |
# igp_cost: true |
| 2399 |
# transitive: true |
| 2400 |
# neighbor_address: 198.51.100.1 |
| 2401 |
# slow_peer_options: |
| 2402 |
# detection: |
| 2403 |
# threshold: 150 |
| 2404 |
# - activate: true |
| 2405 |
# aigp: |
| 2406 |
# send: |
| 2407 |
# cost_community: |
| 2408 |
# id: 200 |
| 2409 |
# poi: |
| 2410 |
# igp_cost: true |
| 2411 |
# transitive: true |
| 2412 |
# maximum_prefix: |
| 2413 |
# number: 1 |
| 2414 |
# restart: 100 |
| 2415 |
# threshold_value: 10 |
| 2416 |
# neighbor_address: 198.51.110.1 |
| 2417 |
# slow_peer_options: |
| 2418 |
# detection: |
| 2419 |
# threshold: 150 |
| 2420 |
# networks: |
| 2421 |
# - address: 198.51.110.10 |
| 2422 |
# backdoor: true |
| 2423 |
# mask: 255.255.255.255 |
| 2424 |
# - afi: ipv4 |
| 2425 |
# safi: multicast |
| 2426 |
# - afi: ipv4 |
| 2427 |
# safi: mdt |
| 2428 |
# - afi: ipv6 |
| 2429 |
# safi: multicast |
| 2430 |
# as_number: '65000' |
| 2431 |
# commands: |
| 2432 |
# - router bgp 65000 |
| 2433 |
# - no address-family ipv4 multicast |
| 2434 |
# - no address-family ipv4 mdt |
| 2435 |
# after: |
| 2436 |
# address_family: |
| 2437 |
# - afi: ipv4 |
| 2438 |
# aggregate_addresses: |
| 2439 |
# - address: 192.0.2.1 |
| 2440 |
# as_confed_set: true |
| 2441 |
# netmask: 255.255.255.255 |
| 2442 |
# bgp: |
| 2443 |
# aggregate_timer: 10 |
| 2444 |
# dampening: |
| 2445 |
# max_suppress: 10 |
| 2446 |
# penalty_half_time: 10 |
| 2447 |
# reuse_route_val: 10 |
| 2448 |
# suppress_route_val: 10 |
| 2449 |
# slow_peer_options: |
| 2450 |
# detection: |
| 2451 |
# threshold: 200 |
| 2452 |
# default_information: true |
| 2453 |
# neighbors: |
| 2454 |
# - activate: true |
| 2455 |
# aigp: |
| 2456 |
# send: |
| 2457 |
# cost_community: |
| 2458 |
# id: 100 |
| 2459 |
# poi: |
| 2460 |
# igp_cost: true |
| 2461 |
# transitive: true |
| 2462 |
# neighbor_address: 198.51.100.1 |
| 2463 |
# slow_peer_options: |
| 2464 |
# detection: |
| 2465 |
# threshold: 150 |
| 2466 |
# - activate: true |
| 2467 |
# aigp: |
| 2468 |
# send: |
| 2469 |
# cost_community: |
| 2470 |
# id: 200 |
| 2471 |
# poi: |
| 2472 |
# igp_cost: true |
| 2473 |
# transitive: true |
| 2474 |
# maximum_prefix: |
| 2475 |
# number: 1 |
| 2476 |
# restart: 100 |
| 2477 |
# threshold_value: 10 |
| 2478 |
# neighbor_address: 198.51.110.1 |
| 2479 |
# slow_peer_options: |
| 2480 |
# detection: |
| 2481 |
# threshold: 150 |
| 2482 |
# networks: |
| 2483 |
# - address: 198.51.110.10 |
| 2484 |
# backdoor: true |
| 2485 |
# mask: 255.255.255.255 |
| 2486 |
# - afi: ipv6 |
| 2487 |
# safi: multicast |
| 2488 |
# as_number: '65000' |
| 2489 |
|
| 2490 |
# After state: |
| 2491 |
# ------------- |
| 2492 |
# |
| 2493 |
# vios#sh running-config | section ^router bg |
| 2494 |
# hostname#show running-config | section ^router bgp |
| 2495 |
# router bgp 65000 |
| 2496 |
# bgp log-neighbor-changes |
| 2497 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2498 |
# neighbor 198.51.100.1 remote-as 10 |
| 2499 |
# neighbor 198.51.110.1 remote-as 100 |
| 2500 |
# neighbor 198.51.110.1 disable-connected-check |
| 2501 |
# neighbor 198.51.110.1 version 4 |
| 2502 |
# ! |
| 2503 |
# address-family ipv4 |
| 2504 |
# bgp aggregate-timer 10 |
| 2505 |
# bgp slow-peer detection threshold 200 |
| 2506 |
# bgp dampening 10 10 10 10 |
| 2507 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2508 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2509 |
# neighbor 198.51.100.1 activate |
| 2510 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2511 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2512 |
# neighbor 198.51.110.1 activate |
| 2513 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2514 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2515 |
# neighbor 198.51.110.1 maximum-prefix 1 10 restart 100 |
| 2516 |
# default-information originate |
| 2517 |
# exit-address-family |
| 2518 |
# ! |
| 2519 |
# address-family ipv6 multicast |
| 2520 |
# exit-address-family |
| 2521 |
|
| 2522 |
# Using Deleted without any config passed (delete all) |
| 2523 |
|
| 2524 |
# Before state: |
| 2525 |
# ------------- |
| 2526 |
# |
| 2527 |
# vios#sh running-config | section ^router bg |
| 2528 |
# hostname#show running-config | section ^router bgp |
| 2529 |
# router bgp 65000 |
| 2530 |
# bgp log-neighbor-changes |
| 2531 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2532 |
# neighbor 198.51.100.1 remote-as 10 |
| 2533 |
# neighbor 198.51.110.1 remote-as 100 |
| 2534 |
# neighbor 198.51.110.1 disable-connected-check |
| 2535 |
# neighbor 198.51.110.1 version 4 |
| 2536 |
# ! |
| 2537 |
# address-family ipv4 |
| 2538 |
# bgp aggregate-timer 10 |
| 2539 |
# bgp slow-peer detection threshold 200 |
| 2540 |
# bgp dampening 10 10 10 10 |
| 2541 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2542 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2543 |
# neighbor 198.51.100.1 activate |
| 2544 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2545 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2546 |
# neighbor 198.51.110.1 activate |
| 2547 |
# neighbor 198.51.110.1 aigp send cost-community 200 poi igp-cost transitive |
| 2548 |
# neighbor 198.51.110.1 slow-peer detection threshold 150 |
| 2549 |
# neighbor 198.51.110.1 maximum-prefix 1 10 restart 100 |
| 2550 |
# default-information originate |
| 2551 |
# exit-address-family |
| 2552 |
# ! |
| 2553 |
# address-family ipv6 multicast |
| 2554 |
# exit-address-family |
| 2555 |
|
| 2556 |
- name: "Delete ALL of configured AF BGP" |
| 2557 |
cisco.ios.ios_bgp_address_family: |
| 2558 |
state: deleted |
| 2559 |
|
| 2560 |
# Task Output: |
| 2561 |
# ------------ |
| 2562 |
# |
| 2563 |
# before: |
| 2564 |
# address_family: |
| 2565 |
# - afi: ipv4 |
| 2566 |
# aggregate_addresses: |
| 2567 |
# - address: 192.0.2.1 |
| 2568 |
# as_confed_set: true |
| 2569 |
# netmask: 255.255.255.255 |
| 2570 |
# bgp: |
| 2571 |
# aggregate_timer: 10 |
| 2572 |
# dampening: |
| 2573 |
# max_suppress: 10 |
| 2574 |
# penalty_half_time: 10 |
| 2575 |
# reuse_route_val: 10 |
| 2576 |
# suppress_route_val: 10 |
| 2577 |
# slow_peer_options: |
| 2578 |
# detection: |
| 2579 |
# threshold: 200 |
| 2580 |
# default_information: true |
| 2581 |
# neighbors: |
| 2582 |
# - activate: true |
| 2583 |
# aigp: |
| 2584 |
# send: |
| 2585 |
# cost_community: |
| 2586 |
# id: 100 |
| 2587 |
# poi: |
| 2588 |
# igp_cost: true |
| 2589 |
# transitive: true |
| 2590 |
# neighbor_address: 198.51.100.1 |
| 2591 |
# slow_peer_options: |
| 2592 |
# detection: |
| 2593 |
# threshold: 150 |
| 2594 |
# - activate: true |
| 2595 |
# aigp: |
| 2596 |
# send: |
| 2597 |
# cost_community: |
| 2598 |
# id: 200 |
| 2599 |
# poi: |
| 2600 |
# igp_cost: true |
| 2601 |
# transitive: true |
| 2602 |
# maximum_prefix: |
| 2603 |
# number: 1 |
| 2604 |
# restart: 100 |
| 2605 |
# threshold_value: 10 |
| 2606 |
# neighbor_address: 198.51.110.1 |
| 2607 |
# slow_peer_options: |
| 2608 |
# detection: |
| 2609 |
# threshold: 150 |
| 2610 |
# networks: |
| 2611 |
# - address: 198.51.110.10 |
| 2612 |
# backdoor: true |
| 2613 |
# mask: 255.255.255.255 |
| 2614 |
# - afi: ipv6 |
| 2615 |
# safi: multicast |
| 2616 |
# as_number: '65000' |
| 2617 |
# commands: |
| 2618 |
# - router bgp 65000 |
| 2619 |
# - no address-family ipv4 |
| 2620 |
# - no address-family ipv6 multicast |
| 2621 |
# after: |
| 2622 |
# address_family: |
| 2623 |
# - afi: ipv4 |
| 2624 |
# bgp: |
| 2625 |
# aggregate_timer: 10 |
| 2626 |
# as_number: '65000' |
| 2627 |
|
| 2628 |
# After state: |
| 2629 |
# ------------- |
| 2630 |
# |
| 2631 |
# vios#sh running-config | section ^router bgp |
| 2632 |
# router bgp 65000 |
| 2633 |
# bgp log-neighbor-changes |
| 2634 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2635 |
# neighbor 198.51.100.1 remote-as 10 |
| 2636 |
# neighbor 198.51.110.1 remote-as 100 |
| 2637 |
# neighbor 198.51.110.1 disable-connected-check |
| 2638 |
# neighbor 198.51.110.1 version 4 |
| 2639 |
# ! |
| 2640 |
# address-family ipv4 |
| 2641 |
# bgp aggregate-timer 10 |
| 2642 |
# no neighbor 198.51.100.1 activate |
| 2643 |
# no neighbor 198.51.110.1 activate |
| 2644 |
# exit-address-family |
| 2645 |
|
| 2646 |
# Using gathered |
| 2647 |
|
| 2648 |
# Before state: |
| 2649 |
# ------------- |
| 2650 |
# |
| 2651 |
# vios#sh running-config | section ^router bgp |
| 2652 |
# router bgp 65000 |
| 2653 |
# bgp log-neighbor-changes |
| 2654 |
# bgp graceful-shutdown all neighbors 50 local-preference 100 community 100 |
| 2655 |
# snmp context snmp_con community community RO 10 |
| 2656 |
# neighbor 198.51.100.1 remote-as 10 |
| 2657 |
# ! |
| 2658 |
# address-family ipv4 |
| 2659 |
# snmp context snmp_con community community RO 10 |
| 2660 |
# bgp aggregate-timer 10 |
| 2661 |
# bgp slow-peer detection threshold 150 |
| 2662 |
# bgp dampening 1 1 1 1 |
| 2663 |
# network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2664 |
# aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2665 |
# neighbor 198.51.100.1 activate |
| 2666 |
# neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2667 |
# neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2668 |
# exit-address-family |
| 2669 |
# ! |
| 2670 |
# address-family ipv4 multicast |
| 2671 |
# table-map test_tableMap filter |
| 2672 |
# network 198.51.111.11 mask 255.255.255.255 route-map test |
| 2673 |
# aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 2674 |
# default-metric 12 |
| 2675 |
# distance bgp 10 10 100 |
| 2676 |
# exit-address-family |
| 2677 |
# ! |
| 2678 |
# address-family ipv4 mdt |
| 2679 |
# bgp dampening 1 10 100 5 |
| 2680 |
# bgp dmzlink-bw |
| 2681 |
# bgp soft-reconfig-backup |
| 2682 |
# exit-address-family |
| 2683 |
|
| 2684 |
- name: Gather listed AF BGP with provided configurations |
| 2685 |
cisco.ios.ios_bgp_address_family: |
| 2686 |
config: |
| 2687 |
state: gathered |
| 2688 |
|
| 2689 |
# Task Output: |
| 2690 |
# ------------ |
| 2691 |
# |
| 2692 |
# gathered: |
| 2693 |
# address_family: |
| 2694 |
# - afi: ipv4 |
| 2695 |
# aggregate_addresses: |
| 2696 |
# - address: 192.0.2.1 |
| 2697 |
# as_confed_set: true |
| 2698 |
# netmask: 255.255.255.255 |
| 2699 |
# bgp: |
| 2700 |
# aggregate_timer: 10 |
| 2701 |
# dampening: |
| 2702 |
# max_suppress: 1 |
| 2703 |
# penalty_half_time: 1 |
| 2704 |
# reuse_route_val: 1 |
| 2705 |
# suppress_route_val: 1 |
| 2706 |
# slow_peer_options: |
| 2707 |
# detection: |
| 2708 |
# threshold: 150 |
| 2709 |
# neighbors: |
| 2710 |
# - activate: true |
| 2711 |
# aigp: |
| 2712 |
# send: |
| 2713 |
# cost_community: |
| 2714 |
# id: 100 |
| 2715 |
# poi: |
| 2716 |
# igp_cost: true |
| 2717 |
# transitive: true |
| 2718 |
# neighbor_address: 198.51.100.1 |
| 2719 |
# slow_peer_options: |
| 2720 |
# detection: |
| 2721 |
# threshold: 150 |
| 2722 |
# networks: |
| 2723 |
# - address: 198.51.110.10 |
| 2724 |
# backdoor: true |
| 2725 |
# mask: 255.255.255.255 |
| 2726 |
# snmp: |
| 2727 |
# context: |
| 2728 |
# community: |
| 2729 |
# acl: '10' |
| 2730 |
# ro: true |
| 2731 |
# snmp_community: community |
| 2732 |
# name: snmp_con |
| 2733 |
# - afi: ipv4 |
| 2734 |
# aggregate_addresses: |
| 2735 |
# - address: 192.0.3.1 |
| 2736 |
# as_confed_set: true |
| 2737 |
# netmask: 255.255.255.255 |
| 2738 |
# default_metric: 12 |
| 2739 |
# distance: |
| 2740 |
# external: 10 |
| 2741 |
# internal: 10 |
| 2742 |
# local: 100 |
| 2743 |
# networks: |
| 2744 |
# - address: 198.51.111.11 |
| 2745 |
# mask: 255.255.255.255 |
| 2746 |
# route_map: test |
| 2747 |
# safi: multicast |
| 2748 |
# table_map: |
| 2749 |
# filter: true |
| 2750 |
# name: test_tableMap |
| 2751 |
# - afi: ipv4 |
| 2752 |
# bgp: |
| 2753 |
# dampening: |
| 2754 |
# max_suppress: 5 |
| 2755 |
# penalty_half_time: 1 |
| 2756 |
# reuse_route_val: 10 |
| 2757 |
# suppress_route_val: 100 |
| 2758 |
# dmzlink_bw: true |
| 2759 |
# soft_reconfig_backup: true |
| 2760 |
# safi: mdt |
| 2761 |
# as_number: '65000' |
| 2762 |
|
| 2763 |
# Using rendered |
| 2764 |
|
| 2765 |
- name: Rendered the provided configuration with the existing running configuration |
| 2766 |
cisco.ios.ios_bgp_address_family: |
| 2767 |
config: |
| 2768 |
as_number: 65000 |
| 2769 |
address_family: |
| 2770 |
- afi: ipv4 |
| 2771 |
safi: multicast |
| 2772 |
vrf: blue |
| 2773 |
aggregate_address: |
| 2774 |
- address: 192.0.2.1 |
| 2775 |
netmask: 255.255.255.255 |
| 2776 |
as_confed_set: true |
| 2777 |
bgp: |
| 2778 |
aggregate_timer: 10 |
| 2779 |
dampening: |
| 2780 |
penalty_half_time: 1 |
| 2781 |
reuse_route_val: 1 |
| 2782 |
suppress_route_val: 1 |
| 2783 |
max_suppress: 1 |
| 2784 |
slow_peer: |
| 2785 |
- detection: |
| 2786 |
threshold: 150 |
| 2787 |
neighbor: |
| 2788 |
- address: 198.51.100.1 |
| 2789 |
aigp: |
| 2790 |
send: |
| 2791 |
cost_community: |
| 2792 |
id: 100 |
| 2793 |
poi: |
| 2794 |
igp_cost: true |
| 2795 |
transitive: true |
| 2796 |
slow_peer: |
| 2797 |
- detection: |
| 2798 |
threshold: 150 |
| 2799 |
remote_as: 10 |
| 2800 |
route_maps: |
| 2801 |
- name: test-route |
| 2802 |
out: true |
| 2803 |
route_server_client: true |
| 2804 |
network: |
| 2805 |
- address: 198.51.110.10 |
| 2806 |
mask: 255.255.255.255 |
| 2807 |
backdoor: true |
| 2808 |
snmp: |
| 2809 |
context: |
| 2810 |
name: snmp_con |
| 2811 |
community: |
| 2812 |
snmp_community: community |
| 2813 |
ro: true |
| 2814 |
acl: 10 |
| 2815 |
- afi: ipv4 |
| 2816 |
safi: mdt |
| 2817 |
bgp: |
| 2818 |
dmzlink_bw: true |
| 2819 |
dampening: |
| 2820 |
penalty_half_time: 1 |
| 2821 |
reuse_route_val: 10 |
| 2822 |
suppress_route_val: 100 |
| 2823 |
max_suppress: 5 |
| 2824 |
soft_reconfig_backup: true |
| 2825 |
state: rendered |
| 2826 |
|
| 2827 |
# Task Output: |
| 2828 |
# ------------ |
| 2829 |
# |
| 2830 |
# rendered: |
| 2831 |
# - router bgp 65000 |
| 2832 |
# - address-family ipv4 multicast vrf blue |
| 2833 |
# - bgp aggregate-timer 10 |
| 2834 |
# - bgp dampening 1 1 1 1 |
| 2835 |
# - bgp slow-peer detection threshold 150 |
| 2836 |
# - snmp context snmp_con community community ro 10 |
| 2837 |
# - neighbor 198.51.100.1 remote-as 10 |
| 2838 |
# - neighbor 198.51.100.1 aigp send cost-community 100 poi igp-cost transitive |
| 2839 |
# - neighbor 198.51.100.1 slow-peer detection threshold 150 |
| 2840 |
# - network 198.51.110.10 mask 255.255.255.255 backdoor |
| 2841 |
# - aggregate-address 192.0.2.1 255.255.255.255 as-confed-set |
| 2842 |
# - address-family ipv4 mdt |
| 2843 |
# - bgp dmzlink-bw |
| 2844 |
# - bgp soft-reconfig-backup |
| 2845 |
# - bgp dampening 1 10 100 5 |
| 2846 |
|
| 2847 |
# Using parsed |
| 2848 |
|
| 2849 |
# File: parsed.cfg |
| 2850 |
# ---------------- |
| 2851 |
# router bgp 65000 |
| 2852 |
# bgp log-neighbor-changes |
| 2853 |
# bgp nopeerup-delay cold-boot 20 |
| 2854 |
# ! |
| 2855 |
# address-family ipv4 multicast |
| 2856 |
# table-map test_tableMap filter |
| 2857 |
# network 1.1.1.1 mask 255.255.255.255 route-map test |
| 2858 |
# aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 2859 |
# default-metric 12 |
| 2860 |
# distance bgp 10 10 100 |
| 2861 |
# exit-address-family |
| 2862 |
# ! |
| 2863 |
# address-family ipv4 mdt |
| 2864 |
# bgp dampening 1 10 100 5 |
| 2865 |
# bgp dmzlink-bw |
| 2866 |
# bgp soft-reconfig-backup |
| 2867 |
# exit-address-family |
| 2868 |
# ! |
| 2869 |
|
| 2870 |
- name: Parse the commands for provided configuration |
| 2871 |
cisco.ios.ios_bgp_address_family: |
| 2872 |
running_config: "{{ lookup('file', 'parsed.cfg') }}" |
| 2873 |
state: parsed |
| 2874 |
|
| 2875 |
# Task Output: |
| 2876 |
# ------------ |
| 2877 |
# |
| 2878 |
# parsed: |
| 2879 |
# address_family: |
| 2880 |
# - afi: ipv4 |
| 2881 |
# aggregate_addresses: |
| 2882 |
# - address: 192.0.2.1 |
| 2883 |
# as_confed_set: true |
| 2884 |
# netmask: 255.255.255.255 |
| 2885 |
# bgp: |
| 2886 |
# aggregate_timer: 10 |
| 2887 |
# dampening: |
| 2888 |
# max_suppress: 1 |
| 2889 |
# penalty_half_time: 1 |
| 2890 |
# reuse_route_val: 1 |
| 2891 |
# suppress_route_val: 1 |
| 2892 |
# slow_peer_options: |
| 2893 |
# detection: |
| 2894 |
# threshold: 150 |
| 2895 |
# neighbors: |
| 2896 |
# - activate: true |
| 2897 |
# aigp: |
| 2898 |
# send: |
| 2899 |
# cost_community: |
| 2900 |
# id: 100 |
| 2901 |
# poi: |
| 2902 |
# igp_cost: true |
| 2903 |
# transitive: true |
| 2904 |
# neighbor_address: 198.51.100.1 |
| 2905 |
# slow_peer_options: |
| 2906 |
# detection: |
| 2907 |
# threshold: 150 |
| 2908 |
# networks: |
| 2909 |
# - address: 198.51.110.10 |
| 2910 |
# backdoor: true |
| 2911 |
# mask: 255.255.255.255 |
| 2912 |
# snmp: |
| 2913 |
# context: |
| 2914 |
# community: |
| 2915 |
# acl: '10' |
| 2916 |
# ro: true |
| 2917 |
# snmp_community: community |
| 2918 |
# name: snmp_con |
| 2919 |
# - afi: ipv4 |
| 2920 |
# aggregate_addresses: |
| 2921 |
# - address: 192.0.3.1 |
| 2922 |
# as_confed_set: true |
| 2923 |
# netmask: 255.255.255.255 |
| 2924 |
# default_metric: 12 |
| 2925 |
# distance: |
| 2926 |
# external: 10 |
| 2927 |
# internal: 10 |
| 2928 |
# local: 100 |
| 2929 |
# networks: |
| 2930 |
# - address: 198.51.111.11 |
| 2931 |
# mask: 255.255.255.255 |
| 2932 |
# route_map: test |
| 2933 |
# safi: multicast |
| 2934 |
# table_map: |
| 2935 |
# filter: true |
| 2936 |
# name: test_tableMap |
| 2937 |
# - afi: ipv4 |
| 2938 |
# bgp: |
| 2939 |
# dampening: |
| 2940 |
# max_suppress: 5 |
| 2941 |
# penalty_half_time: 1 |
| 2942 |
# reuse_route_val: 10 |
| 2943 |
# suppress_route_val: 100 |
| 2944 |
# dmzlink_bw: true |
| 2945 |
# soft_reconfig_backup: true |
| 2946 |
# safi: mdt |
| 2947 |
# as_number: '65000' |
| 2948 |
""" |
| 2949 |
|
| 2950 |
|
| 2951 |
RETURN = """ |
| 2952 |
before: |
| 2953 |
description: The configuration prior to the module execution. |
| 2954 |
returned: when I(state) is C(merged), C(replaced), C(overridden), C(deleted) or C(purged) |
| 2955 |
type: dict |
| 2956 |
sample: > |
| 2957 |
This output will always be in the same format as the |
| 2958 |
module argspec. |
| 2959 |
after: |
| 2960 |
description: The resulting configuration after module execution. |
| 2961 |
returned: when changed |
| 2962 |
type: dict |
| 2963 |
sample: > |
| 2964 |
This output will always be in the same format as the |
| 2965 |
module argspec. |
| 2966 |
commands: |
| 2967 |
description: The set of commands pushed to the remote device. |
| 2968 |
returned: when I(state) is C(merged), C(replaced), C(overridden), C(deleted) or C(purged) |
| 2969 |
type: list |
| 2970 |
sample: |
| 2971 |
- router bgp 65000 |
| 2972 |
- address-family ipv4 multicast |
| 2973 |
- table-map test_tableMap filter |
| 2974 |
- network 1.1.1.1 mask 255.255.255.255 route-map test |
| 2975 |
- aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 2976 |
rendered: |
| 2977 |
description: The provided configuration in the task rendered in device-native format (offline). |
| 2978 |
returned: when I(state) is C(rendered) |
| 2979 |
type: list |
| 2980 |
sample: |
| 2981 |
- router bgp 65000 |
| 2982 |
- address-family ipv4 multicast |
| 2983 |
- table-map test_tableMap filter |
| 2984 |
- network 1.1.1.1 mask 255.255.255.255 route-map test |
| 2985 |
- aggregate-address 192.0.3.1 255.255.255.255 as-confed-set |
| 2986 |
gathered: |
| 2987 |
description: Facts about the network resource gathered from the remote device as structured data. |
| 2988 |
returned: when I(state) is C(gathered) |
| 2989 |
type: list |
| 2990 |
sample: > |
| 2991 |
This output will always be in the same format as the |
| 2992 |
module argspec. |
| 2993 |
parsed: |
| 2994 |
description: The device native config provided in I(running_config) option parsed into structured data as per module argspec. |
| 2995 |
returned: when I(state) is C(parsed) |
| 2996 |
type: list |
| 2997 |
sample: > |
| 2998 |
This output will always be in the same format as the |
| 2999 |
module argspec. |
| 3000 |
""" |
| 3001 |
|
| 3002 |
from ansible.module_utils.basic import AnsibleModule |
| 3003 |
|
| 3004 |
from ansible_collections.cisco.ios.plugins.module_utils.network.ios.argspec.bgp_address_family.bgp_address_family import ( |
| 3005 |
Bgp_address_familyArgs, |
| 3006 |
) |
| 3007 |
from ansible_collections.cisco.ios.plugins.module_utils.network.ios.config.bgp_address_family.bgp_address_family import ( |
| 3008 |
Bgp_address_family, |
| 3009 |
) |
| 3010 |
|
| 3011 |
|
| 3012 |
def main(): |
| 3013 |
""" |
| 3014 |
Main entry point for module execution |
| 3015 |
|
| 3016 |
:returns: the result form module invocation |
| 3017 |
""" |
| 3018 |
module = AnsibleModule( |
| 3019 |
argument_spec=Bgp_address_familyArgs.argument_spec, |
| 3020 |
mutually_exclusive=[["config", "running_config"]], |
| 3021 |
required_if=[ |
| 3022 |
["state", "merged", ["config"]], |
| 3023 |
["state", "replaced", ["config"]], |
| 3024 |
["state", "overridden", ["config"]], |
| 3025 |
["state", "rendered", ["config"]], |
| 3026 |
["state", "parsed", ["running_config"]], |
| 3027 |
], |
| 3028 |
supports_check_mode=True, |
| 3029 |
) |
| 3030 |
|
| 3031 |
result = Bgp_address_family(module).execute_module() |
| 3032 |
module.exit_json(**result) |
| 3033 |
|
| 3034 |
|
| 3035 |
if __name__ == "__main__": |
| 3036 |
main() |