This commit is contained in:
2026-04-08 16:37:19 +03:00
parent b9bcb52da8
commit 900550e71e
9 changed files with 54 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
,krosh,loki-nixos,07.04.2026 16:24,file:///home/krosh/.config/libreoffice/4;
+1
View File
@@ -0,0 +1 @@
,krosh,loki-nixos,08.04.2026 02:40,file:///home/krosh/.config/libreoffice/4;
+9
View File
@@ -0,0 +1,9 @@
Name,Role,Adapter,Interface,Network
H1,Host,Adapter1,eth1,NA
H1,Host,Adapter2,eth2,NB
H2,Host,Adapter1,eth1,NA
H3,Host,Adapter1,eth1,NA
H4,Host,Adapter1,eth1,NB
H5,Host,Adapter1,eth1,
H6,Host,Adapter1,eth1,
H6,Host,Adapter2,eth2,
1 Name Role Adapter Interface Network
2 H1 Host Adapter1 eth1 NA
3 H1 Host Adapter2 eth2 NB
4 H2 Host Adapter1 eth1 NA
5 H3 Host Adapter1 eth1 NA
6 H4 Host Adapter1 eth1 NB
7 H5 Host Adapter1 eth1
8 H6 Host Adapter1 eth1
9 H6 Host Adapter2 eth2
+9
View File
@@ -0,0 +1,9 @@
Name,Role,Adapter,Interface,Network
H1,Host,Adapter1,eth1,NA
H1,Host,Adapter2,eth2,NB
H2,Host,Adapter1,eth1,NA
H3,Host,Adapter1,eth1,NA
H4,Host,Adapter1,eth1,NB
H5,Host,Adapter1,eth1,NC
H6,Host,Adapter1,eth1,
H6,Host,Adapter2,eth2,NC
1 Name Role Adapter Interface Network
2 H1 Host Adapter1 eth1 NA
3 H1 Host Adapter2 eth2 NB
4 H2 Host Adapter1 eth1 NA
5 H3 Host Adapter1 eth1 NA
6 H4 Host Adapter1 eth1 NB
7 H5 Host Adapter1 eth1 NC
8 H6 Host Adapter1 eth1
9 H6 Host Adapter2 eth2 NC
+9
View File
@@ -0,0 +1,9 @@
Name,Role,Adapter,Interface,Network
H1,Host,Adapter1,eth1,NA
H1,Host,Adapter2,eth2,
H2,Host,Adapter1,eth1,NA
H3,Host,Adapter1,eth1,NA
H4,Host,Adapter1,eth1,
H5,Host,Adapter1,eth1,NC
H6,Host,Adapter1,eth1,
H6,Host,Adapter2,eth2,NC
1 Name Role Adapter Interface Network
2 H1 Host Adapter1 eth1 NA
3 H1 Host Adapter2 eth2
4 H2 Host Adapter1 eth1 NA
5 H3 Host Adapter1 eth1 NA
6 H4 Host Adapter1 eth1
7 H5 Host Adapter1 eth1 NC
8 H6 Host Adapter1 eth1
9 H6 Host Adapter2 eth2 NC
+4
View File
@@ -0,0 +1,4 @@
Name,Role,Adapter,Interface,Network,Mask,Device IP
PC1,Host,Adapter1,uplink,main,/24,10.0.12.1
PC2,Host,Adapter1,uplink,main,/24,10.0.12.2
PC3,Host,Adapter1,uplink,main,/24,10.0.12.3
1 Name Role Adapter Interface Network Mask Device IP
2 PC1 Host Adapter1 uplink main /24 10.0.12.1
3 PC2 Host Adapter1 uplink main /24 10.0.12.2
4 PC3 Host Adapter1 uplink main /24 10.0.12.3
+1
View File
@@ -0,0 +1 @@
,krosh,loki-nixos,07.04.2026 16:48,file:///home/krosh/.config/libreoffice/4;
+19
View File
@@ -0,0 +1,19 @@
Name,Role,Adapter,Interface,Slave Interfaces,Parent Interface,Network,VLAN,Network IP,Mask,Device IP
hostA,Host,Adapter1,eth1,,,netA,,10.0.0.0,/24,10.0.0.1
hostB,Host,Adapter1,eth1,,,netB,,10.0.0.0,/24,10.0.0.2
hostD,Host,Adapter1,eth1,,,netD,,10.0.0.0,/24,10.0.0.3
hostE,Host,Adapter1,eth1,,,netE,,10.0.0.0,/24,10.0.0.4
bright,Switch,Adapter1,eth1,,,netA,,,,
bright,Switch,Adapter2,eth2,,,netB,,,,
bright,Switch,Adapter3,eth3,,,netC,,,,
bright,Switch,,vlan5,,eth3,,5,,,
bright,Switch,,vlan7,,eth3,,7,,,
bright,Switch,,br5,"eth1,vlan5",,,,,,
bright,Switch,,br7,"eth2,vlan7",,,,,,
bleft,Switch,Adapter1,eth1,,,netD,,,,
bleft,Switch,Adapter2,eth2,,,netE,,,,
bleft,Switch,Adapter3,eth3,,,netC,,,,
bleft,Switch,,vlan5,,eth3,,5,,,
bleft,Switch,,vlan7,,eth3,,7,,,
bleft,Switch,,br5,"eth1,vlan5",,,,,,
bleft,Switch,,br7,"eth2,vlan7",,,,,,
1 Name Role Adapter Interface Slave Interfaces Parent Interface Network VLAN Network IP Mask Device IP
2 hostA Host Adapter1 eth1 netA 10.0.0.0 /24 10.0.0.1
3 hostB Host Adapter1 eth1 netB 10.0.0.0 /24 10.0.0.2
4 hostD Host Adapter1 eth1 netD 10.0.0.0 /24 10.0.0.3
5 hostE Host Adapter1 eth1 netE 10.0.0.0 /24 10.0.0.4
6 bright Switch Adapter1 eth1 netA
7 bright Switch Adapter2 eth2 netB
8 bright Switch Adapter3 eth3 netC
9 bright Switch vlan5 eth3 5
10 bright Switch vlan7 eth3 7
11 bright Switch br5 eth1,vlan5
12 bright Switch br7 eth2,vlan7
13 bleft Switch Adapter1 eth1 netD
14 bleft Switch Adapter2 eth2 netE
15 bleft Switch Adapter3 eth3 netC
16 bleft Switch vlan5 eth3 5
17 bleft Switch vlan7 eth3 7
18 bleft Switch br5 eth1,vlan5
19 bleft Switch br7 eth2,vlan7
+1 -1
View File
@@ -102,7 +102,7 @@ def _generate_picture(diagram: Path, output_path: Path) -> None:
)
res = subprocess.run(
["d2", f"--theme={THEME_NUMBER}", str(diagram)],
["d2", str(diagram)],
check=True,
capture_output=True,
)