## Color coding:
#########################
##  Main FRR: #f08080  red
##  Switches: #d0e0d0  gray
##  RIP:      #19e3d9  Cyan
##  RIPng:    #fcb314  dark yellow
##  OSPFv2:   #32b835  Green
##  OSPFv3:   #19e3d9  Cyan
##  ISIS IPv4 #fcb314  dark yellow
##  ISIS IPv6 #9a81ec  purple
##  BGP IPv4  #eee3d3  beige
##  BGP IPv6  #fdff00  yellow
##### Colors (see http://www.color-hex.com/)

graph template {
  label="msdp_mesh_topo1";

  # Routers
  r1 [
    shape=doubleoctagon,
    label="r1",
    fillcolor="#f08080",
    style=filled,
  ];
  r2 [
    shape=doubleoctagon
    label="r2",
    fillcolor="#f08080",
    style=filled,
  ];
  r3 [
    shape=doubleoctagon
    label="r3",
    fillcolor="#f08080",
    style=filled,
  ];
  h1 [
    shape=doubleoctagon
    label="h1",
    fillcolor="#4f4f4f",
    style=filled,
  ];
  h2 [
    shape=doubleoctagon
    label="h2",
    fillcolor="#4f4f4f",
    style=filled,
  ];

  # Switches
  s1 [
    shape=oval,
    label="sw1\n192.168.1.0/24",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  s2 [
    shape=oval,
    label="sw2\n192.168.2.0/24",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  s3 [
    shape=oval,
    label="sw3\n192.168.10.0/24",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  s4 [
    shape=oval,
    label="sw3\n192.168.30.0/24",
    fillcolor="#d0e0d0",
    style=filled,
  ];

  # Connections
  r1 -- s1 [label="eth0\n.2"];
  r2 -- s1 [label="eth0\n.1"];

  r2 -- s2 [label="eth1\n.1"];
  r3 -- s2 [label="eth0\n.2"];

  r1 -- s3 [label="eth1\n.1"];
  h1 -- s3 [label="eth0\n.2"];

  r3 -- s4 [label="eth1\n.1"];
  h2 -- s4 [label="eth0\n.2"];
}
