[pve-devel] [PATCH 2/4] add graphviz picture for our default bridged network setup

Dietmar Maurer dietmar at proxmox.com
Tue Aug 14 13:56:01 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 images/default-network-setup-bridge.tt | 59 ++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 images/default-network-setup-bridge.tt

diff --git a/images/default-network-setup-bridge.tt b/images/default-network-setup-bridge.tt
new file mode 100644
index 0000000..7065aea
--- /dev/null
+++ b/images/default-network-setup-bridge.tt
@@ -0,0 +1,59 @@
+[% PROCESS pve_network_templates.tt %]
+
+graph default_network_setup_bridge {
+    #splines=line
+    node [shape=record];
+    edge [];
+
+    [% server(id="gateway" title="Gateway, DHCP", subtitle="192.168.10.1" top_ports='eno1') %]
+    
+    [% switch(
+        id="tor01",
+	title="Top of Rack Switch",
+	ports=[1,2,3])
+    %]
+
+    tor01:1 -- gateway:eno1
+    tor01:2 -- node1_vmbr0:eno1
+    tor01:3 -- node2_vmbr0:eno1
+
+    subgraph cluster_node1 {
+        label="Node: proxmox1" labeljust=l labelloc=b
+
+	[% switch(
+           id="node1_vmbr0",
+	   title="vmbr0",
+	   subtitle="192.168.10.2/24"
+	   top_ports="eno1"
+	   ports="tap100i0"
+	   )
+        %]
+
+
+	[% server(id="vm100" title="VM 100" subtitle="192.168.10.100" top_ports='ens18') %]
+
+	node1_vmbr0:tap100i0 -- vm100:ens18
+
+    }
+
+    subgraph cluster_node2 {
+        label="Node: proxmox2" labeljust=l labelloc=b
+
+	[% switch(
+           id="node2_vmbr0",
+	   title="vmbr0",
+	   subtitle="192.168.10.3/24"
+	   top_ports="eno1"
+	   ports=["tap200i0", "tap201i0"]
+	   )
+        %]
+
+
+	[% server(id="vm200" title="VM 200" subtitle="192.168.10.200" top_ports='ens18') %]
+	[% server(id="vm201" title="VM 201" subtitle="192.168.10.201" top_ports='ens18') %]
+
+	node2_vmbr0:tap200i0 -- vm200:ens18
+	node2_vmbr0:tap201i0 -- vm201:ens18
+
+    }
+}
-- 
2.11.0




More information about the pve-devel mailing list