On Mon, 17 Sep 2012 14:17:36 +0900
FUJITA Tomonori <[email protected]> wrote:

> > @@ -144,6 +145,14 @@ class RunTest(tester.TestFlowBase):
> >  
> >          dp.send_msg(m)
> >  
> > +    def get_port(self, dp):
> > +        p = None
> > +        for port_no, port in dp.ports.items():
> > +            if port_no != dp.ofproto.OFPP_LOCAL:
> > +                p = port
> > +                break
> > +        return p
> 
> This funciton is supposed to return any port except for OFPP_LOCAL?

Yes, it's right.

> 
> If so, something like the following?
> 
>         for port_no, port in dp.ports.items():
>             if port_no != dp.ofproto.OFPP_LOCAL:
>                  return port
>         return None

There is no problem in the above.
Reflecting this, I will post again.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to