From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 04/12] ts-xen-install: nodhcp: restructure Date: Tue, 11 Feb 2014 15:25:46 +0000 Message-ID: <1392132354-7594-5-git-send-email-ian.jackson@eu.citrix.com> References: <1392132354-7594-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 1WDFDo-0007z7-F5 for xen-devel@lists.xenproject.org; Tue, 11 Feb 2014 15:26:04 +0000 In-Reply-To: <1392132354-7594-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 Move target_editfile_root to contain all the meat of the function. This is useful because we're going to possibly want to read the input interfaces file twice. No functional change. Signed-off-by: Ian Jackson --- ts-xen-install | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/ts-xen-install b/ts-xen-install index fc96516..09c90ce 100755 --- a/ts-xen-install +++ b/ts-xen-install @@ -206,33 +206,37 @@ END } sub nodhcp () { - my ($iface,$bridgex); - my $physif= get_host_property($ho,'interface force','eth0'); - if ($initscripts_nobridge) { - $iface= 'xenbr0'; - $bridgex= <) { $suppress= 0 unless m/^\s+/; -- 1.7.10.4