Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix: route-policy community action entry
Browse files Browse the repository at this point in the history
  • Loading branch information
sbasan committed Nov 12, 2024
1 parent 7ab5ce3 commit 1098472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <kagorski@cisco.com>"]
readme = "README.md"
Expand Down

0 comments on commit 1098472

Please sign in to comment.