[TRM] Implement VRF MDT Support in Terraform Provider #387
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.
This PR adds support for TRM VRF Multicast Distribution Tree (MDT) configuration in the Terraform Provider.
Overview
This PR adds comprehensive support for TRM VRF Multicast Distribution Tree (MDT) configuration to the
iosxe_vrfresource, enabling MVPN multicast routing with MDT trees for IOS-XE devices.This extends the
iosxe_vrfresource with 9 new MDT-related attributes that map to the following CLI commands:mdt default <addr>ipv4_mdt_default_addressmdt auto-discovery vxlanipv4_mdt_auto_discovery_vxlanmdt auto-discovery vxlan inter-asipv4_mdt_auto_discovery_vxlan_inter_asmdt auto-discovery interworking vxlan-pimipv4_mdt_auto_discovery_interworking_vxlan_pimmdt auto-discovery interworking vxlan-pim inter-asipv4_mdt_auto_discovery_interworking_vxlan_pim_inter_asmdt overlay use-bgpipv4_mdt_overlay_use_bgpmdt overlay use-bgp spt-onlyipv4_mdt_overlay_use_bgp_spt_onlymdt data <addr> <wildcard>ipv4_mdt_data_multicastmdt data threshold <thresh_rate>ipv4_mdt_data_thresholdTechnical Implementation
YANG Model Analysis
/Cisco-IOS-XE-native:native/vrf/definition[name=%s]/address-family/ipv4/mdt/*config-mvpn-mdt-groupingfromCisco-IOS-XE-ip.yangKey Design Decisions
XPath Notation: Used
xpathattribute to handle YANG choice/case structures properlyTest Exclusions: Added
exclude_test: trueto interworking attributesData Structures:
ipv4_mdt_data_multicastis a list supporting multiple group rangesExample Usage
Files Modified
gen/definitions/vrf.yaml- Added MDT attribute definitionsinternal/provider/model_iosxe_vrf.go- Generated model structsinternal/provider/resource_iosxe_vrf.go- Generated resource CRUD logicinternal/provider/resource_iosxe_vrf_test.go- Generated acceptance testsinternal/provider/data_source_iosxe_vrf.go- Generated data sourceinternal/provider/data_source_iosxe_vrf_test.go- Generated data source testsdocs/resources/vrf.md- Updated documentation with MDT examplesdocs/data-sources/vrf.md- Updated data source documentationexamples/resources/iosxe_vrf/resource.tf- Updated example configurationTesting
Compatibility
YANG model compatibility verified for both 17.12.1 and 17.15.1
Related Issues
Resolves: Issue 398 (internal)
Notes for Reviewers