Skip to content

Instantly share code, notes, and snippets.

@hslabbert
Created February 23, 2018 17:56
Show Gist options
  • Save hslabbert/d19a4b4a0c4403d1b18bf6c8cd1a4d53 to your computer and use it in GitHub Desktop.
Save hslabbert/d19a4b4a0c4403d1b18bf6c8cd1a4d53 to your computer and use it in GitHub Desktop.
GraphViz record shape demo
graph "Record Shape demo" {
graph [ranksep=3.84 splines=line]
node [shape=record]
leaf1 [label="{{ <Port31> Port31 | <Port32> Port32 | <Port33> Port33 | <Port34> Port34 | <Port35> Port35 | <Port36> Port36 } | leaf1 | { <Port19> Port19 | <Port20> Port20 }}"]
leaf2 [label="{{ <Port31> Port31 | <Port32> Port32 | <Port33> Port33 | <Port34> Port34 | <Port35> Port35 | <Port36> Port36 } | leaf2 | { <Port19> Port19 | <Port20> Port20 }}"]
spine1 [label="{{ <Port19> Port19 | <Port20> Port20 | <Port21> Port21 | <Port22> Port22 | <Port23> Port23 | <Port24> Port24 | <Port25> Port25 | <Port26> Port26 | <Port27> Port27 | <Port28> Port28 | <Port29> Port29 | <Port30> Port30 | <Port31> Port31 | <Port32> Port32 | <Port33> Port33 | <Port34> Port34 | <Port35> Port35 | <Port36> Port36 } | spine1 | { <Port1> Port1 | <Port2> Port2 | <Port3> Port3 | <Port4> Port4 | <Port5> Port5 | <Port6> Port6 | <Port7> Port7 | <Port8> Port8 | <Port9> Port9 | <Port10> Port10 | <Port11> Port11 | <Port12> Port12 | <Port13> Port13 | <Port14> Port14 | <Port15> Port15 | <Port16> Port16 | <Port17> Port17 | <Port18> Port18 }}"]
spine2 [label="{{ <Port19> Port19 | <Port20> Port20 | <Port21> Port21 | <Port22> Port22 | <Port23> Port23 | <Port24> Port24 | <Port25> Port25 | <Port26> Port26 | <Port27> Port27 | <Port28> Port28 | <Port29> Port29 | <Port30> Port30 | <Port31> Port31 | <Port32> Port32 | <Port33> Port33 | <Port34> Port34 | <Port35> Port35 | <Port36> Port36 } | spine2 | { <Port1> Port1 | <Port2> Port2 | <Port3> Port3 | <Port4> Port4 | <Port5> Port5 | <Port6> Port6 | <Port7> Port7 | <Port8> Port8 | <Port9> Port9 | <Port10> Port10 | <Port11> Port11 | <Port12> Port12 | <Port13> Port13 | <Port14> Port14 | <Port15> Port15 | <Port16> Port16 | <Port17> Port17 | <Port18> Port18 }}"]
spine1:Port1:s -- leaf1:Port36:n
spine2:Port1:s -- leaf1:Port35:n
spine1:Port2:s -- leaf2:Port36:n
spine2:Port2:s -- leaf2:Port35:n
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment