From df9426f7bc31dc140e34d66bab6819d226ed8c20 Mon Sep 17 00:00:00 2001 From: Jakub Krajewski Date: Mon, 23 Sep 2024 14:58:44 +0200 Subject: [PATCH 1/3] Fix bgp model --- .../models/configuration/feature_profile/sdwan/routing/bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py b/catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py index 5851599e..3965a0ab 100644 --- a/catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py +++ b/catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py @@ -500,7 +500,7 @@ class RoutingBgpParcel(_ParcelBase): extra="forbid", populate_by_name=True, ) - as_num: Union[Global[int], Global[str], Variable] = Field( + as_num: Union[Global[int], Variable] = Field( validation_alias=AliasPath("data", "asNum"), description="Set autonomous system number <1..4294967295> or ", ) From dc35e50f9ac32dd7ede649b76d955018955472d6 Mon Sep 17 00:00:00 2001 From: Jakub Krajewski Date: Tue, 24 Sep 2024 14:36:12 +0200 Subject: [PATCH 2/3] Fix missing model_cpnfig for wan ethernet --- .../feature_profile/sdwan/transport/wan/interface/ethernet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py b/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py index d5ced782..556573e4 100644 --- a/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py +++ b/catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py @@ -20,6 +20,7 @@ class Static(BaseModel): + model_config = ConfigDict(populate_by_name=True, extra="forbid") primary_ip_v6_address: Optional[StaticIPv6Address] = Field( default=None, validation_alias="primaryIpV6Address", From 1bf00f94049239d39a9fa2239c87f71f45754d92 Mon Sep 17 00:00:00 2001 From: Jakub Krajewski Date: Tue, 24 Sep 2024 14:38:38 +0200 Subject: [PATCH 3/3] Bump to dev5 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ec6760af..4235c136 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.35.4dev4" +version = "0.35.4dev5" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md"