From ae803a00f1eb845a6f84c61f9476edda196e729e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 13 Aug 2018 13:55:17 +0200 Subject: [PATCH] pve_network_templates.tt: add macro for ethernet interfaces --- images/pve_network_templates.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/images/pve_network_templates.tt b/images/pve_network_templates.tt index bf2ef89..9f061f6 100644 --- a/images/pve_network_templates.tt +++ b/images/pve_network_templates.tt @@ -54,3 +54,19 @@ ] [% END %] + +[% MACRO interface BLOCK %] +[% id %] [ + shape=plaintext + label=< + + + [% IF cidr %] + + [% END %] +
[% PROCESS switch_ports draw_ports=ifname %]
+ +
[% cidr %]
> + + ] +[% END %]