You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uv run invoke demo-dc-arista # Create Arista DC demo (branch: add-dc3)
18
+
uv run invoke demo-dc-cisco # Create Cisco DC demo (branch: add-dc2)
19
+
uv run invoke demo-dc-juniper # Create Juniper DC demo (branch: add-dc5)
20
+
21
+
# Development
22
+
uv run pytest # Run tests
23
+
uv run invoke lint # Run all linters (ruff, mypy)
24
+
uv run infrahubctl transform <name> --branch <branch> device=<device># Test transform
25
+
26
+
# Container management
27
+
uv run invoke stop # Stop containers
28
+
uv run invoke restart-containers # Restart without data loss
29
+
uv run invoke destroy # Remove containers and volumes
30
+
```
31
+
5
32
## Project Overview
6
33
7
34
This is **bundle-dc**, a comprehensive demonstration of design-driven network automation using [InfraHub](https://docs.infrahub.app). The project showcases composable data center and POP topology generation, configuration management, validation checks, and infrastructure-as-code patterns.
8
35
9
36
## Package Manager & Environment
10
37
11
38
-**Package Manager**: `uv` (required for all dependency operations)
12
-
-**Python Version**: 3.11 or 3.12
39
+
-**Python Version**: 3.10, 3.11, or 3.12 (3.10+ required, <3.13)
13
40
-**Setup**: `uv sync` to install all dependencies
14
41
15
42
## Common Commands
@@ -26,8 +53,9 @@ uv run invoke stop
26
53
# Destroy containers (removes volumes)
27
54
uv run invoke destroy
28
55
29
-
# Restart specific component
30
-
uv run invoke restart <component>
56
+
# Restart specific container (or all if no component specified)
57
+
uv run invoke restart-containers
58
+
uv run invoke restart-containers infrahub-server-1
31
59
```
32
60
33
61
### Schema and Data Loading
@@ -64,7 +92,6 @@ uv run infrahubctl branch create <branch-name>
64
92
uv run infrahubctl object load objects/dc/dc-arista-s.yml --branch <branch-name>
65
93
66
94
# Create a proposed change for a branch
67
-
uv run invoke create-pc --branch <branch-name>
68
95
uv run python scripts/create_proposed_change.py --branch <branch-name>
69
96
```
70
97
@@ -84,7 +111,7 @@ uv run pytest tests/unit/test_cloud_security_mock.py
84
111
uv run pytest tests/integration/
85
112
86
113
# Run all quality checks (ruff, mypy, pytest)
87
-
uv run invoke validate
114
+
uv run invoke lint
88
115
```
89
116
90
117
### Code Quality
@@ -97,7 +124,7 @@ uv run ruff check . --fix
97
124
uv run mypy .
98
125
99
126
# Full validation suite
100
-
uv run invoke validate
127
+
uv run invoke lint
101
128
```
102
129
103
130
### Bootstrap and Demo Workflows
@@ -139,7 +166,7 @@ This project follows InfraHub's SDK pattern with five core component types:
139
166
4.**Checks** (`checks/`) - Validate configurations and connectivity
0 commit comments