hi,

i posted a fix.  thanks.

YAMAMOTO Takashi

> Hello,
> 
> I tested the recent patch, which added OFPMeterMod to Ryu:
> 
> --------------8<--------------
> 
>         bands = []
>         dropband = parser.OFPMeterBandDrop(rate=10, burst_size=1)
>         bands.append(dropband)
>         request = parser.OFPMeterMod(datapath=datapath,
>                                      command=OFPMC_ADD,
>                                      flags=OFPMF_PKTPS,
>                                      meter_id=666,
>                                      bands=bands)
> 
> --------------8<--------------
> 
> and received an error:
> 
>   File
> "/usr/local/lib/python2.7/dist-packages/ryu-2.1-py2.7.egg/ryu/ofproto/ofproto_v1_3_parser.py",
> line 2091, in _serialize_body
>     offset += b.len
> AttributeError: 'OFPMeterBandDrop' object has no attribute 'len'
> 
> I fixed this by replacing b.len with b._len and now meters work fine.
> Is this a small typo or am I wrong here?
> 
> 
> --Jyry Suuntala
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to