CiscoDevNet / terraform-provider-iosxr

Terraform Cisco IOS-XR Provider
https://registry.terraform.io/providers/CiscoDevNet/iosxr
Mozilla Public License 2.0
6 stars 9 forks source link

Add BGP Next-hop-self #215

Closed tiagosil-cisco closed 7 months ago

tiagosil-cisco commented 11 months ago

Could you please evaluate adding the flag (true or false) to BGP Next-hop-self? https://www.cisco.com/c/en/us/td/docs/routers/xr12000/software/xr12k_r4-1/routing/configuration/guide/routing_cg41xr12k_chapter1.html#task_1207381

This can be used inside address-families for the resources below (it's optional)

Example:

RP/0/RP0/CPU0:A-NCS5-PE01#show run router bgp 65300 neighbor-group TO_RR 
Mon Nov 27 21:22:10.065 UTC
router bgp 65300
 neighbor-group TO_RR
  remote-as 65300
  update-source Loopback0
  address-family vpnv4 unicast
   import reoriginate stitching-rt
   advertise vpnv4 unicast re-originated
   next-hop-self  <<<<<<<<<<<<<<<<<<<<<<<
   soft-reconfiguration inbound
  !
  address-family vpnv6 unicast
   import reoriginate stitching-rt
   advertise vpnv6 unicast re-originated
   next-hop-self  <<<<<<<<<<<<<<<<<<<<<<<
   soft-reconfiguration inbound
  !
  address-family ipv4 rt-filter
  !
  address-family l2vpn evpn
   next-hop-self  <<<<<<<<<<<<<<<<<<<<<<<
   soft-reconfiguration inbound
  !
summed commented 11 months ago

Believe I have added it to the PR https://github.com/CiscoDevNet/terraform-provider-iosxr/pull/213 - Could you please have a look?

tiagosil-cisco commented 11 months ago

Sorry, I didn’t test before posting. I just looked at the documentation. It’s working using next_hop_self = true. Thanks

From: Noname @.> Date: Monday, November 27, 2023 at 5:36 PM To: CiscoDevNet/terraform-provider-iosxr @.> Cc: Tiago Lugarini Silva (tiagosil) @.>, Author @.> Subject: Re: [CiscoDevNet/terraform-provider-iosxr] Add BGP Next-hop-self (Issue #215)

Believe I have added it to the PR #213https://github.com/CiscoDevNet/terraform-provider-iosxr/pull/213 - Could you please have a look?

— Reply to this email directly, view it on GitHubhttps://github.com/CiscoDevNet/terraform-provider-iosxr/issues/215#issuecomment-1828741318, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYBFDBX3E5G4RAFD73WAMBLYGUIVVAVCNFSM6AAAAAA74VXL4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYG42DCMZRHA. You are receiving this because you authored the thread.Message ID: @.***>

danischm commented 7 months ago

Added in v0.5.0 release.