From a916b51f2884ced37093eac410aa4edf4c835878 Mon Sep 17 00:00:00 2001 From: Jakub Duchateau Date: Sun, 19 Dec 2021 10:20:06 +0100 Subject: [PATCH] Fix OFPPortStatsRequest (v1) docstring example As is the example gives: ``` req = ofp_parser.OFPPortStatsRequest(datapath, 0, ofp.OFPP_ANY) AttributeError: module 'ryu.ofproto.ofproto_v1_0' has no attribute 'OFPP_ANY' ``` --- ryu/ofproto/ofproto_v1_0_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index a288964a6..4c1c8fbbb 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -3160,7 +3160,7 @@ def send_port_stats_request(self, datapath): ofp = datapath.ofproto ofp_parser = datapath.ofproto_parser - req = ofp_parser.OFPPortStatsRequest(datapath, 0, ofp.OFPP_ANY) + req = ofp_parser.OFPPortStatsRequest(datapath, 0, ofp.OFPP_NONE) datapath.send_msg(req) """