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.
dev-uxmt: convert and push hubspoke/mesh, fix bugs, bump version (#701)
* prep work * move acl parcel to common * move acl parcel to acl, fix resolver * add ipv4acl model and integration tests * fix unit tests * add ipv4acl converter, add integration tests for service profile * add original name to header before conversion * add network-hierarchy endpoints * collect network hierarchy during migration flow * fix typo in serialization alias * push/rollback for topology items, emit vpn, site, region assignemt during conversion * hubspoke converter draft * fix hubspoke converter 2 * Remove duplicated feature templates, add unit test * Add interface to ft list * Change logic to remove all unused templates, not only copied (#706) * Change logic to remove all unused templates, not only copied * Fix. take name from deepcopied model * push/rollback hubspoke mesh parcels * fix bugs, bump version --------- Co-authored-by: Jakub Krajewski <[email protected]> Co-authored-by: Jakub Krajewski <[email protected]>
- Loading branch information
1 parent
cc10ecc
commit 77f7244
Showing
36 changed files
with
1,786 additions
and
669 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,13 @@ | ||
# Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
# mypy: disable-error-code="empty-body" | ||
from catalystwan.endpoints import APIEndpoints, get, versions | ||
from catalystwan.models.configuration.network_hierarchy import NodeInfo | ||
from catalystwan.typed_list import DataSequence | ||
|
||
|
||
class NetworkHierarchy(APIEndpoints): | ||
@get("/v1/network-hierarchy") | ||
@versions(">=20.10") | ||
def list_nodes(self) -> DataSequence[NodeInfo]: | ||
... |
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,25 @@ | ||
# Copyright 2024 Cisco Systems, Inc. and its affiliates | ||
|
||
# mypy: disable-error-code="empty-body" | ||
from uuid import UUID | ||
|
||
from catalystwan.endpoints import APIEndpoints, delete, get, post, versions | ||
from catalystwan.models.configuration.topology_group import TopologyGroup, TopologyGroupId | ||
from catalystwan.typed_list import DataSequence | ||
|
||
|
||
class TopologyGroupEndpoints(APIEndpoints): | ||
@post("/v1/topology-group") | ||
@versions(">=20.12") | ||
def create_topology_group(self, payload: TopologyGroup) -> TopologyGroupId: | ||
... | ||
|
||
@get("/v1/topology-group") | ||
@versions(">=20.12") | ||
def get_all(self) -> DataSequence[TopologyGroupId]: | ||
... | ||
|
||
@delete("/v1/topology-group/{group_id}") | ||
@versions(">=20.12") | ||
def delete(self, group_id: UUID) -> None: | ||
... |
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
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
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
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.