Skip to content

Commit 32b0364

Browse files
committed
rename dc design files
1 parent ffc1fed commit 32b0364

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
lines changed

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ uv run infrahubctl object load objects/events/ --branch main
5656
uv run infrahubctl branch create <branch-name>
5757

5858
# Load data to specific branch
59-
uv run infrahubctl object load objects/dc-2 --branch <branch-name>
59+
uv run infrahubctl object load objects/dc-cisco-s --branch <branch-name>
6060
```
6161

6262
### Testing and Validation
@@ -275,19 +275,19 @@ uv run infrahubctl object load objects/events/
275275
### Data Center Demo
276276
```bash
277277
# Automated approach
278-
./scripts/demo.sh design dc-2
278+
./scripts/demo.sh design dc-cisco-s
279279
280280
# Manual approach
281281
uv run infrahubctl branch create my-branch
282-
uv run infrahubctl object load objects/dc-2 --branch my-branch
282+
uv run infrahubctl object load objects/dc-cisco-s --branch my-branch
283283
# Then run generator via InfraHub UI: Actions → Generator Definitions → create_dc
284284
```
285285

286286
## Project Structure Details
287287

288288
- `checks/` - Validation checks for spine, leaf, edge, loadbalancer devices
289289
- `objects/bootstrap/` - Initial data (locations, platforms, roles)
290-
- `objects/dc-2/`, `dc-3.yml`, etc. - Demo scenario data
290+
- `objects/dc-cisco-s.yml`, `dc-arista-s.yml`, `dc-sonic-border-leafs.yml`, `dc-juniper-s.yml`, etc. - Demo scenario data
291291
- `objects/security/` - Security-related demo data
292292
- `objects/cloud_security/` - Cloud security examples
293293
- `objects/events/` - Event action definitions

docs/docs/concepts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Design-driven automation flips this model. Instead of defining devices, you defi
2828
4. Scaling means adjusting design parameters, not editing configs
2929
5. Architectural changes propagate automatically
3030

31-
The demo implements this pattern. When you load `objects/dc-2.yml`, you're not defining 20 devices. You're defining a **design specification** that a generator transforms into complete infrastructure.
31+
The demo implements this pattern. When you load `objects/dc-cisco-s.yml`, you're not defining 20 devices. You're defining a **design specification** that a generator transforms into complete infrastructure.
3232

3333
### Benefits
3434

docs/docs/developer-guide.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ infrahub-demo/
3838
│ ├── bootstrap/ # Initial data (locations, platforms, roles)
3939
│ ├── security/ # Security zones, policies, rules
4040
│ ├── cloud_security/ # Cloud security examples
41-
│ ├── dc-2.yml # DC-2 design data
42-
│ └── dc-3.yml # DC-3 design data
41+
│ ├── dc-cisco-s.yml # DC-2 design data (Cisco)
42+
│ ├── dc-arista-s.yml # DC-3 design data (Arista)
43+
│ ├── dc-sonic-border-leafs.yml # DC-4 design data (SONiC with border leafs)
44+
│ └── dc-juniper-s.yml # DC-5 design data (Juniper)
4345
├── generators/ # Topology generators
4446
│ ├── generate_dc.py # Data center generator
4547
│ ├── generate_pop.py # POP generator

docs/docs/user-walkthrough.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The DC-2 design is a pre-configured data center topology specification that defi
7676
Load the design data onto your branch:
7777

7878
```bash
79-
uv run infrahubctl object load objects/dc-2.yml --branch add-dc2
79+
uv run infrahubctl object load objects/dc-cisco-s.yml --branch add-dc2
8080
```
8181

8282
Watch the output for success messages. You should see confirmations that the topology data has been loaded.
@@ -279,7 +279,7 @@ Congratulations! You've completed the full workflow:
279279
Now that you understand the basic workflow, you can:
280280

281281
- **Explore variations** - Try creating DC-3 or a POP topology
282-
- **Modify designs** - Edit the objects/dc-2.yml file to change the topology
282+
- **Modify designs** - Edit the objects/dc-cisco-s.yml file to change the topology
283283
- **Add network services** - Create Layer 2 or Layer 3 services on top of the fabric
284284
- **Customize configurations** - Modify templates in the `templates/` directory
285285
- **Add validation checks** - Create custom checks in the `checks/` directory
@@ -324,7 +324,7 @@ You can also perform this entire workflow from the command line. Here's the abbr
324324
uv run infrahubctl branch create add-dc2
325325

326326
# Load design (this automatically triggers the generator)
327-
uv run infrahubctl object load objects/dc-2.yml --branch add-dc2
327+
uv run infrahubctl object load objects/dc-cisco-s.yml --branch add-dc2
328328

329329
# Monitor generator progress in the web interface (System → Tasks)
330330
# Create proposed change (easier via web interface)
File renamed without changes.

tests/integration/test_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_07_load_dc2_design(
175175
logging.info("Starting test: test_07_load_dc2_design")
176176

177177
load_dc2 = self.execute_command(
178-
f"infrahubctl object load objects/dc-2.yml --branch {default_branch}",
178+
f"infrahubctl object load objects/dc-cisco-s.yml --branch {default_branch}",
179179
address=client_main.config.address,
180180
)
181181

0 commit comments

Comments
 (0)