mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-11 15:26:11 +02:00
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>
This commit is contained in:
parent
3f005ea5e0
commit
51dc621fcf
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user