[Xorp-cvs] XORP cvs commit: xorp/rtrmgr

Pavlin Radoslavov pavlin@icir.org
Tue, 20 Sep 2005 15:03:46 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-09-20 15:03:46 UTC

XORP CVS repository


Modified files:
	rtrmgr        master_conf_tree.cc master_conf_tree.hh 
	              xorpsh_main.cc xrl_rtrmgr_interface.cc 
	              xrl_rtrmgr_interface.hh 

Log message:
	* Refactor the mechanism for updating the configuration: now the
	  configuration deltas and deletions strings are recomputed by the
	  rtrmgr before they are send back to the xorpsh clients. Previously,
	  the rtrmgr used the deltas and deletions strings as they were
	  received from the editing xorpsh client.
	
	  With the new modification, now the rtrmgr can properly propagate
	  any internal modifications to the configuration tree. For example,
	  now we can use template statements like the following to internally
	  generate the values of some of the leaf nodes:
	
	pw {
	    password: txt = "";
	    encrypted-password: txt = "";
	}
	
	pw {
	    %modinfo:   provides        pw;
	
	    password {
	        %create:;
	        %set:   program "echo -n $(@) -> stdout=$(pw.encrypted-password)";
	        %set:   program "echo -n CLEAR -> stdout=$(pw.password)";
	    }
	    encrypted-password {
	        %create:;
	    }
	}
	
	  With the above configuration, if the xorpsh user sets and commits
	  variable "pw password", the rtrmgr will internally assign the
	  desired value to variable "pw encrypted-password", and at the
	  same time will assign the value of "pw password" to "CLEAR".
	
	* Modify the xorpsh client to apply its own requests when they are
	  received by the rtrmgr. Thus, if the rtrmgr has applied any internal
	  modifications to the configuration, those modifications will be
	  picked-up by the xorpsh client.

Revision  Changes                                 Path
1.60      +77 -11;  commitid: 15079433022f57ea6;  xorp/rtrmgr/master_conf_tree.cc
1.32      +11 -2;  commitid: 15079433022f57ea6;   xorp/rtrmgr/master_conf_tree.hh
1.51      +13 -2;  commitid: 15079433022f57ea6;   xorp/rtrmgr/xorpsh_main.cc
1.45      +11 -25;  commitid: 15079433022f57ea6;  xorp/rtrmgr/xrl_rtrmgr_interface.cc
1.24      +5 -4;  commitid: 15079433022f57ea6;    xorp/rtrmgr/xrl_rtrmgr_interface.hh