Skip to content

Commit

Permalink
Add uc-voice models that were added in 20.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski committed Dec 12, 2024
1 parent cbf08de commit d1d9d98
Show file tree
Hide file tree
Showing 10 changed files with 1,198 additions and 5 deletions.
9 changes: 8 additions & 1 deletion catalystwan/models/configuration/feature_profile/parcel.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

ParcelType = Literal[
"aaa",
"analog-interface",
"app-list",
"app-probe",
"appqoe",
Expand All @@ -32,6 +33,7 @@
"basic",
"bfd",
"bgp",
"call-routing",
"cellular-controller",
"cellular-profile",
"cflowd",
Expand All @@ -42,6 +44,7 @@
"data-ipv6-prefix",
"data-prefix",
"dhcp-server",
"digital-interface",
"dns",
"dsp-farm",
"expanded-community",
Expand Down Expand Up @@ -93,10 +96,13 @@
"security-urllist",
"security-zone",
"security",
"server-group",
"sig",
"sla-class",
"snmp",
"standard-community",
"strt",
"supervisory-disconnect",
"switchport",
"t1-e1-controller",
"tloc",
Expand All @@ -111,7 +117,8 @@
"unified/ssl-decryption-profile",
"unified/ssl-decryption",
"unified/url-filtering",
"wan/vpn",
"voice-global",
"voice-tenant" "wan/vpn",
"wan/vpn/interface/cellular",
"wan/vpn/interface/dsl-ipoe",
"wan/vpn/interface/dsl-pppoa",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,51 @@
from pydantic import Field
from typing_extensions import Annotated

from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.analog_interface import AnalogInterfaceParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.call_routing import CallRoutingParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.digital_interface import DigitalInterfaceParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.dsp_farm import DspFarmParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.media_profile import MediaProfileParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.server_group import ServerGroupParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.srst import SrstParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.translation_profile import TranslationProfileParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.translation_rule import TranslationRuleParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.trunk_group import TrunkGroupParcel

from .dsp_farm import DspFarmParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.voice_global import VoiceGlobalParcel
from catalystwan.models.configuration.feature_profile.sdwan.uc_voice.voice_tenant import VoiceTenantParcel

AnyUcVoiceParcel = Annotated[
Union[DspFarmParcel, MediaProfileParcel, TrunkGroupParcel, TranslationRuleParcel, TranslationProfileParcel],
Union[
AnalogInterfaceParcel,
CallRoutingParcel,
DigitalInterfaceParcel,
DspFarmParcel,
MediaProfileParcel,
ServerGroupParcel,
SrstParcel,
TranslationProfileParcel,
TranslationRuleParcel,
TrunkGroupParcel,
VoiceGlobalParcel,
VoiceTenantParcel,
],
Field(discriminator="type_"),
]

__all__ = (
"AnalogInterfaceParcel",
"AnyUcVoiceParcel",
"CallRoutingParcel",
"DigitalInterfaceParcel",
"DspFarmParcel",
"MediaProfileParcel",
"TrunkGroupParcel",
"ServerGroupParcel",
"SrstParcel",
"TranslationProfileParcel",
"TranslationRuleParcel",
"TrunkGroupParcel",
"VoiceGlobalParcel",
"VoiceTenantParcel",
)


Expand Down
Loading

0 comments on commit d1d9d98

Please sign in to comment.