From 4863862af53ab92b55d1bf5f6e8b068ac30df37c Mon Sep 17 00:00:00 2001 From: sbasan Date: Sat, 6 Apr 2024 13:43:05 +0200 Subject: [PATCH] add missing file --- .../sdwan/topology/__init__.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py diff --git a/catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py b/catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py new file mode 100644 index 00000000..ef6064fd --- /dev/null +++ b/catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py @@ -0,0 +1,26 @@ +from typing import List, Union +from typing_extensions import Annotated + +from pydantic import Field + +from catalystwan.models.configuration.feature_profile.sdwan.topology.hubspoke import HubSpokeParcel +from catalystwan.models.configuration.feature_profile.sdwan.topology.mesh import MeshParcel + + +AnyTopologyParcel = Annotated[ + Union[ + MeshParcel, + HubSpokeParcel, + ], + Field(discriminator="type_"), +] + +__all__ = [ + "AnyTopologyParcel", + "HubSpokeParcel" + "MeshParcel", +] + + +def __dir__() -> "List[str]": + return list(__all__)