11-29-2024 06:16 AM
Hi all,
I posted an issue on github about not being able to configure next-hop-self via Terrafom: https://github.com/CiscoDevNet/terraform-provider-iosxr/issues/271
The cause of the issue appears to be on the XR side of things: when configuring next-hop-self under a BGP neighbor in a VRF it appears in the running config, but not in the output of `show run router bgp | json unified`.
RP/0/RP0/CPU0:ios#conf t
Fri Nov 29 13:43:16.465 UTC
RP/0/RP0/CPU0:ios(config)#router bgp 65003 vrf TST_VRF_TOM neighbor 1.2.3.4 address-family ipv4 unicast next-hop-self
RP/0/RP0/CPU0:ios(config)#commit
RP/0/RP0/CPU0:ios#sh run router bgp 65003
Fri Nov 29 13:45:10.508 UTC
router bgp 65003
bgp router-id 22.22.22.22
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
vrf TST_VRF_TOM
bgp router-id 99.99.99.99
address-family ipv4 unicast
!
neighbor 1.2.3.4
remote-as 65123
local-as 65123 no-prepend replace-as
address-family ipv4 unicast
next-hop-self
!
!
!
!
RP/0/RP0/CPU0:ios#show run router bgp | json unified
Fri Nov 29 13:44:15.224 UTC
{
"data": {
"Cisco-IOS-XR-um-router-bgp-cfg:router": {
"bgp": {
"as": [
{
"as-number": 65003,
"bgp": {
"router-id": "22.22.22.22"
},
"address-families": {
"address-family": [
{
"af-name": "ipv4-unicast"
},
{
"af-name": "vpnv4-unicast"
}
]
},
"vrfs": {
"vrf": [
{
"vrf-name": "TST_VRF_TOM",
"bgp": {
"router-id": "99.99.99.99"
},
"address-families": {
"address-family": [
{
"af-name": "ipv4-unicast"
}
]
},
"neighbors": {
"neighbor": [
{
"neighbor-address": "1.2.3.4",
"remote-as": 65123,
"local-as": {
"as-number": 65123,
"no-prepend": {
"replace-as": {
}
}
},
"address-families": {
"address-family": [
{
"af-name": "ipv4-unicast"
}
]
}
}
]
}
}
]
}
}
]
}
}
}
}
11-29-2024 07:16 AM - edited 11-29-2024 07:42 AM
@TomVr moved to devnet and tagging super @Jesus Illescas
Edit - looks like this is with TAC now due this being a version issue.
11-29-2024 08:47 AM
Thanks for tagging me @bigevilbeard, I see @TomVr already opened a TAC case, probably the best is for TAC to take a look at this based on the comments from the Github issue.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide