On Wed, 7 May 2014 12:04:50 +0900 Kiyonari Harigae <[email protected]> wrote:
> Here is implementation of QoS-related REST API. > > This module is intended for operation in a pipeline on a flow table. > It supports setting of the queue, (Currently, only support OpenvSwitch) , > packet marking, queuing, regitation to meter table, perform this simple QoS. > > Signed-off-by: Kiyonari Harigae <[email protected]> > --- > ryu/app/rest_qos.py | 1180 > +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 1180 insertions(+) > create mode 100644 ryu/app/rest_qos.py > > diff --git a/ryu/app/rest_qos.py b/ryu/app/rest_qos.py > new file mode 100644 > index 0000000..d6d9af4 > --- /dev/null > +++ b/ryu/app/rest_qos.py > @@ -0,0 +1,1180 @@ > +# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation. You don't need to add NTT copyright. You fully wrote the code so your copyright is appropriate here. > + mapper = wsgi.mapper > + wsgi.registory['QoSController'] = self.data > + path = '/qos' > + requirements = {'switchid': SWITCHID_PATTERN, > + 'vlanid': VLANID_PATTERN} The current code is fine but just out of curiosity, I think that there is more handy API for REST: http://osrg.github.io/ryu-book/ja/html/rest_api.html#rest-api You don't like it? ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
