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

Commit

Permalink
fix UX2Config validator
Browse files Browse the repository at this point in the history
  • Loading branch information
sbasan committed Mar 27, 2024
1 parent 0cd390f commit 0522e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions catalystwan/models/configuration/config_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class UX2Config(BaseModel):
@classmethod
def insert_parcel_type_from_headers(cls, values: Dict[str, Any]):
profile_parcels = values.get("profileParcels", [])
if not profile_parcels:
profile_parcels = values.get("profile_parcels", [])
for profile_parcel in profile_parcels:
profile_parcel["parcel"]["type_"] = profile_parcel["header"]["type"]
return values
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.31.2dev1"
version = "0.31.2dev2"
description = "Cisco Catalyst WAN SDK for Python"
authors = ["kagorski <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 0522e7c

Please sign in to comment.