feat(rack): populate provisional network topology (sw01, pp01, links)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sjat 2026-06-24 15:09:02 +02:00
parent 39644541f1
commit e54cbb3f0f
10 changed files with 77 additions and 0 deletions

View file

@ -2,6 +2,12 @@
_Auto-generated from `docs/hardware/*.md` — do not edit by hand. Run `make docs-index` after changing a file._
## Patch panels
| Hostname | Location | CPU | RAM | Storage | NIC | Status |
|---|---|---|---|---|---|---|
| [pp01](pp01.md) | | | | | | in-use |
## PDUs
| Hostname | Location | CPU | RAM | Storage | NIC | Status |
@ -19,3 +25,9 @@ _Auto-generated from `docs/hardware/*.md` — do not edit by hand. Run `make doc
| [mf02](mf02.md) | The pile | Intel Core i5-8500 @ 3.00GHz · 6c | 16 GB | 40 GB NVME | 1 GbE | staging |
| [mf03](mf03.md) | The pile | Intel Core i5-3570K @ 3.40GHz · 4c | 8 GB | 500 GB HDD | 1 GbE | staging |
| [mf04](mf04.md) | The pile | Intel Core i5-3570K @ 3.40GHz · 4c | 8 GB | 500 GB HDD | 1 GbE | staging |
## Switches
| Hostname | Location | CPU | RAM | Storage | NIC | Status |
|---|---|---|---|---|---|---|
| [sw01](sw01.md) | | | | | | in-use |

View file

@ -16,6 +16,8 @@ rack_face: front
power:
- { pdu: pdu01, outlet: 1 }
- { pdu: pdu02, outlet: 1 }
links:
- { local: eth0, peer: sw01, peer_port: 1, speed_gbps: 1 }
---
## Notes

View file

@ -17,6 +17,8 @@ u_height: 1
rack_face: front
power:
- { pdu: pdu01, outlet: 2 }
links:
- { local: eth0, peer: pp01, peer_port: 1, speed_gbps: 1 }
---
## Notes

View file

@ -17,6 +17,8 @@ u_height: 1
rack_face: front
power:
- { pdu: pdu01, outlet: 3 }
links:
- { local: eth0, peer: pp01, peer_port: 2, speed_gbps: 1 }
---
## Notes

View file

@ -16,6 +16,8 @@ u_height: 2
rack_face: front
power:
- { pdu: pdu01, outlet: 4 }
links:
- { local: eth0, peer: pp01, peer_port: 3, speed_gbps: 1 }
---
## Notes

View file

@ -16,6 +16,8 @@ u_height: 2
rack_face: rear
power:
- { pdu: pdu01, outlet: 5 }
links:
- { local: eth0, peer: pp01, peer_port: 4, speed_gbps: 1 }
---
## Notes

16
docs/hardware/pp01.md Normal file
View file

@ -0,0 +1,16 @@
---
hostname: pp01
kind: patch-panel
status: in-use
rack: rack01
rack_u: 24
u_height: 1
rack_face: front
ports: 24
links:
- { local: uplink, peer: sw01, peer_port: 24, speed_gbps: 1 }
---
## Notes
- Provisional placeholder patch panel. Devices patch in here; rear uplink to sw01.

14
docs/hardware/sw01.md Normal file
View file

@ -0,0 +1,14 @@
---
hostname: sw01
kind: switch
status: in-use
rack: rack01
rack_u: 10
u_height: 1
rack_face: front
ports: 24
---
## Notes
- Provisional placeholder switch. Port assignments are not yet real.

View file

@ -157,6 +157,10 @@
<text x="178" y="144" text-anchor="middle" fill="#ffffff">mf03 (U5U6)</text>
<rect x="349" y="121" width="238" height="38" rx="3" fill="#4c78a8" stroke="#333"/>
<text x="468" y="144" text-anchor="middle" fill="#ffffff">mf04 (U5U6)</text>
<rect x="59" y="221" width="238" height="18" rx="3" fill="#59a14f" stroke="#333"/>
<text x="178" y="234" text-anchor="middle" fill="#ffffff">sw01 (U10)</text>
<rect x="59" y="501" width="238" height="18" rx="3" fill="#9c755f" stroke="#333"/>
<text x="178" y="514" text-anchor="middle" fill="#ffffff">pp01 (U24)</text>
<rect x="12" y="40" width="16" height="960" fill="#e15759" stroke="#333"/>
<text x="20" y="520" text-anchor="middle" fill="#ffffff" transform="rotate(-90 20 520)">pdu01</text>
<rect x="588" y="40" width="16" height="960" fill="#e15759" stroke="#333"/>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -25,6 +25,25 @@ flowchart LR
pdu02 -->|outlet 1| mf00
```
## Network
```mermaid
flowchart LR
mf00["mf00"]
mf01["mf01"]
mf02["mf02"]
mf03["mf03"]
mf04["mf04"]
pp01["pp01<br/>patch-panel"]
sw01["sw01<br/>switch"]
mf00 -->|eth0 → p1 · 1G| sw01
mf01 -->|eth0 → p1 · 1G| pp01
mf02 -->|eth0 → p2 · 1G| pp01
mf03 -->|eth0 → p3 · 1G| pp01
mf04 -->|eth0 → p4 · 1G| pp01
pp01 -->|uplink → p24 · 1G| sw01
```
## Occupancy
| U | Device | Kind | Face | Status |
@ -34,5 +53,7 @@ flowchart LR
| U3 | [mf02](../../hardware/mf02.md) | server | front | staging |
| U5U6 | [mf03](../../hardware/mf03.md) | server | front | staging |
| U5U6 | [mf04](../../hardware/mf04.md) | server | rear | staging |
| U10 | [sw01](../../hardware/sw01.md) | switch | front | in-use |
| U24 | [pp01](../../hardware/pp01.md) | patch-panel | front | in-use |
| 0U | [pdu01](../../hardware/pdu01.md) | pdu | left | in-use |
| 0U | [pdu02](../../hardware/pdu02.md) | pdu | right | in-use |