]> git.proxmox.com Git - pve-docs.git/blob - images/pve_network_templates.tt
Precise certificate generation
[pve-docs.git] / images / pve_network_templates.tt
1 [% BLOCK switch_ports %]
2 <table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
3 <tr>
4 <td fixedsize='TRUE' width='15' height='10'></td>
5 [% FOREACH p IN draw_ports %]
6 <td port='[% p %]' fixedsize='TRUE' width='[% p.length*5+5 %]' height='10' BGCOLOR="#666666"><font face='Courier' point-size='8' color='white'>[% p %]</font></td>
7 <td fixedsize='TRUE' width='1' height='10'></td>
8 [% END %]
9 <td fixedsize='TRUE' width='15' height='10'></td>
10 </tr>
11 </table>
12 [% END %]
13
14 [% MACRO switch BLOCK %]
15 [% id %] [
16 shape=plaintext
17 label=<
18 <table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
19 [% IF top_ports %]
20 <tr><td>[% PROCESS switch_ports draw_ports=top_ports %]</td></tr>
21 [% END %]
22 <tr><td><table color='#666666' BGCOLOR="#ABBABA" border='2' cellspacing='2' cellpadding='0' cellborder='0' style='rounded'>
23 <tr><td width='10'></td><td><font color='white' face='Helvetica'>[% title %]</font></td><td width='10'></td></tr>
24 [% IF subtitle %]
25 <tr><td width='10'></td><td><font color='white' face='Courier' point-size='12'>[% subtitle %]</font></td><td width='10'></td></tr>
26 [% END %]
27 </table></td></tr>
28 [% IF ports %]
29 <tr><td>[% PROCESS switch_ports draw_ports=ports %]</td></tr>
30 [% END %]
31 </table>>
32
33 ]
34 [% END %]
35
36 [% MACRO server BLOCK %]
37 [% id %] [
38 shape=plaintext
39 label=<
40 <table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
41 [% IF top_ports %]
42 <tr><td>[% PROCESS switch_ports draw_ports=top_ports %]</td></tr>
43 [% END %]
44 <tr><td><table color='#666666' BGCOLOR="#FF9100" border='2' cellspacing='2' cellpadding='0' cellborder='0'>
45 <tr><td width='5'></td><td><font face='Helvetica' color='white'>[% title %]</font></td><td width='5'></td></tr>
46 [% IF subtitle %]
47 <tr><td width='5'></td><td><font face='Courier' color='white' point-size='12'>[% subtitle %]</font></td><td width='5'></td></tr>
48 [% END %]
49 </table></td></tr>
50 [% IF ports %]
51 <tr><td>[% PROCESS switch_ports draw_ports=ports %]</td></tr>
52 [% END %]
53 </table>>
54
55 ]
56 [% END %]
57
58 [% MACRO interface BLOCK %]
59 [% id %] [
60 shape=plaintext
61 label=<
62 <table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
63 <tr><td>[% PROCESS switch_ports draw_ports=ifname %]</td></tr>
64 [% IF cidr %]
65 <tr><td><table color='green' BGCOLOR="lightgreen" border='2' cellspacing='2' cellpadding='0' cellborder='0' style='rounded'>
66 <tr><td width='10'></td><td><font face='Courier' point-size='12'>[% cidr %]</font></td><td width='10'></td></tr>
67 </table></td></tr>
68 [% END %]
69 </table>>
70
71 ]
72 [% END %]