summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bfd_topo3/test_bfd_topo3.dot
blob: 8d18783d545cae44412ae066181e5c6d2536a77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
## 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="bfd-topo3";

  # 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,
  ];
  r4 [
    shape=doubleoctagon
    label="r4",
    fillcolor="#f08080",
    style=filled,
  ];
  r5 [
    shape=doubleoctagon
    label="r5",
    fillcolor="#f08080",
    style=filled,
  ];
  r6 [
    shape=doubleoctagon
    label="r6",
    fillcolor="#f08080",
    style=filled,
  ];

  # Switches
  sw1 [
    shape=oval,
    label="sw1\n192.168.1.0/24\n2001:db8:1::/64",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  sw2 [
    shape=oval,
    label="sw2\n192.168.2.0/24\n2001:db8:2::/64",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  sw3 [
    shape=oval,
    label="sw3\n192.168.3.0/24\n2001:db8:3::/64",
    fillcolor="#d0e0d0",
    style=filled,
  ];
  sw4 [
    shape=oval,
    label="sw4\n192.168.4.0/24\n2001:db8:4::/64",
    fillcolor="#d0e0d0",
    style=filled,
  ];

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

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

  r4 -- sw3 [label="eth0\n.1"];
  r3 -- sw3 [label="eth2\n.2"];

  r4 -- sw4 [label="eth1\n.1"];
  r5 -- sw4 [label="eth0\n.2"];
  r6 -- sw4 [label="eth0\n.3"];
}