Skip to content

Commit

Permalink
Merge pull request #12 from cisco-en-programmability/fix/ethernet-vrrp
Browse files Browse the repository at this point in the history
Fix/ethernet vrrp | Every version has snake case in group_id
  • Loading branch information
jpkrajewski authored Dec 4, 2024
2 parents 5664a66 + e23f0cf commit 534b1de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from uuid import UUID

from pydantic import (
AliasChoices,
AliasPath,
BaseModel,
ConfigDict,
Expand Down Expand Up @@ -103,10 +102,7 @@ class VrrpIPv6(BaseModel):
class VrrpIPv4(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True, extra="forbid")

group_id: Annotated[
Union[Variable, Global[int]],
VersionedField(versions="<=20.12", serialization_alias="group_id"),
] = Field(serialization_alias="groupId", validation_alias=AliasChoices("groupId", "group_id"))
group_id: Union[Variable, Global[int]]
priority: Union[Variable, Global[int], Default[int]] = Default[int](value=100)
timer: Union[Variable, Global[int], Default[int]] = Default[int](value=1000)
track_omp: Union[Global[bool], Default[bool]] = Field(
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.40.0dev3"
version = "0.40.0dev4"
description = "Cisco Catalyst WAN SDK for Python"
authors = ["kagorski <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 534b1de

Please sign in to comment.