Skip to content

Instantly share code, notes, and snippets.

@takai404
Last active June 21, 2022 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takai404/1e84f9667287a99f2705cb9da945deeb to your computer and use it in GitHub Desktop.
Save takai404/1e84f9667287a99f2705cb9da945deeb to your computer and use it in GitHub Desktop.
STP network diagram for drawthe.net
diagram:
fill: "white"
gridLines: false
aspectRatio: "2:1"
gridPaddingInner: .35
columns: 4
rows: 3
title:
type: bar
color: black
fill: lightgray
logoFill: white
stroke: gray
text: STP
subText: ""
version: 0.2
author: takai404
logoUrl: null
heightPercentage: 10
# Set defaults for icons, connections
iconDefaults: &iconDefaults
color: black
fill: "none"
stroke: "none"
iconFamily: cisco
connectionDefaults: &connectionDefaults
color: "red"
stroke: "orange"
strokeWidth: 3
icons:
core1:
<<: *iconDefaults
icon: workgroupswitch
x: "1"
y: "2"
textLocation: topMiddle
core2:
<<: *iconDefaults
icon: workgroupswitch
x: "+1"
y: "+0"
textLocation: topMiddle
access1:
<<: *iconDefaults
icon: workgroupswitch
x: "-2"
y: "-1"
textLocation: topMiddle
access2:
<<: *iconDefaults
icon: workgroupswitch
x: "+1"
y: "+0"
textLocation: topMiddle
access3:
<<: *iconDefaults
icon: workgroupswitch
x: "+1"
y: "+0"
textLocation: topMiddle
access4:
<<: *iconDefaults
icon: workgroupswitch
x: "+1"
y: "+0"
textLocation: topMiddle
pc1:
<<: *iconDefaults
iconFamily: cisco
icon: fileserver
x: "-3"
y: "-1"
pc2:
<<: *iconDefaults
iconFamily: cisco
icon: fileserver
x: "+1"
y: "+0"
pc3:
<<: *iconDefaults
iconFamily: cisco
icon: fileserver
x: "+1"
y: "+0"
pc4:
<<: *iconDefaults
iconFamily: cisco
icon: fileserver
x: "+1"
y: "+0"
connections:
- { <<: *connectionDefaults, endpoints: ["core1:e0", "core2:e0"] }
- { <<: *connectionDefaults, endpoints: ["core1:e1", "access1:e1"] }
- { <<: *connectionDefaults, endpoints: ["core1:e2", "access3:e1"] }
- { <<: *connectionDefaults, endpoints: ["core2:e1", "access2:e1"] }
- { <<: *connectionDefaults, endpoints: ["core2:e2", "access4:e1"] }
- { <<: *connectionDefaults, endpoints: ["access1:e0", "access2:e0"] }
- { <<: *connectionDefaults, endpoints: ["access3:e0", "access4:e0"] }
- { <<: *connectionDefaults, endpoints: ["access1:e2", "pc1:eth0"] }
- { <<: *connectionDefaults, endpoints: ["access2:e2", "pc2:eth0"] }
- { <<: *connectionDefaults, endpoints: ["access3:e2", "pc3:eth0"] }
- { <<: *connectionDefaults, endpoints: ["access4:e2", "pc4:eth0"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment