Advertisement
ExcelToGraphviz

L4 Network Load Balancer Example

Oct 14th, 2022
2,433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
DOT 2.38 KB | Help | 0 0
  1. strict graph "main"
  2. {
  3.     layout="dot";
  4.     splines="line";
  5.     imagepath="C:\Users\Jeffr\OneDrive\Desktop";
  6.     rankdir="TB";
  7.     newrank="true";
  8.    
  9.     label="L4 Network Load Balancer"
  10.     labelloc="t"
  11.     "text1"[ shape="plaintext" fontname="Arial" fontsize="8" label="Blue objects are resources which need\lto be created\l" ];
  12.     "ip" -- "tp"[ color="Blue:White:Blue" penwidth="2" arrowhead="none" fontname="Arial" fontsize="10" label="Forwarding Rule" ];
  13.     "tp" -- "hc"[ weight="10" ];
  14.     subgraph "cluster_1" { fontname="Arial" fontsize="10" color="blue" style="rounded" label="Firewall\nRules"
  15.         "fw1"[ shape="point" label="" ];
  16.         "fw2"[ shape="point" label="" ];
  17.         "fw3"[ shape="point" label="" ];
  18.     }
  19.     {rank="same"; "ip"; "tp"; "fw1"; "vm1";}
  20.     {rank="same"; "fw2"; "vm2";}
  21.     {rank="same"; "fw3"; "vm3";}
  22.     "tp" -- "fw1";
  23.     "tp" -- "fw2";
  24.     "tp" -- "fw3";
  25.     "vm1" -- "vm2"[ style="invis" color="Invis" weight="10" ];
  26.     "vm2" -- "vm3"[ style="invis" color="Invis" weight="10" ];
  27.     "fw1" -- "vm1";
  28.     "fw2" -- "vm2";
  29.     "fw3" -- "vm3";
  30.     "fw1" -- "fw2"[ style="invis" color="Invis" ];
  31.     "fw2" -- "fw3"[ style="invis" color="Invis" ];
  32.     "fw3" -- "text2"[ style="invis" color="Invis" ];
  33.     "text2"[ shape="plaintext" fontname="Arial" fontsize="8" label="A Target pool requires a Health check\lresource.\l" ];
  34.     "ip"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="IP" xlabel="IP" ];
  35.     "vm1"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="VM" ];
  36.     "vm2"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="VM" ];
  37.     "vm3"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="VM" ];
  38.     "tp"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="TP" xlabel="\nTarget Pool (TP)" ];
  39.     "hc"[ shape="circle" height="0.25" fixedsize="True" style="filled" penwidth="1" fontname="Arial" fontsize="8" color="blue" fillcolor="white" label="HC" xlabel="Health Check (HC)" ];
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement