The new default will send a packet to a controller. of1.0 is not modified yet since there is no good constant.
Signed-off-by: Satoshi Kobayashi <[email protected]> --- ryu/ofproto/ofproto_v1_2_parser.py | 3 ++- ryu/ofproto/ofproto_v1_3_parser.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 0215903..97ab485 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -1112,7 +1112,8 @@ class OFPActionOutput(OFPAction): max_len Max length to send to controller ================ ====================================================== """ - def __init__(self, port, max_len=0, type_=None, len_=None): + def __init__(self, port, max_len=ofproto_v1_2.OFPCML_MAX, + type_=None, len_=None): super(OFPActionOutput, self).__init__() self.port = port self.max_len = max_len diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 8d35db2..606ffa2 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -2587,7 +2587,8 @@ class OFPActionOutput(OFPAction): max_len Max length to send to controller ================ ====================================================== """ - def __init__(self, port, max_len=0, type_=None, len_=None): + def __init__(self, port, max_len=ofproto_v1_3.OFPCML_MAX, + type_=None, len_=None): super(OFPActionOutput, self).__init__() self.port = port self.max_len = max_len -- 1.7.1 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
