Thanks to Isaku and Jeremias.  

I think for me, I hope to get documents about:

1) A sketch about the structure of ryu and how a message being handled.
For example, how a packet_in message, sent from switch, through ryu, and 
finally reach user's app.

2) How does the event mechanism work
If I want to raise an event, how do I do it; if I want to catch an event, how 
do I do it.
Must I use the REST api?

3) How to handle packets.(match, pack and parse)
There's a short article in the documents, but I think more examples in ryu/app 
folder might be better.
For example, now I want to match IPv6 packets using nx_match of ovs, but I can 
not figure it out by reading the examples, or by reading the documents, or by 
reading the source code of nx_match.py. I tried:
rule = nx_match.ClsRule()
rule.set_ipv6_src(123)
but the IPv6 match condition seems to be ignored when I dump flow from ovs


--  
Best regards,  
Can Zhang



Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On 2013年1月21日Monday at 上午9:59, Isaku Yamahata wrote:

> On Fri, Jan 18, 2013 at 10:24:32AM +0100, Jeremias Blendin wrote:
> > Hi,
> >  
> > there is a repository on github that includes the topology patches:
> > https://github.com/zoomis/ryu/tree/topology
>  
>  
>  
> Wow. I didn't know that.
>  
>  
> > The patches are adapted to the latest version of Ryu, I have not
> > yet tried if it works though.
> >  
> > I second the Cans request for more documentation :)
>  
> What kind of documentation do you want? API reference?
> Recently I've posted some patches for documentation. Reviewing them is very
> appreciated.
>  
>  
> > Best regards
> >  
> > Jeremias
> >  
> > 2013/1/18 can. <[email protected] (mailto:[email protected])>
> >  
> > Hello,
> >  
> > I reverted the master branch of github to an old version(before May.31
> > 2012) and applied your 13 patches, then the topology discovery component
> > seemed working.
> >  
> > Now I want to make the component work in the latest version, because I need
> > the openflow IPv6 support from ryu. Though ryu code is pretty clean, I'm
> > new to this project and need some help.
> >  
> > 1. From my experience with ryu, the old version(version before May.31 2012)
> > requires a class to contain a _CONTEXTS. I think there might be other
> > differences in writing an app between the old and the latest version. So as
> > you can recall, could you give me a list of such changes?
>  
>  
>  
> "git log" and "git annotate" are your friend. Sorry for no such documentation.
>  
>  
> > 2. I can see that you changed 13 files. Some of their functions can be
> > easily determined from their names. e.g. app/discovery.py(the main app),
> > app/rest_discovery.py(rest api for topology discovery), lib/lldp.py(pack
> > and unpack lldp). But other files are more difficult to understand as
> > there're no per-file-comments included and no available documents. I just
> > put them here to apply for an explanation:
> > bin/ryu-client, app/client.py: What do these client things do? I mean not
> > only in topology discovery, but also in ryu
> > app/cbench.py: no clue, related to benchmark test?
> > controller/* : I might also apply these changes to the latest version, so I
> > need to understand them. I think maybe this is related to the architecture
> > of ryu.
>  
>  
>  
> Some of the patches are for refactoring Ryu internal structure as
> preparation for discovery. If the focus is only discovery, some of them are
> unnecessary  
>  
> ryu/app/client and bin/ryu-client are simple program to debug REST API.
> (Probably ryu/app/client.py should be in other directory.)
> If you issue http request directly with other means, they aren't necessary.
>  
>  
> > 3. What's the event mechanism of ryu? I see a lot of "unhandled event" when
> > run `ryu-manager --app_lists ryu.app.discovery.Discovery`. So how to raise
> > and handle an event in ryu?
>  
>  
>  
> The warning can be ignored safely. Now its log level has been lowered
> to DEBUG. (It was useful for me to debug event dispatcher system itself.)
>  
> thanks,
>  
> >  
> > I'd appreciate anyone who would help :)
> > And thanks in advance.
> >  
> > --
> > Best regards,
> > Can Zhang
> >  
> >  
> >  
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> >  
> >  
> > On 2013年1月18日Friday at 上午9:22, can. wrote:
> >  
> > > OK, I'll try.
> > > Thanks.
> > >  
> > >  
> > > --
> > > Best regards,
> > > Can Zhang
> > >  
> > >  
> > >  
> > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> > >  
> > >  
> > > On 2013年1月18日Friday at 上午9:16, Isaku Yamahata wrote:
> > >  
> > > > Oops sorry, please follow the thread of the mail.
> > > >  
> > > > http://thread.gmane.org/gmane.network.ryu.devel/467
> > > > The 13 patches will be find.
> > > >  
> > > > thanks,
> > > >  
> > > > On Fri, Jan 18, 2013 at 09:14:02AM +0800, can. wrote:
> > > > > Thanks Isaku.
> > > > > But your link is a summary of the component. Where can I get the
> > > >  
> > >  
> >  
> > code?
> > > > >  
> > > > > --
> > > > > Best regards,
> > > > > Can Zhang
> > > > >  
> > > > >  
> > > > >  
> > > > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> > > > >  
> > > > >  
> > > > > On 2013年1月18日Friday at 上午8:38, Isaku Yamahata wrote:
> > > > >  
> > > > > > Hi.
> > > > > >  
> > > > > > The latest patch is v4 and available at
> > > > > > http://article.gmane.org/gmane.network.ryu.devel/467
> > > > > >  
> > > > > > It hasn't been merged into the upstream Ryu yet.
> > > > > > It's a bit outdated, so it needs to be updated and rebased.
> > > > > > The updated patches will be appreciated.
> > > > > >  
> > > > > > thanks,
> > > > > >  
> > > > > >  
> > > > > > On Thu, Jan 17, 2013 at 12:01:48PM +0800, can. wrote:
> > > > > > > Hi there,
> > > > > > >  
> > > > > > > I downloaded and installed ryu from github, but I cannot find the
> > topology discovery components I expected. So please tell me how to get the
> > code and documents.
> > > > > > >  
> > > > > > >  
> > > > > > > --
> > > > > > > Best regards,
> > > > > > > Can Zhang
> > > > > >  
> > > > >  
> > > >  
> > >  
> >  
> > ------------------------------------------------------------------------------
> > > > > > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5,
> > > > > >  
> > > > >  
> > > >  
> > >  
> >  
> > CSS,
> > > > > > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills
> > > > > >  
> > > > >  
> > > >  
> > >  
> >  
> > current
> > > > > > > with LearnDevNow - 3,200 step-by-step video tutorials by
> > > > > >  
> > > > >  
> > > >  
> > >  
> >  
> > Microsoft
> > > > > > > MVPs and experts. ON SALE this month only -- learn more at:
> > > > > > > http://p.sf.net/sfu/learnmore_122712
> > > > > > > _______________________________________________
> > > > > > > Ryu-devel mailing list
> > > > > > > [email protected] 
> > > > > > > (mailto:[email protected]) (mailto:
> > > > > >  
> > > > >  
> > > >  
> > >  
> >  
> > [email protected] (mailto:[email protected]))
> > > > > > > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > > --
> > > > > > yamahata
> > > > >  
> > > >  
> > > >  
> > > >  
> > > >  
> > > >  
> > > >  
> > > > --
> > > > yamahata
> > >  
> >  
> >  
> >  
> >  
> >  
> > ------------------------------------------------------------------------------
> > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> > much more. Get web development skills now with LearnDevNow -
> > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> > SALE $99.99 this month only -- learn more at:
> > http://p.sf.net/sfu/learnmore_122812
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected] (mailto:[email protected])
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>  
>  
>  
> --  
> yamahata




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to