5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-07 17:17:48 +03:00
pve-docs/images/pve_network_templates.tt
2018-09-05 08:41:03 +02:00

73 lines
2.7 KiB
Plaintext

[% BLOCK switch_ports %]
<table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
<tr>
<td fixedsize='TRUE' width='15' height='10'></td>
[% FOREACH p IN draw_ports %]
<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>
<td fixedsize='TRUE' width='1' height='10'></td>
[% END %]
<td fixedsize='TRUE' width='15' height='10'></td>
</tr>
</table>
[% END %]
[% MACRO switch BLOCK %]
[% id %] [
shape=plaintext
label=<
<table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
[% IF top_ports %]
<tr><td>[% PROCESS switch_ports draw_ports=top_ports %]</td></tr>
[% END %]
<tr><td><table color='#666666' BGCOLOR="#ABBABA" border='2' cellspacing='2' cellpadding='0' cellborder='0' style='rounded'>
<tr><td width='10'></td><td><font color='white' face='Helvetica'>[% title %]</font></td><td width='10'></td></tr>
[% IF subtitle %]
<tr><td width='10'></td><td><font color='white' face='Courier' point-size='12'>[% subtitle %]</font></td><td width='10'></td></tr>
[% END %]
</table></td></tr>
[% IF ports %]
<tr><td>[% PROCESS switch_ports draw_ports=ports %]</td></tr>
[% END %]
</table>>
]
[% END %]
[% MACRO server BLOCK %]
[% id %] [
shape=plaintext
label=<
<table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
[% IF top_ports %]
<tr><td>[% PROCESS switch_ports draw_ports=top_ports %]</td></tr>
[% END %]
<tr><td><table color='#666666' BGCOLOR="#FF9100" border='2' cellspacing='2' cellpadding='0' cellborder='0'>
<tr><td width='5'></td><td><font face='Helvetica' color='white'>[% title %]</font></td><td width='5'></td></tr>
[% IF subtitle %]
<tr><td width='5'></td><td><font face='Courier' color='white' point-size='12'>[% subtitle %]</font></td><td width='5'></td></tr>
[% END %]
</table></td></tr>
[% IF ports %]
<tr><td>[% PROCESS switch_ports draw_ports=ports %]</td></tr>
[% END %]
</table>>
]
[% END %]
[% MACRO interface BLOCK %]
[% id %] [
shape=plaintext
label=<
<table border='0' cellspacing='0' cellpadding='0' cellborder='0'>
<tr><td>[% PROCESS switch_ports draw_ports=ifname %]</td></tr>
[% IF cidr %]
<tr><td><table color='green' BGCOLOR="lightgreen" border='2' cellspacing='2' cellpadding='0' cellborder='0' style='rounded'>
<tr><td width='10'></td><td><font face='Courier' point-size='12'>[% cidr %]</font></td><td width='10'></td></tr>
</table></td></tr>
[% END %]
</table>>
]
[% END %]