examples
This commit is contained in:
@@ -0,0 +1 @@
|
||||
,krosh,loki-nixos,07.04.2026 16:24,file:///home/krosh/.config/libreoffice/4;
|
||||
@@ -0,0 +1 @@
|
||||
,krosh,loki-nixos,08.04.2026 02:40,file:///home/krosh/.config/libreoffice/4;
|
||||
@@ -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,
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
,krosh,loki-nixos,07.04.2026 16:48,file:///home/krosh/.config/libreoffice/4;
|
||||
@@ -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",,,,,,
|
||||
|
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user