構成図-Graphviz

2011/05/19

参考URL

こんな感じ

ngsw_lan

graph lan_list{

    node[fontname = "Inconsolata" shape = circle];
    "WAN"[label = "WWW"];

    node[fontname = "Inconsolata" shape = circle];
    "192.168.1.1"[label = "Router\r192.168.1.1(GW)"];

        subgraph cluster_client {
            label = "Client";
            node[fontname = "Inconsolata" shape = circle];

            subgraph cluster_mac {
                label = "MacBook Pro";
                node[fontname = "Inconsolata" shape = box];
                "192.168.1.11"[label = "Mac-Cable\r192.168.1.11(en0)"];
                "192.168.1.12"[label = "Mac-Wifi\r192.168.1.12(en1)\rdown"];
            }

            subgraph cluster_kvm {
                label = "HP:192.168.1.99";
                node[fontname = "Inconsolata" shape = circle];
                "192.168.1.99"[label = "br0\r192.168.1.99"];

                subgraph cluster_guest {
                    label = "KVM";
                    node[fontname = "Inconsolata" shape = box];
                    "blue"[label = "blue\r192.168.1.101\r(eth0)"];
                    "young"[label = "young\r192.168.1.102\r(eth0)"];
                    "train"[label = "train\r192.168.1.103\r(eth0)"];
                }

                "192.168.1.99" -- "blue"[label = ""];
                "192.168.1.99" -- "young"[label = ""];
                "192.168.1.99" -- "train"[label = ""];
            }

        }

    "192.168.1.1" -- "192.168.1.99"; 
    "192.168.1.1" -- "192.168.1.11";
#    "192.168.1.1" -- "192.168.1.12";
    "WAN" -- "192.168.1.1";
}
"object"[label = "foo"];

な感じがあまりすっきり理解できてない。