[Xorp-hackers] transaction fix for nodes shared across modules

Michael Larson mike at vyatta.com
Tue May 30 17:14:37 PDT 2006


Hey all,

I've attached a diff file that fixes a problem in the rtrmgr when more than one module is assigned (via modinfo) on a common node. Xorp only allows a single transaction to be assigned per module/node and therefore when more than one module is assigned transactions will be grouped once on the last loaded module. 

The fix is the assign actions to transactions based on the module and not on the module assigned to the node. This approach allows for multiple transactions to execute within the context of the same node (on different modules). The following files where changed:

M      master_template_tree_node.cc
M      module_command.cc
M      template_commands.cc
M      module_command.hh
M      template_commands.h

The module assignment is stored per action and not per node in these changes. The majority of the changes are in passing the additional argument.

Mike Larson
vyatta

-------------- next part --------------
A non-text attachment was scrubbed...
Name: transact_fix
Type: application/octet-stream
Size: 11580 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20060530/e3ab634a/attachment.obj 


More information about the Xorp-hackers mailing list