From cc24a85aad23d2a30a9962f48914ae78f7098b01 Mon Sep 17 00:00:00 2001 From: Monthadar Al-Jaberi Date: Sun, 4 Sep 2016 03:11:16 +0000 Subject: 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 Signed-off-by: FUJITA Tomonori --- doc/source/writing_ryu_app.rst | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3