From: Ian Campbell Subject: Re: [PATCH OSSTEST] Allow per-host TFTP setup Date: Wed, 12 Feb 2014 14:53:24 +0000 Message-ID: <1392216804.13563.83.camel@kazak.uk.xensource.com> References: <1392214585-26602-1-git-send-email-ian.campbell@citrix.com> <21243.35358.349750.484725@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21243.35358.349750.484725@mariner.uk.xensource.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 Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-02-12 at 14:50 +0000, Ian Jackson wrote: > 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. > Ack. I'll put this on my todo list. Thanks, Ian.