From: Ian Jackson Subject: [OSSTEST PATCH 04/32] pxe setup: Define %name% in templates Date: Tue, 24 Mar 2015 19:02:27 +0000 Message-ID: <1427223775-8592-5-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU6U-0008SM-F8 for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:06 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 1 + README | 1 + 2 files changed, 2 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 8754e22..5677946 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -2017,6 +2017,7 @@ sub host_pxefile ($) { $eth =~ s/\-$//; $v{'etherhyph'} = $eth; } + $v{'name'} = $ho->{Name}; if (defined $ho->{IpStatic}) { my $ip = $ho->{IpStatic}; $ip =~ s/\b0+//g; diff --git a/README b/README index 0a0242c..fe0abb2 100644 --- a/README +++ b/README @@ -453,6 +453,7 @@ TftpPxeTemplates List (space-separated) of template filenames for writing The templates contain variable substitutions %var% The variables are the runvars plus + name hostname (short name as in resource databases etc.) ether host/guest mac address etherhyp ... in lowercase hyphen-separated form (for pxelinux) ipaddr host/guest static ip address -- 1.7.10.4