From 1098472264726e2f858f6990f58d50bbf5c8258d Mon Sep 17 00:00:00 2001 From: Szymon Basan Date: Tue, 12 Nov 2024 07:53:48 +0100 Subject: [PATCH] fix: route-policy community action entry --- .../feature_profile/sdwan/service/route_policy.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py b/catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py index 14783843..e5de4e1a 100644 --- a/catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py +++ b/catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py @@ -146,7 +146,7 @@ class SetCommunity(BaseModel): populate_by_name=True, ) additive: Union[Global[bool], Default[bool]] = as_default(False) - community: Optional[Union[Global[str], Global[Community], Variable]] = None + community: Optional[Union[Global[List[str]], Variable]] = None class Accept(BaseModel): @@ -333,8 +333,8 @@ def associate_reject_action(self) -> None: def associate_as_path_action(self, prepend: List[int]) -> None: self._accept_action.as_path = SetAsPath.from_list(prepend) - def associate_community_action(self, additive: bool, community: str) -> None: - set_community = SetCommunity(additive=as_global(additive), community=as_global(community)) + def associate_communities_action(self, additive: bool, communities: List[str]) -> None: + set_community = SetCommunity(additive=as_global(additive), community=as_global(communities)) self._accept_action.community = set_community def associate_community_variable_action(self, additive: bool, community: str) -> None: diff --git a/pyproject.toml b/pyproject.toml index 86eaa069..7ac6436b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.36.0dev5" +version = "0.36.0dev6" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md"