Skip to content

Commit

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

ParcelType = Literal[
"aaa",
"analog-interface",
"app-list",
"app-probe",
"appqoe",
Expand All @@ -33,7 +32,6 @@
"basic",
"bfd",
"bgp",
"call-routing",
"cellular-controller",
"cellular-profile",
"cflowd",
Expand All @@ -44,7 +42,6 @@
"data-ipv6-prefix",
"data-prefix",
"dhcp-server",
"digital-interface",
"dns",
"dsp-farm",
"expanded-community",
Expand Down Expand Up @@ -96,13 +93,10 @@
"security-urllist",
"security-zone",
"security",
"server-group",
"sig",
"sla-class",
"snmp",
"standard-community",
"strt",
"supervisory-disconnect",
"switchport",
"t1-e1-controller",
"tloc",
Expand All @@ -117,8 +111,7 @@
"unified/ssl-decryption-profile",
"unified/ssl-decryption",
"unified/url-filtering",
"voice-global",
"voice-tenant" "wan/vpn",
"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,51 +5,25 @@
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 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

from .dsp_farm import DspFarmParcel

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

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


Expand Down
Loading

0 comments on commit 8c7b7eb

Please sign in to comment.