summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMonthadar Al-Jaberi <Monthadar.Al-Jaberi@infinera.com>2016-09-04 03:11:16 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-09-07 09:51:31 +0900
commitcc24a85aad23d2a30a9962f48914ae78f7098b01 (patch)
tree7a893a30c447cd85f20945ccd91bfab6a488bf22
parent1970e70a0d64d9f8b9dd36e53dc71cf6fb20fdfd (diff)
doc: specify OFP v1.0 for sample application
This is a minimal change to keep the supplied sample code working with latest software. The sample code is not compatible with OFP v1.3+, and if there is no requirement on supported version Ryu will probably accept latest supported OF switch. Signed-off-by: Monthadar Al Jaberi <monthadar.al-jaberi@infinera.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--doc/source/writing_ryu_app.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/source/writing_ryu_app.rst b/doc/source/writing_ryu_app.rst
index 0980ecd4..8f8556bb 100644
--- a/doc/source/writing_ryu_app.rst
+++ b/doc/source/writing_ryu_app.rst
@@ -53,8 +53,11 @@ the ports.
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
+ from ryu.ofproto import ofproto_v1_0
class L2Switch(app_manager.RyuApp):
+ OFP_VERSIONS = [ofproto_v1_0.OFP_VERSION]
+
def __init__(self, *args, **kwargs):
super(L2Switch, self).__init__(*args, **kwargs)