[Multicast] Add Multipath Support in Terraform Module #102
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.
IP Multicast Multipath Support
Add Terraform mapping logic to translate schema's multicast multipath configurations into the Terraform provider's iosxe_multicast resource attributes.
Schema Mappings
Global Multicast Configuration:
multicast.multipath → multipath
multicast.multipath_s_g_hash → multipath_s_g_hash
VRF-Specific Multicast Configuration:
multicast.vrfs[].vrf → vrfs[].vrf
multicast.vrfs[].multipath → vrfs[].multipath
multicast.vrfs[].multipath_s_g_hash → vrfs[].multipath_s_g_hash
Changes
Add new multicast resource module
iosxe_multicast.tf:multipath(line 5) - Enable/disable multicast multipath globallymultipath_s_g_hash(line 6) - S-G hash algorithm selection (basic, next-hop-based)vrfs(lines 8-12) - VRF-specific multicast multipath configurationvrf(line 9) - VRF namemultipath(line 10) - Enable/disable multicast multipath in VRFmultipath_s_g_hash(line 11) - VRF-specific hash algorithmdepends_on(lines 14-16) - VRF dependency managementfor_each(line 2) - Multi-device deployment supportThis Enables Declarative Configuration of:
Version Requirements
IOS-XE 17.12.1 and later:
multipath- Enable/disable multicast multipathmultipath_s_g_hash- S-G hash algorithm (basic, next-hop-based)vrfs- VRF-specific multicast multipath configurationPlatform Notes:
Example Configuration
Global Multicast Multipath: