]> git.proxmox.com Git - pve-docs.git/commitdiff
pve_network_templates.tt: add macro for ethernet interfaces
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 13 Aug 2018 11:55:17 +0000 (13:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 16 Aug 2018 08:13:16 +0000 (10:13 +0200)
images/pve_network_templates.tt

index bf2ef89f0c25613892891a020022df0c69d4dcd1..9f061f6139f7a2939e7bbbbcd8d3e65dc70439fe 100644 (file)
 
     ]
 [% 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 %]