On Mon, 17 Nov 2014 13:35:33 +0200
Palubinskas Vilius <[email protected]> wrote:
> Hi,
>
> In ryu/app/ofctl_rest.py found some mistypes. Error gets when using
> stats/groupdesc/<dpid> and /stats/groupfeatures/<dpid>
>
>
> diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py
> index 338d59e..270f733 100644
> --- a/ryu/app/ofctl_rest.py
> +++ b/ryu/app/ofctl_rest.py
> @@ -259,7 +259,7 @@ class StatsController(ControllerBase):
> groups = ofctl_v1_2.get_group_features(dp, self.waiters)
> elif dp.ofproto.OFP_VERSION == ofproto_v1_3.OFP_VERSION:
> groups = ofctl_v1_3.get_group_features(dp, self.waiters)
> - elif do.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
> + elif dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
> LOG.debug('Request not supported in this OF protocol version')
> return Response(status=501)
> else:
> @@ -278,7 +278,7 @@ class StatsController(ControllerBase):
> groups = ofctl_v1_2.get_group_desc(dp, self.waiters)
> elif dp.ofproto.OFP_VERSION == ofproto_v1_3.OFP_VERSION:
> groups = ofctl_v1_3.get_group_desc(dp, self.waiters)
> - elif do.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
> + elif dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
> LOG.debug('Request not supported in this OF protocol version')
> return Response(status=501)
> else:
Thanks! There are still same typos so I fixed the all with this patch.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel