lxc-containers: fix hwaddr templating
This commit is contained in:
parent
5b733dc069
commit
9b9b2fe575
|
@ -14,7 +14,7 @@ lxc.kmsg = 0
|
|||
{%- for net, conf in container['interfaces'].items() %}
|
||||
lxc.network.type={{ conf['type'] }}
|
||||
lxc.network.flags=up
|
||||
lxc.network.hwaddr={{ hwaddr_prefix }}:{{ n.__str()__.rjust(2, '0') }}
|
||||
lxc.network.hwaddr={{ hwaddr_prefix }}:{{ n.__str__().rjust(2, '0') }}
|
||||
{%- if conf['type'] == 'veth' %}
|
||||
lxc.network.veth.pair={{ id }}-{{ net }}
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue