mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-05-09 16:56:23 +00:00
pve_network_templates.tt: add macro for ethernet interfaces
This commit is contained in:
parent
c1801c524c
commit
ae803a00f1
@ -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 %]
|
||||
|
Loading…
Reference in New Issue
Block a user