lxc-containers: fix hwaddr templating

This commit is contained in:
Astro 2016-11-28 23:23:38 +01:00
parent 5b733dc069
commit 9b9b2fe575
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}