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 ", ) 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", 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"