AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080404135954.114d7839@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<sripal.surendiran@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	47F68DF7.2010806@onstor.com
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 4 Apr 2008 14:31:09 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Sripal <sripal.surendiran@onstor.com>
Subject: Re: Defect  SW-CLI Opened TED00023178
Message-ID: <20080404143109.572c2c2e@ripper.onstor.net>
In-Reply-To: <47F68DF7.2010806@onstor.com>
References: <ONSTOR-EXCH01fyBXmf00002f72@onstor-exch01.onstor.net>
	<47F68DF7.2010806@onstor.com>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Sripal,

If the you're not going to fix the macro (the sed commands), and you
want to take an approach like this, the correct way is to keep a copy
of the "default" version of the file in /onstor/etc, and have the
code copy it from there into /etc.

On Sat, 05 Apr 2008 01:52:15 +0530 Sripal
<sripal.surendiran@onstor.com> wrote:

> Andy,
> 
> I have completed the fix for this bug. Can you please review.
> 
> Perforce change id : 28681
> 
> [sripal@linux-compile ssc-initial-config]#p4 describe 28681
> Change 28681 by perforce@sripal-rdev on 2008/04/04 13:19:02 *pending*
> 
>         Bug fix for TED00023178.
>         Fix reverts back the /etc/network/interfaces file to default
>         settings on system config reset.
>         Reviewed by .
> 
> Affected files ...
> 
> ... //depot/dev/nfx-tree/code/ssc-nfxsh/linux.h#12 edit
> 
> Thanks,
> Sripal.
> 
> sripal.surendiran@onstor.com wrote:
> > id: TED00023178
> > Headline: system config reset does not reset the interface file if
> > the file is corrupted Severity: 3-Minor
> > Build: Submittal 16
> > Description: Before system config reset
> >
> > # cat /etc/network/interfaces 
> > # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
> > # /usr/share/doc/ifupdown/examples for more information.
> >
> > # The loopback network interface
> >  auto lo
> >  iface lo inet loopback
> >
> > # The primary network interface
> >  auto eth0
> >  iface eth0 inet static
> >    address 10.2.10.7
> >    netmask 255.255.0.0
> >
> > No entry for eth1
> >
> > After system config reset
> >
> > # cat /etc/network/interfaces 
> > # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
> > # /usr/share/doc/ifupdown/examples for more information.
> >
> > # The loopback network interface
> >  auto lo
> >  iface lo inet loopback
> >
> > # The primary network interface
> >  auto eth0
> >  iface eth0 inet dhcp
> > # address not_configured
> > # netmask not_configured
> >
> > Still no entry for eth1
> >
> > Release_Project: Cougar
> >
> >   
> 
