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__)