This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add model * enchance readme * add system endpoints * update container * fix parcel base * remove aaa parcel from wrong dir * enchance model * fix parcel
- Loading branch information
Showing
6 changed files
with
700 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
catalystwan/api/configuration_groups/parcels/aaa_parcel.py
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
catalystwan/endpoints/configuration/feature_profile/sdwan/system.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# mypy: disable-error-code="empty-body" | ||
from typing import Optional | ||
|
||
from catalystwan.api.configuration_groups.parcel import _ParcelBase | ||
from catalystwan.endpoints import JSON, APIEndpoints, delete, get, post, put, versions | ||
from catalystwan.models.configuration.feature_profile.common import ( | ||
FeatureProfileCreationPayload, | ||
FeatureProfileCreationResponse, | ||
FeatureProfileInfo, | ||
GetFeatureProfilesPayload, | ||
ParcelId, | ||
SchemaTypeQuery, | ||
) | ||
from catalystwan.typed_list import DataSequence | ||
|
||
|
||
class SystemFeatureProfile(APIEndpoints): | ||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@get("/v1/feature-profile/sdwan/system/aaa/schema", resp_json_key="request") | ||
def get_sdwan_system_aaa_parcel_schema(self, params: SchemaTypeQuery) -> JSON: | ||
... | ||
|
||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@get("/v1/feature-profile/sdwan/system") | ||
def get_sdwan_system_feature_profiles( | ||
self, payload: Optional[GetFeatureProfilesPayload] | ||
) -> DataSequence[FeatureProfileInfo]: | ||
... | ||
|
||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@post("/v1/feature-profile/sdwan/system") | ||
def create_sdwan_system_feature_profile( | ||
self, payload: FeatureProfileCreationPayload | ||
) -> FeatureProfileCreationResponse: | ||
... | ||
|
||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@delete("/v1/feature-profile/sdwan/system/{system_id}") | ||
def delete_sdwan_system_feature_profile(self, system_id: str) -> None: | ||
... | ||
|
||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@post("/v1/feature-profile/sdwan/system/{system_id}/aaa") | ||
def create_aaa_profile_parcel_for_system(self, system_id: str, payload: _ParcelBase) -> ParcelId: | ||
... | ||
|
||
@versions(supported_versions=(">=20.9"), raises=False) | ||
@put("/v1/feature-profile/sdwan/system/{system_id}/aaa/{parcel_id}") | ||
def edit_aaa_profile_parcel_for_system(self, system_id: str, parcel_id: str, payload: _ParcelBase) -> ParcelId: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.