From 05b79f141750bb1d00dd126cee4486e7c027117b Mon Sep 17 00:00:00 2001 From: Jakub Krajewski Date: Fri, 19 Jul 2024 13:41:19 +0200 Subject: [PATCH] AnyNetworkHierarchy -> AnyNetworkHierarchyParcel --- catalystwan/models/configuration/feature_profile/parcel.py | 4 ++-- .../models/configuration/network_hierarchy/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/catalystwan/models/configuration/feature_profile/parcel.py b/catalystwan/models/configuration/feature_profile/parcel.py index f78601da..907eb0a6 100644 --- a/catalystwan/models/configuration/feature_profile/parcel.py +++ b/catalystwan/models/configuration/feature_profile/parcel.py @@ -18,7 +18,7 @@ from catalystwan.models.configuration.feature_profile.sdwan.system import AnySystemParcel from catalystwan.models.configuration.feature_profile.sdwan.topology import AnyTopologyParcel from catalystwan.models.configuration.feature_profile.sdwan.transport import AnyTransportParcel -from catalystwan.models.configuration.network_hierarchy import AnyNetworkHierarchy +from catalystwan.models.configuration.network_hierarchy import AnyNetworkHierarchyParcel from catalystwan.utils.model import resolve_nested_base_model_unions ParcelType = Literal[ @@ -130,7 +130,7 @@ AnyApplicationPriorityParcel, AnyTopologyParcel, AnyRoutingParcel, - AnyNetworkHierarchy, + AnyNetworkHierarchyParcel, ], Field(discriminator="type_"), ] diff --git a/catalystwan/models/configuration/network_hierarchy/__init__.py b/catalystwan/models/configuration/network_hierarchy/__init__.py index fdd0fe3c..d20c0f54 100644 --- a/catalystwan/models/configuration/network_hierarchy/__init__.py +++ b/catalystwan/models/configuration/network_hierarchy/__init__.py @@ -7,7 +7,7 @@ from .cflowd import CflowdParcel from .node import NodeInfo -AnyNetworkHierarchy = Annotated[ +AnyNetworkHierarchyParcel = Annotated[ Union[CflowdParcel], Field(discriminator="type_"), ]