Hello Chad /Lynn, list

> On Mon, 2004-02-02 at 16:05, Lynn Avants wrote:
> > Mike Noyes wrote:
> > > Everyone,
> > > Chad's new config system (leaf-tools) is now in our src/config cvs
> > > directory. Please check it out and provide feedback. Thanks.
> > > 
> > > http://cvs.sourceforge.net/viewcvs.py/leaf/src/config/leaf-tools/
> > > 
> > 
> > There were some errors that Eric found/fixed with the last update
> > Chad made to the tool-set. I don't know that I have the changes myself.
> > We should probably contact Eric and get these changes updated to CVS.
I made some minor changes to cdb, the "errors" were allready fixed by chad.
My change was a -s option so we can use
cdb -s get network_interface_device 
and not get network/interface/device which returns network_interface_device.
The advantage with the net interface was that I can use the returned variable 
again.
I will run a diff to the cvs in the next days and report if there are any major 
differences.


tmpl in the cvs got some issues, with nested loops. 
I created a more limited but working tmpl I will update it in the next days, 
after removing some debugging tools.

 Sorry got rather limited time ( changed job for 2 days)

I experimented a lot with the concept and also changed the template format. 
The systems now works rather good for me.

Templates first 4 lines are comments.containing
# name of the file
# real location
# commands to perform after update
# tree(s) to use for the values.

those lines are split of and interpreted before running the conversion.
after filling in the template, an md5sum of the new config file and the old one 
are compared. If they are different the commands to perform are queued.
If the last file is transformed the command queue is sorted  "uniqued" and 
performed.
( commands can be svi network restart ,or whatever)

Regards
Eric Wolzak 
member of the Bering Crew



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to