]> git.proxmox.com Git - mirror_frr.git/commitdiff
template: change the default dot file
authorRafael Zalamena <rzalamena@gmail.com>
Tue, 27 Jun 2017 23:01:16 +0000 (20:01 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
Make it look like the RIP(ng) dot files with authentic shapes and colors
for routers and switches.

tests/topotests/GUIDELINES.md
tests/topotests/example-test/test_template.dot
tests/topotests/example-test/test_template.jpg

index 249837a06b85ce2216d60d9f4273745d0a00e877..5f745ae7cebc2d821911cad826d9aecad3512734 100644 (file)
@@ -123,22 +123,30 @@ graph template {
 
        # Routers
        r1 [
-               shape=octagon,
+               shape=doubleoctagon,
                label="r1",
+               fillcolor="#f08080",
+               style=filled,
        ];
        r2 [
-               shape=octagon
+               shape=doubleoctagon,
                label="r2",
+               fillcolor="#f08080",
+               style=filled,
        ];
 
        # Switches
        s1 [
-               shape=box,
+               shape=oval,
                label="s1\n192.168.0.0/24",
+               fillcolor="#d0e0d0",
+               style=filled,
        ];
        s2 [
-               shape=box,
+               shape=oval,
                label="s2\n192.168.1.0/24",
+               fillcolor="#d0e0d0",
+               style=filled,
        ];
 
        # Connections
index 26def69597c413fc41cfcee7dbbaa3f7b05a8c24..b5e12020ce9ccbd8a34ac3929dfd08f56c6cbe1e 100644 (file)
@@ -1,24 +1,46 @@
+## 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="template";
 
        # Routers
        r1 [
-               shape=octagon,
+               shape=doubleoctagon,
                label="r1",
+               fillcolor="#f08080",
+               style=filled,
        ];
        r2 [
-               shape=octagon
+               shape=doubleoctagon
                label="r2",
+               fillcolor="#f08080",
+               style=filled,
        ];
 
        # Switches
        s1 [
-               shape=box,
+               shape=oval,
                label="s1\n192.168.0.0/24",
+               fillcolor="#d0e0d0",
+               style=filled,
        ];
        s2 [
-               shape=box,
+               shape=oval,
                label="s2\n192.168.1.0/24",
+               fillcolor="#d0e0d0",
+               style=filled,
        ];
 
        # Connections
index d8d77993942f0b9dfd5d5bd358820dcdf84e312b..b01ef73f5a700ca3d19470c78c885dccc579441a 100644 (file)
Binary files a/tests/topotests/example-test/test_template.jpg and b/tests/topotests/example-test/test_template.jpg differ