pve_network_templates.tt: add macro for ethernet interfaces

This commit is contained in:
Dietmar Maurer 2018-08-13 13:55:17 +02:00
parent c1801c524c
commit ae803a00f1

View File

@ -54,3 +54,19 @@
]
[% 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='monospace' point-size='12'>[% cidr %]</font></td><td width='10'></td></tr>
</table></td></tr>
[% END %]
</table>>
]
[% END %]