From 34ed127ec77f4b95aa636f453a50c2b3f563b383 Mon Sep 17 00:00:00 2001 From: Szymon Basan Date: Sat, 27 Jul 2024 13:04:26 +0200 Subject: [PATCH] restore changes in service insertion --- .../sdwan/service/service_insertion_attachment.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py b/catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py index b88b3c31..ecd49e17 100644 --- a/catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py +++ b/catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py @@ -17,7 +17,7 @@ "BIDIR", ] -ReachableInterfaceStr = Literal[ +ReachableInterfaceType = Literal[ "ipv4", "ipv6", "tunnel", @@ -28,7 +28,7 @@ "ipv6-service-icmp", ] -InterfaceStr = Literal[ +InterfaceType = Literal[ "fromservice", "toservice", ] @@ -90,8 +90,8 @@ class TrackingIP(BaseModel): class ReachableInterface(BaseModel): model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True, extra="forbid") - type: Global[ReachableInterfaceStr] = Field( - serialization_alias="reachableInterfaceStr", validation_alias="reachableInterfaceStr" + type: Global[ReachableInterfaceType] = Field( + serialization_alias="reachableInterfaceType", validation_alias="reachableInterfaceType" ) name: Optional[Union[Global[str], Variable]] = Field( serialization_alias="reachableInterfaceName", validation_alias="reachableInterfaceName" @@ -125,7 +125,7 @@ class InterfaceProperties(BaseModel): reachable_interface: Optional[ReachableInterface] = Field( serialization_alias="reachableInterface", validation_alias="reachableInterface", default=None ) - interface_type: Optional[Union[Global[InterfaceStr], Variable]] = Field( + interface_type: Optional[Union[Global[InterfaceType], Variable]] = Field( serialization_alias="interfaceType", validation_alias="interfaceType", default=None ) redundancy_type: Optional[Union[Global[RedundancyType], Variable]] = Field(