Skip to content

Conversation

@tech-of-all-trades
Copy link
Contributor

This PR updates the "tf_name" parameter for the BGP neighbor update source interface attribute to better align with Terraform naming conventions.

This change makes the attribute name more consistent with the underlying YANG path (update-source/interface/Loopback) while adhering to expected TF naming conventions, clearly indicating that it references an interface (specifically a Loopback interface).


Changes:

  • Renamed update_source_loopback to update_source_interface_loopback in the BGP Neighbor definition.
  • Updated all documentation, examples, and codebase for consistency and clarity.

gen/definitions/bgp_neighbor.yaml (Lines 91-93)

- yang_name: update-source/interface/interface-choice/Loopback/Loopback
  xpath: update-source/interface/Loopback
  tf_name: update_source_interface_loopback  # NEW NAME
- yang_name: update-source/interface/interface-choice/Loopback/Loopback
  xpath: update-source/interface/Loopback
  tf_name: update_source_loopback  # OLD NAME

…ention

Renamed `update_source_loopback` to `update_source_interface_loopback` in the BGP Neighbor definition.
This update is reflected across documentation, examples, and codebase for consistency and clarity.
@tech-of-all-trades
Copy link
Contributor Author

I made this PR per @danischm 's comment here: #317 (comment)

@danischm danischm merged commit 4fc71c1 into CiscoDevNet:main Nov 3, 2025
3 checks passed
ChristopherJHart added a commit to ChristopherJHart/terraform-iosxe-nac-iosxe that referenced this pull request Nov 9, 2025
Completes the fix started in PR netascode#85 by updating the
iosxe_bgp_ipv4_unicast_vrf_neighbor resource to use the
update_source_interface_loopback attribute name, matching
the provider changes from CiscoDevNet/terraform-provider-iosxe#329.

The previous PR fixed iosxe_bgp_neighbor but missed updating
the VRF neighbor resource attributes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants