Skip to content

Instantly share code, notes, and snippets.

@Landrash
Last active February 7, 2018 15:55
Show Gist options
  • Save Landrash/cf528b46374a286190935a1abd3cde93 to your computer and use it in GitHub Desktop.
Save Landrash/cf528b46374a286190935a1abd3cde93 to your computer and use it in GitHub Desktop.
ICND1Discovery10.yaml
diagram:
fill: "snow"
rows: 5
columns: 12
gridLines: false
gridPaddingInner: .25
groupPadding: .75
title:
author: Fredrik Lindqvist
company: ICND1
color: black
logoFill: white
logoUrl: https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Cisco_logo.svg/200px-Cisco_logo.svg.png
text: ICND1 Discovery 10
subText: Networkmap for Discover 10
type: bar
stroke: black
# Set defaults for icons, groups, connections
iconDefaults: &iconDefaults
color: black
fill: white
stroke: black
iconFamily: cisco
groupDefaults: &groupDefaults
fill: "none"
color: black
stroke: black
textLocation: "topMiddle"
connectionDefaults: &connectionDefaults
color: "black"
stroke: "black"
noteDefaults: &noteDefaults
color: black
fill: white
stroke: black
xAlign: center
yAlign: center
icons:
pc1: {<<: *iconDefaults, icon: pc, x: 0, y: 4}
sw1: {<<: *iconDefaults, icon: workgroupswitch, x: "+2" }
r1: {<<: *iconDefaults, icon: router, x: "+2" }
pc2: {<<: *iconDefaults, icon: pc, x: 0, y: 0}
sw2: {<<: *iconDefaults, icon: workgroupswitch, x: "+2" }
r2: {<<: *iconDefaults, icon: router, x: "+2" }
srv1: {<<: *iconDefaults, icon: pc, x: 10, y: 2}
sw3: {<<: *iconDefaults, icon: workgroupswitch, x: "-2" }
r3: {<<: *iconDefaults, icon: router, x: "-2" }
groups:
10.10.1.0: { <<: *groupDefaults, name: 10.10.1.0/24, members: [pc1, sw1, r1] }
10.10.2.0: { <<: *groupDefaults, name: 10.10.2.0/24, members: [pc2, sw2, r2] }
10.10.3.0: { <<: *groupDefaults, name: 10.10.3.0/24, members: [srv1, sw3, r3] }
connections:
- { <<: *connectionDefaults, endpoints: [pc1:"E0/0 10.10.1.10", sw1:"E0/1"] }
- { <<: *connectionDefaults, endpoints: [sw1, r1] }
- { <<: *connectionDefaults, endpoints: [pc2,sw2] }
- { <<: *connectionDefaults, endpoints: [sw2,r2] }
- { <<: *connectionDefaults, endpoints: [srv1,sw3] }
- { <<: *connectionDefaults, endpoints: [sw3,r3] }
- { <<: *connectionDefaults, endpoints: [r1,r2] }
- { <<: *connectionDefaults, endpoints: [r2,r3] }
- { <<: *connectionDefaults, endpoints: [r3,r1] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment