Add $interfaces variable so that <interface> elements can be generated.
Andy Bavier [Wed, 12 Sep 2012 15:18:59 +0000 (11:18 -0400)]
lxc_template.xml

index 8e3e02d..68d08af 100644 (file)
       <source dir='/vservers/$name/'/>
       <target dir='/'/>
     </filesystem>
-    <interface type='network'>
-      <source network='default'/>
-      <target dev='veth$xid'/>
-    </interface>
+    $interfaces
     <console type='pty' />
   </devices>
 </domain>