[TRM] Implement BGP VPNv4/VPNv6 Address Family Support in Terraform Provider #386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue(s)
Fixes: #419
Description
Add support for BGP VPNv4 and VPNv6 unicast address family configuration in the terraform-provider-iosxe.
This PR implements two new resources and data sources:
iosxe_bgp_address_family_vpnv4iosxe_bgp_address_family_vpnv6CLI Commands Supported
Changes Made
Manual Changes (2 files)
Auto-Generated Files (22 files)
Total: 24 files changed, 2427 insertions(+)
YANG Paths
VPNv4
VPNv6
Example Terraform Configuration
Testing
Test Environment
Test Results
Terraform Plan
Terraform Apply
Device Verification
✅ PASSED - Configuration applied correctly to device
Idempotency Test
✅ PASSED - No changes on second apply
Cleanup Test
✅ PASSED - All resources removed successfully
Version Compatibility
IOS-XE Version Support
Verification Method:
YANG Model Locations:
Cisco-IOS-XE-bgp.yang(lines 5794-5906)Cisco-IOS-XE-bgp.yang(lines 6042-6154)Prerequisites
Important: VPNv4 and VPNv6 address families require the BGP router instance to be created first. Use
depends_onto ensure proper resource creation order.Documentation
docs/directoryexamples/directoryChecklist
Related PRs
Schema and Module PRs will be submitted after this provider PR is merged:
Notes
This is a standard implementation supporting address family creation only.
Future enhancements may include:
The current implementation provides the foundation for L3VPN MPLS VPN routing with BGP control plane.