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

Commit

Permalink
Fix priority type
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski committed Nov 12, 2024
1 parent 1098472 commit 93a5e83
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from catalystwan.api.configuration_groups.parcel import Default, Global, Variable, _ParcelBase, as_default, as_global

Priority = Literal["information", "debugging", "notice", "warn", "error", "critical", "alert", "emergency"]
Priority = Literal["informational", "debugging", "notice", "warn", "error", "critical", "alert", "emergency"]
TlsVersion = Literal["TLSv1.1", "TLSv1.2"]
AuthType = Literal["Server", "Mutual"]
CypherSuite = Literal[
Expand Down Expand Up @@ -40,7 +40,9 @@ class Server(BaseModel):
source_interface: Union[Global[str], Default[None], Variable] = Field(
default=Default[None](value=None), serialization_alias="sourceInterface", validation_alias="sourceInterface"
)
priority: Union[Global[Priority], Default[Priority], Variable] = Field(default=as_default("information", Priority))
priority: Union[Global[Priority], Default[Priority], Variable] = Field(
default=as_default("informational", Priority)
)
enable_tls: Union[Global[bool], Default[bool], Variable] = Field(
default=as_default(False), serialization_alias="tlsEnable", validation_alias="tlsEnable"
)
Expand Down Expand Up @@ -109,7 +111,7 @@ def add_ipv4_server(
name: str,
vpn: int = 0,
source_interface: Optional[str] = None,
priority: Priority = "information",
priority: Priority = "informational",
enable_tls: bool = False,
custom_profile: bool = False,
profile_properties: Optional[str] = None,
Expand All @@ -127,7 +129,7 @@ def add_ipv6_server(
name: str,
vpn: int = 0,
source_interface: Optional[str] = None,
priority: Priority = "information",
priority: Priority = "informational",
enable_tls: bool = False,
custom_profile: bool = False,
profile_properties: Optional[str] = None,
Expand All @@ -145,7 +147,7 @@ def _create_server_item(
name: str,
vpn: int,
source_interface: Optional[str] = None,
priority: Priority = "information",
priority: Priority = "informational",
enable_tls: bool = False,
custom_profile: bool = False,
profile_properties: Optional[str] = None,
Expand Down

0 comments on commit 93a5e83

Please sign in to comment.