Skip to content

Conversation

@seconroy
Copy link
Collaborator

@seconroy seconroy commented Sep 2, 2025

Description

Add parameters to configure a single community list, depends on PR #512
Resolves issue #513

Types of Changes

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Build/CI change
  • Code quality improvement/refactoring/documentation (no functional changes)

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • All new and existing tests pass locally

@koval4ukav
Copy link
Collaborator

With the PR changes, the single community list configuration as well as import working as expected. (requires TF module update of relevant attribute)


# module.sdwan.sdwan_route_policy_definition.route_policy_definition["NS_Block_1"] will be imported
    resource "sdwan_route_policy_definition" "route_policy_definition" {
        default_action = "reject"
        description    = "NS_Block_1"
        id             = "494abc29-5025-4425-9e24-1228602e11a6"
        name           = "NS_Block_1"
        sequences      = [
...
            {
                base_action   = "accept"
                id            = 21
                ip_type       = "ipv4"
                match_entries = [
                    {
                        community_list_id         = "590d00c6-19b6-4764-99f6-7b7b16d51ef4"
                        community_list_match_flag = "or"
                        community_list_version    = 0
                        type                      = "community"
                    },
                ]
                name          = "Route"
            },
        ]
        type           = "vedgeRoute"
        version        = 0
    }

  # module.sdwan.sdwan_route_policy_definition.route_policy_definition["NS_Block_2"] will be imported
    resource "sdwan_route_policy_definition" "route_policy_definition" {
        default_action = "reject"
        description    = "NS_Block_2"
        id             = "ae6f5bb8-e718-4d2d-a65b-a0eae4a0b401"
        name           = "NS_Block_2"
        sequences      = [
...
            },
            {
                base_action   = "accept"
                id            = 21
                ip_type       = "ipv4"
                match_entries = [
                    {
                        community_list_ids        = [
                            "590d00c6-19b6-4764-99f6-7b7b16d51ef4",
                            "f8cf877e-fa24-459b-a7f7-ed5aa3429ac6",
                        ]
                        community_list_match_flag = "or"
                        community_list_versions   = [
                            "0",
                            "0",
                        ]
                        type                      = "advancedCommunity"
                    },
                ]
                name          = "Route"
            },
        ]
        type           = "vedgeRoute"
        version        = 0
    }

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