cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
538
Views
0
Helpful
2
Replies

Error on enabling next-hop-self option via Terraform / gRPC

TomVr
Level 1
Level 1

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"
              }
             ]
            }
           }
          ]
         }
        }
       ]
      }
     }
    ]
   }
  }
 }
}

 

2 Replies 2

@TomVr moved to devnet and tagging super @Jesus Illescas 

Edit - looks like this is with TAC now due this being a version issue.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Jesus Illescas
Cisco Employee
Cisco Employee

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.