summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMinoru TAKAHASHI <takahashi.minoru7@gmail.com>2015-08-24 09:56:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-24 14:00:43 +0900
commit3f005ea5e02bb8761d5bf73d90419eb578cf2850 (patch)
treece2e95f21e94bc17699aac297d4c0c2640b746fe
parent08cbbfbfffb4d3ad817da01d3a3d9e3f0d09aca8 (diff)
ofproto_v1_2_parser: Fix typo in comment
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_2_parser.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py
index cd67a9b3..4b38341a 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -198,7 +198,6 @@ class OFPEchoRequest(MsgBase):
Example::
def send_echo_request(self, datapath, data):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPEchoRequest(datapath, data)
@@ -244,7 +243,6 @@ class OFPEchoReply(MsgBase):
Example::
def send_echo_reply(self, datapath, data):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
reply = ofp_parser.OFPEchoReply(datapath, data)
@@ -572,6 +570,7 @@ class OFPPacketIn(MsgBase):
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def packet_in_handler(self, ev):
msg = ev.msg
+ dp = msg.datapath
ofp = dp.ofproto
if msg.reason == ofp.OFPR_NO_MATCH:
@@ -2284,7 +2283,6 @@ class OFPTableStatsRequest(OFPStatsRequest):
Example::
def send_table_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPTableStatsRequest(datapath)
@@ -2715,7 +2713,6 @@ class OFPGroupDescStatsRequest(OFPStatsRequest):
Example::
def send_group_desc_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPGroupDescStatsRequest(datapath)
@@ -2806,7 +2803,6 @@ class OFPGroupFeaturesStatsRequest(OFPStatsRequest):
Example::
def send_group_features_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPGroupFeaturesStatsRequest(datapath)
@@ -3148,6 +3144,7 @@ class OFPRoleReply(MsgBase):
@set_ev_cls(ofp_event.EventOFPRoleReply, MAIN_DISPATCHER)
def role_reply_handler(self, ev):
msg = ev.msg
+ dp = msg.datapath
ofp = dp.ofproto
if msg.role == ofp.OFPCR_ROLE_NOCHANGE: