Skip to content

Instantly share code, notes, and snippets.

@cidrblock
Last active October 8, 2016 16:08
Show Gist options
  • Save cidrblock/16047a557381c164323e6f3d17b726ec to your computer and use it in GitHub Desktop.
Save cidrblock/16047a557381c164323e6f3d17b726ec to your computer and use it in GitHub Desktop.
#1:49
diagram:
fill: "#3d3935"
columns: 5
rows: 5
gridLines: false
title:
color: lightgrey
heightPercentage: 6
logoFill: lightgrey
stroke: lightgrey
subText: "A sample diagram showing various style and icon types."
text: "Sample Diagram"
type: "bar"
defaults: &defaults
color: "white"
fill: "#555555"
iconFamily: "azureEnterprise"
iconFill: "white"
iconStroke: "none"
stroke: "none"
cisco: &cisco
color: "#004BAF"
fill: "white"
iconFamily: "cisco"
iconFill: "#004BAF"
iconStrokeWidth: .25
stroke: "#004BAF"
preserveWhite: true
servers: &servers
<<: *defaults
fill: "#58585B"
icon: "webserver"
icons:
chddc1crt001: {<<: *cisco, x: 0, y: 4, icon: "router"}
chddc1crt004: {<<: *defaults, x: 2, y: 3, icon: "gateway", iconFill: "Gold"}
chddc1sfw005: {<<: *defaults, x: 2, y: 2, icon: "firewall", iconFill: "red"}
chddc1slb005: {<<: *defaults, x: 3, y: 1, icon: "loadbalancergeneric", iconFill: "lightblue"}
chddc1srt001: {<<: *defaults, x: 3, y: 2, icon: "gateway", iconFill: "green"}
firewall: {<<: *cisco, x: 4, y: 4, icon: "firewall"}
lx12300: {<<: *servers, x: 2, y: 0}
lx12301: {<<: *servers, x: 3, y: 0}
lx12302: {<<: *servers, x: 4, y: 0}
notes:
firewallComment: { x: 0, y: 2, h: 2, xAlign: center, yAlign: center, stroke: "blue", fill: "#000066",
text: "#NOTE:\n\nThis is a redundant HA pair. More text could go here to completely fill up this box." }
connection: &connection
color: "white"
stroke: "white"
strokeDashArray: "10,2"
connections:
- { <<: *connection, endpoints: ["chddc1crt001:eth0", "firewall:eth1"] }
- { <<: *connection, curve: curveStepBefore, endpoints: ["chddc1crt001:eth5", "chddc1crt004:eth6"] }
- { <<: *connection, endpoints: ["chddc1crt004", "chddc1sfw005"] }
- { <<: *connection, endpoints: ["chddc1sfw005:XXXXXX", "chddc1srt001:YYYYY"] }
- { <<: *connection, endpoints: ["chddc1srt001", "chddc1slb005:443"] }
- { <<: *connection, endpoints: ["chddc1srt001", "lx12302"] }
- { <<: *connection, endpoints: ["chddc1slb005:SNAT", "lx12300:80"] }
- { <<: *connection, endpoints: ["chddc1slb005:SNAT", "lx12301:80"] }
- { endpoints: ["firewallComment", "chddc1sfw005"], stroke: "blue" }
group: &group
- { color: "white", stroke: "lightgrey", fill: "rgba(0, 0, 0, 0.3)" }
groups:
- { <<: *group, name: "Chandler", members: ["chddc1crt004", "chddc1sfw005"] }
- { <<: *group, name: "Other group", textLocation: "leftMiddle", members: ["chddc1crt001", "firewall"] }
- { <<: *group, name: "Servers", textLocation: "bottomMiddle", members: ["lx12300", "lx12301", "lx12302"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment