Commit 8bd26fc
authored
refactor the code (#148)
* initial rework of setup task
* rework deploy task
* rework delete task
* rework sign task and add task for controller
* rework add task for validator
* rework cml connection to happen inside task
* optimize console connection
* combine add task for controller and validator
* minor enhancements to handle timeouts
* add integration tests
* update tests
* add tests for add task
* rework add task for edge
* fix ipv6 controller template
* rework add task for sdrouting
* bump version to 3.0.0b1 in pyproject.toml
* update readme
* update for 3.0.0b1
* add support for custom cpus/ram in add task
* rework backup task
* rework restore task
* optimize logging and error handling
* update tests
* fixes and code optimizations
* update docs
* formatting and minor enhancements
* add logout handling to CML connections in delete, images, and setup tasks
* add methods to enable MRF and create network hierarchy entry in ManagerClient
* refactor _patch_topology to use lambda for user substitution in configuration
* fix: improve backup loading by filtering extracted files for security
* refactor: simplify node extraction loop by using enumerate
* refactor: replace direct SSH handling with context manager for cleaner code
* refactor: replace ManagerClient instantiation with connect_manager for improved connection handling
* refactor: centralize node extraction logic with topology_nodes utility function
* refactor: extract manager mode validation logic into a separate function
* refactor: replace hardcoded node definitions with constants for improved maintainability
* refactor: replace custom topology dumping logic with utility function for consistency
* refactor: rename temporary directory variable for clarity in backup loading
* refactor: extract config group ID retrieval into a separate function for reusability
* minor fixes
* minor code simplifications and doc updates
* fix pipeline issues
* drop mypy
* minor fixes
* fix pipeline errors
* fix lint
* refactor: improve readability of SSH host key policy setting
* refactor: simplify comment on SSH host key policy setting
* updates based on PR review
* drop passlib dependency1 parent 45d3b4a commit 8bd26fc
1,297 files changed
Lines changed: 6772 additions & 413291 deletions
File tree
- .github/workflows
- catalyst_sdwan_lab
- data
- certs
- manager_configs
- v1_ipdual
- device_templates/template
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- v1_ipv4
- device_templates/template
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- v1_ipv6
- device_templates/template
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- v2_ipdual
- certificates
- config_groups/group
- device_templates
- attached
- template
- values
- feature_profiles/sdwan
- cli
- service
- system
- transport
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- v2_ipv4
- certificates
- config_groups/group
- device_templates
- attached
- template
- values
- feature_profiles/sdwan
- cli
- service
- system
- transport
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- v2_ipv6
- certificates
- config_groups/group
- device_templates
- attached
- template
- values
- feature_profiles/sdwan
- cli
- service
- system
- transport
- feature_templates
- inventory
- policy_lists
- App
- LocalApp
- SLA
- serial_files
- tasks
- src/catalyst_sdwan_lab
- data
- certs
- cml_lab_definition
- backup
- deploy
- cml_nodes_definition
- manager_configs
- controller_templates
- feature
- common
- dual
- v4
- v6
- serial_files
- tasks
- tests
- integration
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | | - | |
12 | 9 | | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
29 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
25 | 23 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 24 | + | |
| 25 | + | |
34 | 26 | | |
35 | 27 | | |
36 | | - | |
| 28 | + | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
41 | 33 | | |
42 | | - | |
43 | | - | |
44 | 34 | | |
45 | 35 | | |
46 | 36 | | |
| 37 | + | |
47 | 38 | | |
48 | | - | |
49 | | - | |
| 39 | + | |
50 | 40 | | |
51 | | - | |
52 | | - | |
| 41 | + | |
| 42 | + | |
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
3 | 19 | | |
4 | | - | |
5 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
6 | 25 | | |
7 | 26 | | |
8 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | | - | |
| 38 | + | |
31 | 39 | | |
32 | | - | |
| 40 | + | |
33 | 41 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 42 | + | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 48 | + | |
43 | 49 | | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
51 | 64 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 65 | + | |
55 | 66 | | |
56 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
57 | 71 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
61 | 79 | | |
62 | | - | |
| 80 | + | |
0 commit comments