This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ce4d09
commit 034f7e3
Showing
2 changed files
with
21 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/mirror.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,18 @@ | ||
# Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
from typing import List, Literal | ||
|
||
from pydantic import AliasPath, BaseModel, ConfigDict, Field | ||
|
||
from catalystwan.api.configuration_groups.parcel import Global, _ParcelBase | ||
|
||
|
||
class MirrorEntry(BaseModel): | ||
model_config = ConfigDict(populate_by_name=True) | ||
remote_dest_ip: Global[str] = Field(validation_alias="remoteDestIp", serialization_alias="remoteDestIp") | ||
source_ip: Global[str] = Field(validation_alias="sourceIp", serialization_alias="sourceIp") | ||
|
||
|
||
class MirrorParcel(_ParcelBase): | ||
type_: Literal["mirror"] = Field(default="mirror", exclude=True) | ||
entries: List[MirrorEntry] = Field(validation_alias=AliasPath("data", "entries"), min_items=1, max_items=1) |