From 9c102bc9ca0d1bdee623643263b79758ea17bb7f Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 11 Sep 2006 16:14:37 +0000 Subject: [PATCH] 2006-09-11 16:14:37 by steve BUGFIX: vif=xxx, is broken - we only add the "," when using mac addresses --- etc/xm.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/xm.tmpl b/etc/xm.tmpl index a558f42..62365fe 100644 --- a/etc/xm.tmpl +++ b/etc/xm.tmpl @@ -61,10 +61,11 @@ name = '{$hostname}' my $m = ''; if ( $mac ) { - $m = "mac=$mac" + $m = ",mac=$mac" } - $OUT .= "vif = [ 'ip=$ip1,$m' ]"; + $OUT .= "vif = [ 'ip=$ip1"; + $OUT .= "$m' ]"; } }