@ -142,6 +142,11 @@
remote_as : 64511
remote_as : 64511
description : EBGP_NBR_1
description : EBGP_NBR_1
local_as : 64497
local_as : 64497
- neighbor : 10.10 .20 .20
remote_as : 65012
description : BGP_NBR_2
ebgp_multihop : 100
register : result
register : result
- assert:
- assert:
@ -150,6 +155,8 @@
- "'neighbor 203.0.113.10 remote-as 64511' in result.commands"
- "'neighbor 203.0.113.10 remote-as 64511' in result.commands"
- "'neighbor 203.0.113.10 description EBGP_NBR_1' in result.commands"
- "'neighbor 203.0.113.10 description EBGP_NBR_1' in result.commands"
- "'neighbor 203.0.113.10 local-as 64497' in result.commands"
- "'neighbor 203.0.113.10 local-as 64497' in result.commands"
- "'neighbor 10.10.20.20 remote-as 65012' in result.commands"
- "'neighbor 10.10.20.20 description BGP_NBR_2' in result.commands"
- "'no neighbor 192.0.2.10' in result.commands"
- "'no neighbor 192.0.2.10' in result.commands"
- name : Configure BGP neighbors with operation replace (idempotent)
- name : Configure BGP neighbors with operation replace (idempotent)
@ -236,6 +243,11 @@
- neighbor : 192.0 .2 .15
- neighbor : 192.0 .2 .15
activate : yes
activate : yes
route_reflector_client : True
route_reflector_client : True
- neighbor : 10.10 .20 .20
activate : yes
prefix_list_in : incoming-prefixes
prefix_list_out : outgoing-prefixes
register : result
register : result
- assert:
- assert:
@ -248,6 +260,9 @@
- "'neighbor 203.0.113.10 advertisement-interval 120' in result.commands"
- "'neighbor 203.0.113.10 advertisement-interval 120' in result.commands"
- "'neighbor 192.0.2.15 activate' in result.commands"
- "'neighbor 192.0.2.15 activate' in result.commands"
- "'neighbor 192.0.2.15 route-reflector-client' in result.commands"
- "'neighbor 192.0.2.15 route-reflector-client' in result.commands"
- "'neighbor 10.10.20.20 activate' in result.commands"
- "'neighbor 10.10.20.20 prefix-list incoming-prefixes in' in result.commands"
- "'neighbor 10.10.20.20 prefix-list outgoing-prefixes out' in result.commands"
- name : Configure BGP neighbors under address family mode (idempotent)
- name : Configure BGP neighbors under address family mode (idempotent)
ios_bgp : *af_nbr
ios_bgp : *af_nbr