[Xorp-hackers] Re: Patch to add method SlaveConfigTreeNode::set_segname(...)

Marat Nepomnyashy marat@vyatta.com
Wed, 08 Mar 2006 19:08:15 -0800


This is a multi-part message in MIME format.
--------------090005070304080906090808
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Oops,

Forgot the ampersand.  Use this one :)

-- Marat

Marat Nepomnyashy wrote:
> Hi Pavlin,
>
> Please consider the attached patch file for integration into XORP.  It 
> adds a convenience method SlaveConfigTreeNode::set_segname(...) to 
> /rtrmgr/slave_conf_tree_node.hh
>
> I'm using this method to set the name of a multi-node 
> SlaveConfigTreeNode after I create it.
>
> Thanks,
> Marat
>
>
> ------------------------------------------------------------------------
>
> --- ../../xorp/rtrmgr/slave_conf_tree_node.hh	2006-02-28 11:31:11.000000000 -0800
> +++ slave_conf_tree_node.hh	2006-03-08 11:31:33.000000000 -0800
> @@ -79,6 +79,9 @@
>  
>      void finalize_commit();
>  
> +    void set_segname(const std::string new_segname) {
> +        _segname = new_segname;
> +    }
>  protected:
>      bool build_command_tree(CommandTree& cmdtree, 
>  			    const list<string>& commands, 
>   

--------------090005070304080906090808
Content-Type: text/plain;
 name="patch-sctn-set_segname.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-sctn-set_segname.txt"

--- ../../xorp/rtrmgr/slave_conf_tree_node.hh	2006-02-28 11:31:11.000000000 -0800
+++ slave_conf_tree_node.hh	2006-03-08 11:31:33.000000000 -0800
@@ -79,6 +79,9 @@
 
     void finalize_commit();
 
+    void set_segname(const std::string & new_segname) {
+        _segname = new_segname;
+    }
 protected:
     bool build_command_tree(CommandTree& cmdtree, 
 			    const list<string>& commands, 

--------------090005070304080906090808--