summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)