From: Ian Jackson Subject: Re: [PATCH OSSTEST] Allow per-host TFTP setup Date: Wed, 12 Feb 2014 14:50:06 +0000 Message-ID: <21243.35358.349750.484725@mariner.uk.xensource.com> References: <1392214585-26602-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392214585-26602-1-git-send-email-ian.campbell@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: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] Allow per-host TFTP setup"): > I run osstest against machines which are in both the XenServer and > XenClient administrative domains, and hence which have different > TFTP servers, accessible locally via different NFS mounted paths. > > Make it possible to specify various bits of TFTP path via > ~/.xen-osstest/config As I said in person: this would be much better if instead the host property referred to a named TFTP scope/server. Otherwise you have to set a whole bunch of host properties identically. Something like: * Replace references to $c{Tftp*} with a new indirection involving $ho. Perhaps just $ho->{Tftp}{*}. (Involves formulaic patch made with perl -i, perhaps.) * In selecthost, look up a TftpScope host property and then $c{TftpFoo_$scope} for each TftpFoo (except, I guess, when $scope is "default" or something). * In selectguest, copy a reference to the hosts's $ho->{Tftp}. > + my $tftpdiversion = get_host_property($ho, "TftpDiVersion", $c{TftpDiVersion}); This definitely shouldn't be a host property because it needs push gate version control. Ian.