Use $ips instead of $IP_ADDRESSES to keep variable names consistent
Update t/xt-create-xen-config.t to cope with the new variable
This commit is contained in:
@@ -3992,7 +3992,7 @@ sub runXenConfigCreation
|
||||
#
|
||||
# Make sure the template gets a list of all IPs
|
||||
#
|
||||
$ENV{ 'IP_ADDRESSES' } = $IP_ADDRESSES;
|
||||
$ENV{ 'ips' } = $IP_ADDRESSES;
|
||||
|
||||
|
||||
logprint("\nCreating Xen configuration file\n");
|
||||
|
||||
@@ -135,7 +135,7 @@ name = '{$hostname}'
|
||||
$br = ",bridge=$bridge"
|
||||
}
|
||||
|
||||
$OUT .= "vif = [ 'ip=$IP_ADDRESSES";
|
||||
$OUT .= "vif = [ 'ip=$ips";
|
||||
$OUT .= "$m";
|
||||
$OUT .= "$vn";
|
||||
$OUT .= "$br";
|
||||
|
||||
@@ -36,28 +36,28 @@ noMentionOf( "ip=",
|
||||
# is no mention of DHCP.
|
||||
#
|
||||
testOutputContains( "ip=192.168.1.1",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp' );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp' );
|
||||
noMentionOf( "dhcp",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp' );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp' );
|
||||
|
||||
#
|
||||
# SCSI based systems:
|
||||
#
|
||||
testOutputContains( "xvda",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp' );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp' );
|
||||
testOutputContains( "/dev/xvda1 ro",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp' );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp' );
|
||||
noMentionOf( "hda1",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp' );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp' );
|
||||
|
||||
|
||||
#
|
||||
# IDE based systems
|
||||
#
|
||||
testOutputContains( "hda1",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp', ide => 1 );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp', ide => 1 );
|
||||
testOutputContains( "/dev/hda1 ro",
|
||||
memory => 128, ip1 => '192.168.1.1', dir => '/tmp', ide => 1 );
|
||||
memory => 128, ips => '192.168.1.1', dir => '/tmp', ide => 1 );
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user