Hi, >From my experience, first I suggest you to read few articles, i.e. "An introduction to writing a XORP process", "XRL Interfaces: specifications and tool" and "XORP router manager process". Basically, you should edit template file for the XORP process you are going to implement new command (see xorp/etc/templates). This is necessary for rtrmgr to know about new available command for the process. Additionally, you must provide appropriate XRL interface for rtrmgr to resolve it when invoking command for your process (see xorp/xrl/interfaces). Fortunately, there are two scripts available to automatically generate some stub code related to XRL interfaces. Every XORP process implements XRL target methods responsible for receiving and processing XRL requests (like CLI command from xorpsh or requests from other processes). These are virtual methods so developer is expected to provide exact implementation for methods. Furthermore, XRL target methods usually invoke a method in main program of a XORP process where developer provides implementation of handling function. You will know more about it after reading "XRL Interfaces: specifications and tool". Probably this is little bit confusing explanation, but after carefully reading above documents should be more clear for you. At least, I managed to implement a new command for BGP....
B.R. Alex On Thu, Jun 3, 2010 at 6:59 PM, som <[email protected]> wrote: > Hi every one, I am using xorp v 1.6. I could not know how to add a new > command and how to arrange it under groups. I want to add some L3 module > commands. How the command name is associated with the appropriate function. > > eg: configure > create procols static route > Here how the line entered is associated with the specified function. > > Again what does mean by 'cd' command? If any one knows please reply... > > <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline....@middle?> > _______________________________________________ > Xorp-hackers mailing list > [email protected] > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers<http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers> > >
_______________________________________________ Xorp-hackers mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
