summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMinoru TAKAHASHI <takahashi.minoru7@gmail.com>2015-08-24 09:57:20 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-24 14:00:43 +0900
commit51dc621fcfe041b606a6956913c8d25d9a35c5ca (patch)
treea4da4349f87db9f1db7cb72d6da7017039fd8c10
parent3f005ea5e02bb8761d5bf73d90419eb578cf2850 (diff)
ofproto_v1_3_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_3_parser.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index 89ab05a3..c2b27545 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -295,7 +295,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)
@@ -341,7 +340,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)
@@ -2218,6 +2216,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:
@@ -3642,7 +3641,6 @@ class OFPTableMod(MsgBase):
Example::
def send_table_mod(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPTableMod(datapath, 1, 3)
@@ -3792,7 +3790,6 @@ class OFPDescStatsRequest(OFPMultipartRequest):
Example::
def send_desc_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPDescStatsRequest(datapath, 0)
@@ -4114,7 +4111,6 @@ class OFPTableStatsRequest(OFPMultipartRequest):
Example::
def send_table_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPTableStatsRequest(datapath, 0)
@@ -4149,7 +4145,7 @@ class OFPTableStatsReply(OFPMultipartReply):
' matched_count=%d' %
(stat.table_id, stat.active_count,
stat.lookup_count, stat.matched_count))
- self.logger.debug('TableStats: %s', tables)
+ self.logger.debug('TableStats: %s', tables)
"""
def __init__(self, datapath, type_=None, **kwargs):
super(OFPTableStatsReply, self).__init__(datapath, **kwargs)
@@ -4242,7 +4238,7 @@ class OFPPortStatsReply(OFPMultipartReply):
stat.rx_frame_err, stat.rx_over_err,
stat.rx_crc_err, stat.collisions,
stat.duration_sec, stat.duration_nsec))
- self.logger.debug('PortStats: %s', ports)
+ self.logger.debug('PortStats: %s', ports)
"""
def __init__(self, datapath, type_=None, **kwargs):
super(OFPPortStatsReply, self).__init__(datapath, **kwargs)
@@ -4492,7 +4488,6 @@ class OFPGroupDescStatsRequest(OFPMultipartRequest):
Example::
def send_group_desc_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPGroupDescStatsRequest(datapath, 0)
@@ -4527,7 +4522,7 @@ class OFPGroupDescStatsReply(OFPMultipartReply):
'buckets=%s' %
(stat.length, stat.type, stat.group_id,
stat.bucket))
- self.logger.debug('GroupDescStats: %s', groups)
+ self.logger.debug('GroupDescStats: %s', descs)
"""
def __init__(self, datapath, type_=None, **kwargs):
super(OFPGroupDescStatsReply, self).__init__(datapath, **kwargs)
@@ -4567,7 +4562,6 @@ class OFPGroupFeaturesStatsRequest(OFPMultipartRequest):
Example::
def send_group_features_stats_request(self, datapath):
- ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
req = ofp_parser.OFPGroupFeaturesStatsRequest(datapath, 0)
@@ -4998,7 +4992,7 @@ class OFPMeterFeaturesStatsReply(OFPMultipartReply):
(stat.max_meter, stat.band_types,
stat.capabilities, stat.max_bands,
stat.max_color))
- self.logger.debug('MeterFeaturesStats: %s', configs)
+ self.logger.debug('MeterFeaturesStats: %s', features)
"""
def __init__(self, datapath, type_=None, **kwargs):
super(OFPMeterFeaturesStatsReply, self).__init__(datapath, **kwargs)
@@ -5415,7 +5409,7 @@ class OFPPortDescStatsReply(OFPMultipartReply):
================ ======================================================
Attribute Description
================ ======================================================
- body List of ``OFPPortDescStats`` instance
+ body List of ``OFPPort`` instance
================ ======================================================
Example::
@@ -5895,6 +5889,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: